Integrate Nagios with Exchange, react to certain messages

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
sircharlo
Posts: 3
Joined: Fri Jan 13, 2012 11:49 am

Integrate Nagios with Exchange, react to certain messages

Post by sircharlo »

Hi

Is it possible for Nagios to check for new mail on an Exchange 2003 mailbox (something like [email protected]), and to acknowledge specific service problems when certain conditions are met in certain incoming messages' subjects?

I would like this to remotely acknowledge service and host problems.

For example, Nagios alerts me of a problem with a certain service on a server. I reply to the message, adding a key word in the subject. When Nagios checks its mailbox, it sees the message containing the key word. It then acknowledges the problem and stops bugging the whole IT team.

But I'm stumped. How would I go about checking the contents of an Exchange mailbox from the command line?

Thanks!
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Integrate Nagios with Exchange, react to certain message

Post by jsmurphy »

Well... you wouldn't get the contents from the exchange server... you would have the exchange server send the message to the Nagios server.

Once you have the mail going to your nagios server you can use this guide: http://www.techopsguys.com/2010/01/05/a ... l-replies/
sircharlo
Posts: 3
Joined: Fri Jan 13, 2012 11:49 am

Re: Integrate Nagios with Exchange, react to certain message

Post by sircharlo »

Thanks jsmurphy!

Your post really helped me.
I got it to work eventually.
I blogged about it here.

Thanks again!!
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Integrate Nagios with Exchange, react to certain message

Post by jsmurphy »

You're welcome, Glad I could help!
Locked