I'm looking at setting up a Nagios (or perhaps OpsView) server for monitoring our network.
I have a few periphery devices whose oid schema doesn't include nodes for some metric I want to monitor. Currently I monitor the metric based on status emails sent from the device itself periodically.
Can Nagios (or Opsview) be set up to report the device status based on the contents of a received email?
Ultimately I'd like to get it down to something like a red/green status. Bonus points if I can get a third (eg yellow) status indicating that the expected status email hasn't been received.
If neither Nagios nor Opsview can do this, I'm open to suggestion for something that can. Even if it does just that and I'll use Nagios for the remainder/typical net monitoring tasks.
Edit- As requested, this is an [sanitized] example of an email I would want to parse/act on:
Return-path: <email@example.com> Envelope-to: firstname.lastname@example.org Delivery-date: Fri, 28 Nov 2014 03:15:21 -0600 Received: from [xx.xx.xx.xx] (port=49676 helo=DiskStation) by mailserver.example.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim ver x.xx) (envelope-from <email@example.com>) id 123456-000000-1Z for firstname.lastname@example.org; Fri, 28 Nov 2014 03:15:21 -0600 Date: Fri, 28 Nov 2014 04:15:21 -0500 From: "Fifteen " <email@example.com> To: <firstname.lastname@example.org> Subject: =?UTF-8?B?RmlmdGVlb[snipped] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Dear user, Function X on Fifteen has been completed. Task: Function X to server3 Target Server: server3.example.com (xx.xx.xx.xx) Action Time: 2014/11/28 04:15
EDIT 2 - So just to follow up @DanielAgans suggestion, it's a bit too homegrown for me at this time. It's just a bit too far out of my skillset and comfort zone to tackle right now but I'd really like to have a way to monitor these boxes rather than having to manually watch and process the emails. Was really hoping to find some sort of plug in for nagios or Opsview. My searching and Daniel's comment makes me feel as though this might be a dead end request.
Can anyone confirm that Nagios/Ops will indeed NOT do what I need?
And of course open to suggestions of how can do it, albeit less programming intensive than what Daniel already suggested.