Need advice - Emails to alerts?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Need advice - Emails to alerts?

Post by BanditBBS »

We have a system here for monitoring our plethora of HVAC systems called I-Vu. It can send alerts via on screen pop-up(no use) or via email. As monitoring administrator I only want to have to manage one system. i don't want to create accounts in I-Vu and have it alerting directly from it. I want to get those emails somehow sent to XI and have it do the alerting, since it does the SMS as well as email alerts.

I was thinking of finding some way to convert the emails into traps and having those sent to XI. Anyone here ever do something like that or have some other way for me to get the email alerts into XI?

Thanks!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Need advice - Emails to alerts?

Post by mguthrie »

Can those emails be converted to an HTTP GET or POST? If so you could just create volatile passive checks and push that data into Nagios using NRDP...
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Need advice - Emails to alerts?

Post by BanditBBS »

mguthrie wrote:Can those emails be converted to an HTTP GET or POST? If so you could just create volatile passive checks and push that data into Nagios using NRDP...
Anything is possible with the proper scripts :) I just don't want to have to write them. This seems like a decent feature request for XI, ability to check an email account and alert on new emails with the body of the message.....heading to tracker now :D
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Need advice - Emails to alerts?

Post by CGraham »

Have a /home/nagios/.procmailrc file:

Code: Select all

#/home/nagios/.promailrc
LOGFILE=$HOME/.procmailrc.log
MAILDIR=$HOME/Mail
VERBOSE=yes
PATH=/usr/bin
:0
* ^Subject:[    ]*\/[^  ].*
| /usr/lib/nagios/eventhandlers/processmail "${MATCH}"
This will pull the subject line out of an email and push it into a script (I know you said you didn't want to script it, but Christmas is always slow right?). From there, the sky's the limit.
Locked