[Nagiosplug-devel] check_procs and Linux?

Michał Panasiewicz wolvverine at tarchomin.pl
Sat Feb 18 11:44:02 CET 2006


Dnia 18-02-2006, sob o godzinie 20:05 +0100, Michał Panasiewicz
napisał(a):
> 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??
> 

~$echo $LC_ALL $LANG
pl_PL pl_PL
~$/usr/lib/nagios/plugins/check_procs -C smbd
PROCS OK: 0 processes with command name 'smbd'
~$LC_ALL=C LANG=C /usr/lib/nagios/plugins/check_procs -C smbd
PROCS OK: 2 processes with command name 'smbd


-- 
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