Page 1 of 1

Nagios XI: Send a email in a event handler using Nagios XI v

Posted: Wed Mar 13, 2019 10:47 am
by Jacobcullen
Im using a event handler to try to restart a service....

The issue is that when the event handler goes off Lorem Ipsum Temp Mail 10 Minute Mail (before going into a hard state and send the hard notification) I want to send a email saying "Event handler launched....trying to start service". I cant seem to access the $CONTACTEMAIL$ macro (Nagios doc also says it cannot be accessed from a event handler)

Is there any way around this?

Re: Nagios XI: Send a email in a event handler using Nagios

Posted: Wed Mar 13, 2019 3:32 pm
by npolovenko
Hello, @Jacobcullen. Is the event handler supposed to send emails to different email addresses depending on what service it is? I'm wondering if you could hardcode the email address to the event handler script or make some kind of logic to send emails to different addresses depending on service names.