Nagios - To capture apache process list before restarting
Marc Powell
lists at xodus.org
Thu May 27 14:43:47 CEST 2010
On May 27, 2010, at 1:46 AM, James Corteciano wrote:
> 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?
Couldn't it be as straightforward as modifying the restart script on the client to capture it to a file? --
/usr/lib/nagios/plugins/eventhandlers/restart-httpd --
/bin/ps -efwww | grep https > /path/to/apachelist.log
/usr/bin/sudo /sbin/service httpd restart
--
Marc
------------------------------------------------------------------------------
_______________________________________________
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