Now, I'm getting the itch (as well as mgmt prodding) to take it a step further. One of the ways we're looking to expand is with proactive eventhandlers. I have successfully configured a basic eventhandler to invoke a remote httpd service restart through NRPE when a problem is detected. The problem is that no one is notified. From reading the documentation, it seems that this was the intent. However, my fellow admins, mgmt, and developers not only want the service to be restarted as quickly as possible, but they also want to know that it happened. I know, we're a needy bunch
So, I've tried passing nagios macros such as $NOTIFICATIONRECIPIENTS$, $CONTACTEMAIL$, as well as others along to my basic event handler with the intent of sending out an email notification similar to the /bin/mail command used by notify-host-by-email or notify-service-by-email. It seems that these macros aren't populated when the eventhandler is called, and so those variables are empty when the eventhandler is executed.
So, am I going down the right path here?
Is everyone else content with not knowing when a service is bounced by an eventhandler?
Taking a step back, is there some other means by which I can remotely bounce a service when needed AND get a notification email sent to a contactgroup informing them that the action occurred?
Thanks in advance, and I hope to be able to help out on this forum in the future.