[Nagiosplug-help] Problem with check_procs plugin

Duncan McCaffery duncan at insiris.com
Sat May 30 11:26:46 CEST 2009


Hi,

I'm currently having a problem with the check_procs plugin using
Nagios version 3.0.6 installed on Ubuntu 9.04 via the package manager.

Essentially the problem occurs if I check for processes with specific arguments.



>From the command line if I call check_procs manually I get:

insiris at kent:/usr/lib/nagios/plugins$
/usr/lib/nagios/plugins/check_procs -c 1:1 -a foo
PROCS CRITICAL: 0 processes with args 'foo'



If I define the following command and associated service using exactly
the same parameters

define command{
        command_name    check_proc_foo
        command_line    /usr/lib/nagios/plugins/check_procs -c 1:1 -a foo
}

define service{
        use                             generic-service         ; Name
of service template to use
        host_name                       localhost
        service_description             Status of foo Service
        check_command                   check_proc_foo
}

Nagios then reports:

Status of foo Service OK 2009-05-30 10:11:05 0d 0h 5m 1s 1/4 PROCS OK:
1 process with args 'foo'

I believe this is incorrect behaviour is this so?

Thanks for any assistance

Duncan

--
Duncan McCaffery | Insiris Limited.
T +44 (0) 1995 642 203 | E duncan at insiris.com | W http://www.insiris.com




More information about the Help mailing list