Nagios - To capture apache process list before restarting

James Corteciano james at linux-source.org
Thu May 27 08:46:42 CEST 2010


Hi All,

How do you guy's setup your nagios client for remote apache server to get
its httpd process list before doing soft/hard restarting apache service if
it is detected unreachable from nagios server? The following are the summary
of my setup for nagios clients for remote apache server.

[nagios-server]
       cat /usr/lib/nagios/plugins/eventhandlers/restart-httpd-remote
                (SOFT/HARD): /usr/lib/nagios/plugins/check_nrpe -H
nagios-client -c restart_httpd

[nagios-client]
       cat /etc/nagios/nrpe.conf

  command[restart_httpd]=/usr/lib/nagios/plugins/eventhandlers/restart-httpd
       cat /usr/lib/nagios/plugins/eventhandlers/restart-httpd
               /usr/bin/sudo /sbin/service httpd restart

I just wanted to know how do you get the apache process list before
triggering to restart which will helpful during diagnostic operation. Do you
used any special plugins or personal script that could insert to
"restart-httpd" file?

Thank you.

Regards,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100527/641eeeda/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------

-------------- next part --------------
_______________________________________________
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