[Nagiosplug-devel] BUG: check_proc doeas not work under FreeB SD 4

Ton Voon tonvoon at mac.com
Fri Dec 31 05:14:05 CET 2004


On 31 Dec 2004, at 12:14, Tomasz Pilat wrote:
> [root at pigeon plugins]# ps auxw | grep [s]aslauthd
> root      61657  0.0  0.1  1604  876  ??  I    14Dec04   0:03.81 
> /usr/local/sbin/saslauthd -a pam
> root      61656  0.0  0.1  1604  868  ??  I    14Dec04   0:03.81 
> /usr/local/sbin/saslauthd -a pam
> root      61655  0.0  0.1  1604  868  ??  I    14Dec04   0:03.81 
> /usr/local/sbin/saslauthd -a pam
> root      61654  0.0  0.1  1604  868  ??  I    14Dec04   0:03.81 
> /usr/local/sbin/saslauthd -a pam
> root      61652  0.0  0.1  1604  868  ??  Is   14Dec04   0:03.82 
> /usr/local/sbin/saslauthd -a pam
>
> [root at pigeon plugins]# ./check_procs -C saslauthd
> PROCS OK: 5 processes with command name 'saslauthd'
> (ok)
> [root at pigeon plugins]# ./check_procs -a '-a pam'
> PROCS OK: 5 processes with args '-a pam'
> (ok)
>
> [root at pigeon plugins]# ./check_procs -a 'saslauthd'
> PROCS OK: 5 processes with args 'saslauthd'
> (not ok)
>

The parameter to the -a flag is a substring to search in the "full 
program args" field. Thus, 5 processes with saslauthd is correct in 
your example. Unless I am missing something?

I guess the message is a bit confusing. Maybe it should say "PROCS OK: 
5 processes with 'saslauthd' in full command"?

Ton





More information about the Devel mailing list