[Nagiosplug-devel] check_procs and Linux?

Michał Panasiewicz wolvverine at tarchomin.pl
Sat Feb 18 11:06:04 CET 2006


Dnia 16-02-2006, czw o godzinie 13:23 +0100, Hadmut Danisch napisał(a):
> 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?
> 

maybe better use libproc, not ps in check_procs??

-- 
Michał Panasiewicz
jabber: wolvverine [ at ] chrome [ dot ] pl 
e-mail: wolvverine [ at ] tlen [ dot ] pl , wolvverine [ at ] pld-linux [ dot ] org
Potrzebujesz Informatyka/Administratora (Warszawa) -skontaktuj sie ze mną





More information about the Devel mailing list