attempt recovery on service CRITICAL with nrpe
donavan nelson
donavan at 4wx.net
Thu Jan 23 01:11:05 CET 2003
actually, I've never worked on a platform that consistantly showed the grep,
solaris, aix, linux, hp
.dn
--
Donavan Nelson
4wx Networks
www.4wx.net
---------- Original Message -----------
From: Rasmus Plewe <rplewe at ess.nec.de>
To: donavan nelson <donavan at 4wx.net>
Sent: Thu, 23 Jan 2003 01:03:39 +0100
Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe
> Hello,
>
> On Wed, Jan 22, 2003 at 05:54:52PM -0600, donavan nelson wrote:
> > I would really clean up the following a bit.
> >
> > ERS=`ps -eaf | grep ersjsf | wc -l`
> >
> > This removes the ambiguity of counting the grep process
> >
> > ERS=`ps -ef | grep ersjsf | grep -v "grep" -c`
>
> thanks for the hint. I admit that your way is more elegant, no
> question. Since the grep process will show up everytime it then is
> simply a constant for the counting, so it worked and never fell offer
> to optimisation... ;-/
>
> Will change it tomorrow; as it is 1 am I wouldn't dream of changing
> anything in the monitoring of the production system. Especially since
> it's me who is on call tonight.
>
> Regards,
> Rasmus
------- End of Original Message -------
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
More information about the Users
mailing list