[Nagiosplug-devel] check_procs changes for regexp argu matching and pst3 for solaris

Ton Voon ton.voon at altinity.com
Thu Feb 28 17:36:26 CET 2008


Hi!

I've just committed a patch to check_procs which has a nice --ereg- 
argument-array option to search the argument array based on a regexp.  
Thanks to Matthias for adding this functionality into check_disk,  
where I copied the technique from.

Also, for Solaris, I've reinstated the pst3 command as the default ps  
parser. It was switched to /usr/ucb/ps, but that has other issues  
(large. I thought there would be other options available but according  
to this page (http://rt.cpan.org/Public/Bug/Display.html?id=23792),  
there isn't another technique to get the full argument list without  
root access.

The big problem with using pst3 before was the compiling on 64 bit  
systems, but I think I've got that fixed in configure.in now. I've  
tested on a 32bit and a 64bit Sol10.

A consequence of this is that the check_procs test on solaris will now  
skip because it requires pst3 to be installed before check_procs will  
run correctly.

Any thoughts on this from Solaris experts?

I'm also wondering if it would be a good idea to include a -f <ps type  
file> as an input to check_procs. There's two reasons for this:
   * there could be a separate daemon which writes the ps output into  
this file on a regular basis, which means less load on a system for  
invoking of the ps command, especially if there are lots of  
check_procs invocations
   * for testing, by creating specific test output for check_procs to  
parse

Ton

http://www.altinity.com
UK: +44 (0)870 787 9243
US: +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: tonvoon





More information about the Devel mailing list