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
------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
[email protected]
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