AW: Need Process check plugin

Jochen Vogel jvogel at it-sec.de
Fri Oct 24 09:42:08 CEST 2003


hi mohamed,

i use

define command{
        command_name    check-proc
        command_line    /usr/local/nagios/libexec/check_procs -a $ARG1$ -c
$ARG2$
        }

-a search the string within a ps
-w -c is the range of the nr of processes to be ok

and

define service{
        use                             generic
        host_name                       spawn
        service_description             snort
        check_command                   check-proc!/usr/local/bin/snort!1:1
        contact_groups                  admins
        }

in this case i search for /usr/local/bin/snort and go to critical if none or
more processes are running

hope that helps
jo



Hi All,
I need to find a way to check if there is 2 certain process running on my
cluster.
check_proc is not enough...!
because it give me a warning (or critical)  if the process is running.
But I want it to give me OK if these process is running, and warn me if they
are not. because these process is daemons and should be running.

any idea...?

Regards,
Mohamed El Zeiny,


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
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