[Nagiosplug-help] check_procs 1.4.2 returns 0 processes in Solaris 8

Jacob Laack JLaack at alegent.org
Thu Apr 13 06:28:06 CEST 2006


All-
I'm have compiled the nagios-plugins-1.4.2 on a Solaris 8 machine but the check_procs plugin keeps telling me there are no processes as you can see here:

bob[id]root#ps -ef | grep nrpe | grep -v grep
  nagios 13117     1  0 13:52:54 ?        0:01 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
bob[id]root#nagios-plugins-1.4.2/plugins/check_procs -c 1:1024 -C nrpe
PROCS CRITICAL: 0 processes with command name 'nrpe'
bob[id]root#nagios-plugins-1.4/plugins/check_procs -c 1:1024 -C nrpe
PROCS OK: 1 process with command name 'nrpe'

It doesn't matter what process I use and the plugin says none exist.  The 1.4 plugins I compiled work correctly as you can see above.  Here is a verbose listing of the two plugins:

bob[id]root#nagios-plugins-1.4.2/plugins/check_procs -vvv -c 1:1024 -C nrpe
CMD: /usr/bin/ps -Ao 's uid pid ppid vsz rss pcpu comm args'
T     0     0     0    0    0  0.0 sched                                                                            sched
0 0 0 0 0 0 0.00 T  sched                                                                             sched
S     0     1     0  880  544  0.1 /etc/init                                                                        /etc/init -
0 0 880 544 0 0 0.10 S  /etc/init                                                                         /etc/init -
S     0     2     0    0    0  0.0 pageout                                                                          pageout
0 0 0 0 0 0 0.00 S  pageout                                                                           pageout
S     0     3     0    0    0  0.5 fsflush                                                                          fsflush
0 0 0 0 0 0 0.50 S  fsflush                                                                           fsflush
S     0    64     1 2816 1744  0.0 devfsadmd                                                                        devfsadmd
0 0 2816 1744 1 0 0.00 S  devfsadmd                                                                         devfsadmd
S     0   188     1 1992 1248  0.0 /usr/sbin/cron                                                                   /usr/sbin/cron
0 0 1992 1248 1 0 0.00 S  /usr/sbin/cron                                                                    /usr/sbin/cron
...cut...
S   110 13117     1 1784 1176  0.0 /usr/local/nagios/bin/nrpe                                                       /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
0 110 1784 1176 1 0 0.00 S  /usr/local/nagios/bin/nrpe                                                        /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
...cut...
S 60001 18074 18060 3720 3200  0.0 /usr/local/apache/bin/httpd                                                      /usr/local/apache/bin/httpd
0 60001 3720 3200 18060 0 0.00 S  /usr/local/apache/bin/httpd                                                       /usr/local/apache/bin/httpd
O     0 23456 11646 1792 1400  0.1 nagios-plugins-1.4.2/plugins/check_procs                                         nagios-plugins-1.4.2/plugins/check_procs -vvv -c 1:1024 -C nrpe
0 0 1792 1400 11646 0 0.10 O  nagios-plugins-1.4.2/plugins/check_procs                                          nagios-plugins-1.4.2/plugins/check_procs -vvv -c 1:1024 -C nrpe
PROCS CRITICAL: 0 processes with command name 'nrpe'

bob[id]root#nagios-plugins-1.4/plugins/check_procs -vvv -c 1:1024 -C nrpe
CMD: /usr/bin/ps -Ao 's uid ppid vsz rss pcpu comm args'
T     0     0    0    0  0.0 sched                                                                            sched
seconds: 0
0 0 0 0 0 0.00 T  sched                                                                             sched
S     0     0  880  544  0.0 /etc/init                                                                        /etc/init -
seconds: 0
0 0 880 544 0 0.00 S  init                                                                         /etc/init -
S     0     0    0    0  0.0 pageout                                                                          pageout
seconds: 0
0 0 0 0 0 0.00 S  pageout                                                                           pageout
S     0     0    0    0  0.3 fsflush                                                                          fsflush
seconds: 0
0 0 0 0 0 0.30 S  fsflush                                                                           fsflush
S     0     1 2816 1744  0.0 devfsadmd                                                                        devfsadmd
seconds: 0
0 0 2816 1744 1 0.00 S  devfsadmd                                                                         devfsadmd
S     0     1 1992 1248  0.0 /usr/sbin/cron                                                                   /usr/sbin/cron
seconds: 0
0 0 1992 1248 1 0.00 S  cron                                                                    /usr/sbin/cron
...cut...
O     0 23461 1984 1144  0.1 /usr/bin/ps                                                                      /usr/bin/ps -Ao s uid ppid vsz rss pcpu comm args
seconds: 0
0 0 1984 1144 23461 0.10 O  ps                                                                       /usr/bin/ps -Ao s uid ppid vsz rss pcpu comm args
S 60001   168 3496 2264  0.0 fs                                                                               fs
seconds: 0
0 60001 3496 2264 168 0.00 S  fs                                                                                fs
S   110     1 1784 1176  0.0 /usr/local/nagios/bin/nrpe                                                       /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
seconds: 0
0 110 1784 1176 1 0.00 S  nrpe                                                        /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
...cut...
S     0 11646 1792 1400  0.0 nagios-plugins-1.4/plugins/check_procs                                           nagios-plugins-1.4/plugins/check_procs -vvv -c 1:1024 -C nrpe
seconds: 0
1 0 1792 1400 11646 0.00 S  check_procs                                            nagios-plugins-1.4/plugins/check_procs -vvv -c 1:1024 -C nrpe
PROCS OK: 1 process with command name 'nrpe'

Can anyone tell me the changes I'd need to make to get the new plugin to work?

Jake Laack
Alegent Health Open Systems Engineer





More information about the Help mailing list