Can Nagios XI accept inbound emails and generate an alert?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Can Nagios XI accept inbound emails and generate an alert?

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Can Nagios XI accept inbound emails and generate an aler

Post 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.
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Can Nagios XI accept inbound emails and generate an aler

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can Nagios XI accept inbound emails and generate an aler

Post 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.
Former Nagios employee
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Can Nagios XI accept inbound emails and generate an aler

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can Nagios XI accept inbound emails and generate an aler

Post by tgriep »

How far along did you get in the install?
Be sure to check out our Knowledgebase for helpful articles and solutions!
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Can Nagios XI accept inbound emails and generate an aler

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can Nagios XI accept inbound emails and generate an aler

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Can Nagios XI accept inbound emails and generate an aler

Post by derekb »

tgriep wrote: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
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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can Nagios XI accept inbound emails and generate an aler

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