Page 1 of 1

How to monitor Email content using nagios

Posted: Tue Aug 27, 2019 7:39 pm
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.

Re: How to monitor Email content using nagios

Posted: Wed Aug 28, 2019 1:06 pm
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.