[Nagiosplug-help] Problem with check_procs on FreeBSD 5.2.1 & 5.3

Michael Bakker michael at securityfocus.de
Fri Dec 17 00:10:01 CET 2004


On Thu, Dec 16, 2004 at 03:46:31PM +0100, Andreas Ericsson wrote:
> Michael Bakker wrote:
> >Hi,
> >
> >I've got a problem with the check_procs plugin on systems with FreeBSD
> >5.2.1 and 5.3:
> >
> >$ /usr/local/nagios/libexec/check_procs
> >OK - 10 processes running
> >
> >There are much more processes running than 10 running - the other
> >problem is:
> >
> >$ ps auxw | grep [c]ron
> >root     419  0.0  0.3  1344  776  ??  Ss   23Jul04   1:38.28 
> >/usr/sbin/cron
> 
> Why grep [c]ron when it's exactly equivalent to grep cron?

This [] is a nice trick so you won't see the grep process greping itself
:)

> >$ /usr/local/nagios/libexec/check_procs -w 1: -C cron
> >WARNING - 0 processes running with command name cron
> >
> 
> What happens if you give /usr/sbin/cron as argument to the -C switch?

$ /usr/local/nagios/libexec/check_procs -w 1: -C /usr/sbin/cron
WARNING - 0 processes running with command name /usr/sbin/cron
 
> >check_procs from nagios-plugins v1.3.1 and 1.4.0-alpha3 return the same
> >results for me.
> >
> 
> -- 
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Lead Developer
> 

-- 
Greets,
Michael Bakker




More information about the Help mailing list