On usage of check_procs
Marc Powell
marc at ena.com
Wed Aug 10 17:44:22 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de
> Sent: Wednesday, August 10, 2005 9:49 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] On usage of check_procs
>
> Hello,
>
> I have a little question regarding the usage of check_procs.
>
> Somehow I feel the usage of check_procs could well be overkill
> because I only want to monitor if a certain single process (that
> doesn't fork) is still running.
>
[snip]
> Nevertheless I'd like to use the ready made check_procs.
>
> But I'm unsure about the correct usage of the ranges type of
> arguments for the options -w and -c.
>
> Since either the process to monitor is running (which would be
> OK),
> or otherwise is not running (which would be CRITICLA),
> it doesn't make much sense to me to specify ranges (of numbers of
> processes)
Of course not in this specific usage. If you had a process that spawned
a number of children (ala apache) then ranges make sense.
> I thought I could use the check_procs for my purpose in such a
> (silly?) manner.
> Would that be one possible way how to check a single process for
> existence in the proc table?
By example --
./check_procs -c 1:1 -C init
OK - 1 processes running with command name init
> (well, if it was an un-wait-ed for child it could well be a
> zombie, so maybe a more sophisticated state check too was
> necessary?)
>
Use the -s flag as appropriate.
[mpowell at gemini libexec]$ ./check_procs -c 1:1 -C init -s Z
CRITICAL - 0 processes running with command name init, STATE = Z
[mpowell at gemini libexec]$ ./check_procs -c 1:1 -C init -s S
OK - 1 processes running with command name init, STATE = S
--
Marc
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list