check_running_proc (not check_procs)
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Fri Oct 18 01:44:45 CEST 2002
As per the last 3 lines of "./check_procs -h":
[quote]
RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If
specified 'max:min', a warning status will be generated if the
count is inside the specified range
[end quote]
So, you would want to do something like:
./check_proc -w 1: -c 1: -C process_command
jc
-----Original Message-----
From: Sandro Merg Vaz [mailto:sandro at opservices.com.br]
Sent: Thursday, October 17, 2002 6:01 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_running_proc (not check_procs)
Nagiosmates:
I´m deploying a Nagios solution to monitor some Linuxes and one important
point is to check the presence of some process (like named,snmpd, sshd,
crond, etc.). But the existing check_procs plugin just warns me if there are
MORE than the -w specified option. But I just want to know if there is at
least one process instance running, being warned if there is NO process
running.
It would be like this, using check_procs sintax:
./check_running_proc -C process_command
It would return just OK or CRITICAL.
If some of you have any idea (instead of advising me to write my own plugin,
which is the next step), please let me know.
TIA.
Sandro Vaz
sandro at opservices.com.br <mailto:sandro at opservices.com.br>
********************************
InterOp Corp.
OpServices Division
(+55) 51 3216-7000
http://www.interop.com.br <http://www.interop.com.br>
********************************
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 9/10/2002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021017/48ea2623/attachment.html>
More information about the Users
mailing list