How to monitor Email content using nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
udaykumar
Posts: 66
Joined: Thu Jan 11, 2018 12:55 am

How to monitor Email content using nagios

Post by udaykumar »

Hi Team,

We got one query related to monitor the email body which comes from their inboxes.
Ex: the person [email protected] as received one email the email contains the green and red colored boxes like some status in table.
Requirement is we want to monitor if any red colored box is having in we need to generate alerts.
And We need to monitor some Email body to such as any string is match as per our requirement.

HOSTNAME1 100(Box in Red colored background)
HOSTNAME2 100(Box in Red colored background)
HOSTNAME3 10(Box in green colored background)

Just assume that above are in some table excel table.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: How to monitor Email content using nagios

Post by mbellerue »

I don't know how much help we can be here in support. But if it were me building this plugin from the ground up, rather than making a plugin that logged into the email, checked for an email, dealt with all of the content, and then alerted based on that content, I would instead create a script to do that heavy lifting. The result of all of that heavy lifting might be a log file for example. Then you could use something like check_log to monitor that log file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked