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
[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

Reply via email to