Monitor email output?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vincheesel
Posts: 30
Joined: Fri Jan 11, 2013 5:33 am

Monitor email output?

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor email output?

Post 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.
vincheesel
Posts: 30
Joined: Fri Jan 11, 2013 5:33 am

Re: Monitor email output?

Post by vincheesel »

Does anyone know any scripts I can use in order to make this possible?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor email output?

Post 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...
vincheesel
Posts: 30
Joined: Fri Jan 11, 2013 5:33 am

Re: Monitor email output?

Post by vincheesel »

Yeah, me neither..

I'm not much of a developer unfortunately
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor email output?

Post 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.
Former Nagios employee
vincheesel
Posts: 30
Joined: Fri Jan 11, 2013 5:33 am

Re: Monitor email output?

Post by vincheesel »

I understand guys, just thought there would be something out there, unfortunately its not in nagios exchange.

Thanks anyway
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor email output?

Post 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.
Former Nagios employee
Locked