Ad Widget

Collapse

Send e-mail alert when a host item is disabled by a user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thebossbaby
    Junior Member
    • Jul 2019
    • 11

    #1

    Send e-mail alert when a host item is disabled by a user

    Hi guys,

    Is there a way to send an e-mail alert based on when monitoring of a host has been disabled? My manager would like to receive alerts when a sysadmin has disabled monitoring on any hosts.

    I can see in the audit log that when monitoring of a host is disabled, the details show is:

    Resource: Host
    Action: Updated
    Description: "Hostname"
    Details: hosts.status: 1 => 0
  • onurintel
    Junior Member
    • Nov 2018
    • 4

    #2
    hello, did you find a solution?

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      You could create a script that would periodically check audit log using API: https://www.zabbix.com/documentation...e/auditlog/get
      You'd need to store the ID of last processed audit log record.

      Comment

      • onurintel
        Junior Member
        • Nov 2018
        • 4

        #4
        Originally posted by dimir
        You could create a script that would periodically check audit log using API: https://www.zabbix.com/documentation...e/auditlog/get
        You'd need to store the ID of last processed audit log record.
        hello dimir, I wrote a cronjob perl script, periodically checks HOST/ITEM/TRIGGER status change and alert mail.

        Click image for larger version

Name:	ss.png
Views:	476
Size:	15.7 KB
ID:	415089

        Comment

        Working...