Page 1 of 2
Can Nagios XI accept inbound emails and generate an alert?
Posted: Fri Jun 12, 2015 8:28 am
by derekb
We're attempting to setup some monitoring on some IP Cameras and some QNAP devices, and these devices to not have their own SNMP MIB from what I am finding out, so we're only able to do simple ping monitoring, and very very basic SNMP monitoring through standard SNMP MIBs.
These devices, however, have built-in email servers that we have setup to send us an email alert when a certain event occurs.
Is Nagios able to receive an inbound email, and based on certain criteria (email subject, body, etc), generate a WARNING or CRITICAL host or service alert? I'm trying to figure out the best way of monitoring these hosts without relying on email, as we all know emails can be missed, overlooked etc and having all of my device alerts in one sleek interface is most preferable.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Fri Jun 12, 2015 9:19 am
by jdalrymple
It's not built into XI, but there is a plugin on the Exchange that reads like it does exactly what you want:
https://exchange.nagios.org/directory/A ... on/details
I suggested it to another individual awhile back and he indicated that the install was easy but writing filters was difficult. I personally haven't fiddled with it. YMMV, but take a look and let us know if it interests you and you think we might be able to help set it up.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Fri Jun 12, 2015 1:39 pm
by derekb
I actually emailed the developer of that plugin earlier, and he confirmed it'll do what we need but that the filter is hard to write.
I've taken a look and it's definitely beyond me. I'll keep looking into it to see how to write the filter.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Fri Jun 12, 2015 1:41 pm
by tmcdonald
We can leave this thread open if you want, but it sounds like the developer is fairly responsive and would likely be the best person to get help with this plugin.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Mon Aug 15, 2016 3:49 pm
by derekb
tmcdonald wrote:We can leave this thread open if you want, but it sounds like the developer is fairly responsive and would likely be the best person to get help with this plugin.
Sorry to resurrect an old thread.
I'm going through the readme, but I'm a bit lost as to where to start, to be quite honest.
Anyone on here using this mail2mon plugin at all? Wondering if I could get a hand with the setup of this on our XI server, or atleast a place to get started. I've got the scripts installed on the server, but I'm not entirely sure where to go from here.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Mon Aug 15, 2016 4:20 pm
by tgriep
How far along did you get in the install?
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Mon Aug 15, 2016 4:35 pm
by derekb
tgriep wrote:How far along did you get in the install?
I literally downloaded the tgz and read thru the readme -- like I said I'm not entirely sure where to start. I don't have postfix setup to handle incoming email right now which I'm assuming is a requirement in itself.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Mon Aug 15, 2016 4:42 pm
by tgriep
Start at the Postfix web site for some examples or search at your favorite site for setting up inbound email for using Postfix.
http://www.postfix.org/STANDARD_CONFIGU ... EADME.html
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Mon Aug 15, 2016 4:51 pm
by derekb
Let me ask you something. I'm trying to collect emails from multiple devices at a single site, and generate alerts from them.
Looking at this plugin, do you think this would scale well for 100s of devices? Basically id have 1 host (a raspi running nrds), and each device would be a "service".
Device sends email to nagios postfix server for processing.
I'm trying to better understand if this plugin will suffice or if something custom developed would be a better way to fly for this.
Either way I'll tinker with this a bit and see where it gets us.
Re: Can Nagios XI accept inbound emails and generate an aler
Posted: Tue Aug 16, 2016 10:56 am
by rkennedy
I think the plugin will work for your needs, but can't really comment on the aspect of scaling. As we did not write it, it's hard to say. I know you mentioned contacting the author previously, and it might be worth contacting them once again.