[Nagiosplug-help] Checking status of specific plugin

Karl DeBisschop karl at debisschop.net
Fri Feb 6 03:51:17 CET 2004


On Thu, 2004-02-05 at 09:01 -0600, John Rowan wrote:
> Greetings,
> 
> I have recently moved to a new environment and am trying to get Nagios
> running with at least the same functionality as I have utilized in the
> past. We are running Nagios 1.1 with plugins 1.3.1 and nrpe 2.0. What I
> am attempting to do is to determine whether by name a particular process
> is running or not. The check_procs plugin allows you to specify
> processes to monitor by command name (-C) or command argument (-a) but
> it is geared towards a critical and warning level of too many processes.
> There doesn't appear to be a way to simply monitor whether process foo
> is running or not.
> 
> I was able to achieve this in a previous environment using Nagios 1.0,
> netsaint_statd 2.15, and an older plugin, check_named_proc.pl. I have
> looked over the existing plugins and don't see any with this
> functionality. I'm hoping that someone on the list can suggest an
> existing plugin that I can use. If not, I can write my own as it doesn't
> seem terribly difficult. I'm just trying to avoid reinventing the wheel.
> :-)

Read the description of ranges - check_procs does what you want.

./check_procs -w 1: -c 1: -C httpd

I think is the syntax.

--
Karl





More information about the Help mailing list