Ad Widget

Collapse

Monitoring email messages sent by one host (or log file)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Moebius
    Member
    • Dec 2022
    • 43

    #1

    Monitoring email messages sent by one host (or log file)

    I'm in need of suggestions here. I have limited Zabbix experience and would welcome an expert advice.

    A Linux host runs a service that in turn monitors specific services running on several (40-ish) remote physical machines.
    When one of those remote services goes down, the Linux service sends email messages to a list of recipients with a warning.

    The Linux host is monitored by Zabbix with Zabbix agent; the remote physical machines cannot be reached by Zabbix directly, and it is not possible to install an agent on them.

    I need the Zabbix server to raise an alert and do the relevant actions when the Linux host sends its email messages. The Linux host could, of course, include the Zabbix server in its recipient list if needed.
    How can this be achieved?

    The Linux service could also be configured to append text lines to a log file every time it sends the emails. So an alternative would be the Zabbix server monitoring the log file for changes and parse the written text, in order to display the alert and some relevant information (what service has gone down, on which machine, etc.).

    Which approach is easier? Any suggestions?

    If relevant: Zabbix server and agent v.6.4.6.
  • PeterZielony
    Senior Member
    • Nov 2022
    • 146

    #2
    Log monitoring is the easiest to be honest


    Hiring in the UK? Drop a message

    Comment

    Working...