Page 1 of 1

Email Activation

Posted: Wed Jul 11, 2012 12:21 pm
by Jer
Hi, First time user to this Forum. Not even sure how to search for this topic.
Basically we were asked by a customer if we had email capabilty to our nagios server. He wanted to know if he could temporarily stop a monitor of a server thru an Email command. Some customers don't have access to scedule outage windows for their servers/apps. Is there anything already built to handle email command like this? Or in a future release? or any other nifty email commands.
Thanks,
--Jer

Re: Email Activation

Posted: Wed Jul 11, 2012 12:40 pm
by agriffin
Nagios Core doesn't do this by default, and I'm not aware of any add-ons that do it either. It's also very unlikely to ever be added to Nagios Core because of various problems with implementing something like this, not the least of which is security. Though you are always welcome to try your hand at developing your own solution for this if you really need it.

Re: Email Activation

Posted: Wed Jul 11, 2012 7:22 pm
by jsmurphy
This wouldn't be too hard to implement using a little bit of procmail and scripting magic, but as agriffin already said for security reasons you probably wouldn't want to do this. If however you want more information there is an article that has a tutorial: http://www.techopsguys.com/2010/01/05/a ... l-replies/

A better solution would be to give them a logon to the nagios interface with a dummy contact definition that receives no alerts but will map that user logon to the appropriate devices. This has less security implications, it's easier and it's a native function of the application. If they are on a separate network and thus unable to actually reach the Nagios interface then unfortunately you will probably have to develop something that sits in between the Nagios server and your customer.