Page 1 of 1
Monitor email output?
Posted: Tue Apr 29, 2014 6:47 pm
by vincheesel
Hi all,
Are there any plugins to monitor POP3/IMAP4 email output into nagios XI?
We have a script that runs via email for backups and I wish for nagios to extract the information from the email and report the results in the dashboard.
if the text "backup successful" is found in the email I wish for it to report OK
if the text found states the "backup failed" is failed I wish for it to go critical.
Also - if the email hasn't been reported for over 2 days I wish for the status to fail.
Any ideas?
Re: Monitor email output?
Posted: Wed Apr 30, 2014 10:14 am
by slansing
I'd highly recommend searching the exchange:
http://exchange.nagios.org/index.php?op ... hword=pop3
You could also build a script to scrape the info from an email, and dump it in a file, then have nagios read the context of that file with a regex match periodically. There does not seem to be a plugin that specifically does this, but I did not look very long.
Re: Monitor email output?
Posted: Thu May 01, 2014 7:55 am
by vincheesel
Does anyone know any scripts I can use in order to make this possible?
Re: Monitor email output?
Posted: Thu May 01, 2014 9:35 am
by slansing
As I mentioned above, you should search the exchange, if you do not find something there I'd recommend googling around, you may need to create a custom plugin for yourself. I did some preliminary looking, for you, and did not find much...
Re: Monitor email output?
Posted: Thu May 01, 2014 9:19 pm
by vincheesel
Yeah, me neither..
I'm not much of a developer unfortunately
Re: Monitor email output?
Posted: Fri May 02, 2014 9:38 am
by tmcdonald
I'm with slansing on this one. It's a fairly narrow requirement so I would be surprised if someone had come up with exactly what you need. Maybe a developer or sysadmin in your company could lend you a hand? We're happy to help with proof-reading and small changes, but writing a whole new plugin is a bit out of scope.
Re: Monitor email output?
Posted: Mon May 05, 2014 2:18 am
by vincheesel
I understand guys, just thought there would be something out there, unfortunately its not in nagios exchange.
Thanks anyway
Re: Monitor email output?
Posted: Mon May 05, 2014 9:17 am
by tmcdonald
Sorry about that. While there are tons of plugins out there, it's sometimes just the luck of the draw whether or not one exists for your specific needs.
I'll be closing this thread now, but feel free to open another if you need anything in the future.