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

Ton Voon ton.voon at altinity.com
Fri Feb 29 11:49:00 CET 2008


On 29 Feb 2008, at 09:18, Matthias Eble wrote:

>> 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
>
> yes++. great for testing, although I somehow dislike starting a daemon
> for ps output. But that's up to the users.

OK, I'll have a go at that later today.

Looking through existing patches for check_procs, I've come across  
this: http://sourceforge.net/tracker/index.php?func=detail&aid=576371&group_id=29880&atid=397599

Tom uses a regex flag, so that the the -a and -C fields are then  
considered as regexp expressions rather than straight comparisons.

So that means instead of:

check_procs --ereg-argument-array="java.*http"

Tom's patch would make it:

check_procs -a "java.*http" --ereg

Tom's is more like check_snmp and check_http, but the current one is  
more like check_disk. I guess check_disk is a special case because it  
may want regular expressions for some things and not for others.

So I'm currently siding with Tom's proposal.

Any opinions?

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