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.
Can Nagios XI accept inbound emails and generate an alert?
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Can Nagios XI accept inbound emails and generate an aler
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.
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
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.
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
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
Re: Can Nagios XI accept inbound emails and generate an aler
Sorry to resurrect an old thread.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.
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
How far along did you get in the install?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can Nagios XI accept inbound emails and generate an aler
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.tgriep wrote:How far along did you get in the install?
Re: Can Nagios XI accept inbound emails and generate an aler
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
http://www.postfix.org/STANDARD_CONFIGU ... EADME.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can Nagios XI accept inbound emails and generate an aler
Let me ask you something. I'm trying to collect emails from multiple devices at a single site, and generate alerts from them.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
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
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