Email Activation

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Jer
Posts: 1
Joined: Wed Jul 11, 2012 12:12 pm

Email Activation

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Email Activation

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Email Activation

Post 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.
Locked