Hi All,<div><br></div><div>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.</div>
<div><br></div><div>[nagios-server]</div><div>       cat /usr/lib/nagios/plugins/eventhandlers/restart-httpd-remote</div><div>                (SOFT/HARD): /usr/lib/nagios/plugins/check_nrpe -H nagios-client -c restart_httpd </div>
<div><br></div><div>[nagios-client]</div><div>       cat /etc/nagios/nrpe.conf</div><div>               command[restart_httpd]=/usr/lib/nagios/plugins/eventhandlers/restart-httpd</div><div>       cat /usr/lib/nagios/plugins/eventhandlers/restart-httpd</div>
<div>               /usr/bin/sudo /sbin/service httpd restart</div><div><br></div><div>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?</div>
<div><br></div><div>Thank you.</div><div><br></div><div>Regards,</div><div>James</div>