[Nagiosplug-devel] check_procs and Linux?

Hadmut Danisch hadmut at danisch.de
Fri Feb 17 00:44:01 CET 2006


Hi,

I'm trying 

# /usr/lib/nagios/plugins/check_procs -c 2:10 -C tcsh
PROCS CRITICAL: 0 processes with command name 'tcsh'


although there are plenty of tcsh processes (tcsh used for testing,
same problem occurs with all other processes. 



ps:

% /bin/ps axwo "stat uid pid ppid vsz rss pcpu comm args" | egrep '(STAT|tcsh)'
STAT   UID   PID  PPID    VSZ   RSS %CPU COMMAND         COMMAND
S     1000  4968  4853   7644  2860  0.0 xterm           xterm -sb -title tcsh -geometry 90x38+0+120
Ss    1000  4981  4968   5972  2188  0.0 tcsh            -csh
Ss+   1000  4982  4967   5972  2128  0.0 tcsh            -csh
Ss    1000  5808  5807   6492  2672  0.0 tcsh            -csh
Ss    1000  5810  5809   6024  2196  0.0 tcsh            -csh



Is it possible that check_procs has a problem with parsing the output
of ps?

regards
Hadmut




More information about the Devel mailing list