Page 1 of 1

Need advice - Emails to alerts?

Posted: Wed Dec 12, 2012 12:10 pm
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!

Re: Need advice - Emails to alerts?

Posted: Wed Dec 12, 2012 12:53 pm
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...

Re: Need advice - Emails to alerts?

Posted: Wed Dec 12, 2012 1:03 pm
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

Re: Need advice - Emails to alerts?

Posted: Wed Dec 12, 2012 3:17 pm
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.