Vedr.: Monitoring a group of processes

Thomas Jens Lauritsen tjl at topdanmark.dk
Wed Dec 14 14:51:32 CET 2005


Hi Kevin,

I have made a shell-plugin that ask for a group of processes.

It uses SNMP to get the data which I pipe to tmp-file.

Then I reread the file via grep etc. until I have a status which I then
tell Nagois about.

In the services.cfg it look like this.

# Service definition
define service{
        use                             generic-service         ; Name of
service template to use
        host_name                       SERVER-XXXX
        service_description             AVIRUSTASKS
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              2
        normal_check_interval           15
        retry_check_interval            1
        contact_groups                  xxxxxx-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command
check_tasks.sh!public!nantigen.exe!nasched.exe!nnwall.exe!nnwalljp.exe!
        }

As you can see I check for these four processes on a windows box:
nantigen.exe ; nasched.exe ; nnwall.exe ; nnwalljp.exe

Best reegards

Thomas



|---------+---------------------------------------->
|         |           "Kevin Alford"               |
|         |           <kevin.alford at tmctechnologies|
|         |           .com>                        |
|         |           Sendt af:                    |
|         |           nagios-users-admin at lists.sour|
|         |           ceforge.net                  |
|         |                                        |
|         |                                        |
|         |           14-12-2005 14:37             |
|         |                                        |
|---------+---------------------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                                              |
  |       Til:      "nagios-users" <nagios-users at lists.sourceforge.net>                                          |
  |       cc:                                                                                                    |
  |       Vedr.:    [Nagios-users] Monitoring a group of processes                                               |
  >--------------------------------------------------------------------------------------------------------------|




I am running nagios 2.0b5 on Fedora core 3.  I wanted to know if it is
capable of monitoring a group of processes?
An example is smbd and nmbd.  You need both of them to be running for
Samba to be operational.  I can use the command
/usr/local/nagios/libexec/check_procs -C smbd to see that the smbd
processes are running, and I can do the same thing
For nmbd, but how do I look at them together?  This is just an example.
I am using this to monitor the project specific
Application we run, but it involves multiple processes.  I would like to
monitor each process, and report on the application
Being up as a whole.  Your assistance in this matter is greatly
appreciated.



Kevin D. Alford




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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