Ad Widget

Collapse

E-mail alert host status

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrRobbert
    Member
    • Nov 2006
    • 50

    #1

    E-mail alert host status

    Hi all,

    I'm new to zabbix. For my work im setting up a zabbix server...

    So far so good... but now i want to integrate an email alert system if one of the hosts is going down... or becomes just unreachable... Can someone please help me step by step to create this action in my zabbix server. Or is there a good howto which i can use???

    Greets, Robbert
  • netod
    Member
    • Nov 2006
    • 36

    #2
    Originally posted by MrRobbert
    Hi all,

    I'm new to zabbix. For my work im setting up a zabbix server...

    So far so good... but now i want to integrate an email alert system if one of the hosts is going down... or becomes just unreachable... Can someone please help me step by step to create this action in my zabbix server. Or is there a good howto which i can use???

    Greets, Robbert
    What you need to do is set up a trigger for an item (or more items) and then set up actions for those triggers.

    Eg.

    In the template Unix_t you can create a trigger for Server Unix_t is unreachable with the following expression
    ({Unix_t:status.min(900)}=2)&({Unix_t:system.uptim e.nodata(900)}=1)

    if status for last 900 seconds = 2 (unreachable) and there has been no data for the uptime item in the last 900 seconds then this trigger goes ON.

    You can set this trigger to have high priorty, then in the actions section set up an action which has

    Trigger severity = "High"
    Trigger value = "On"

    to email you with details.

    Thats pretty much all there is to it. You must follow the logical path though, Host -> Item -> Trigger -> Action

    More info about this kindda stuff here:

    http://www.zabbix.com/manual/v1.1/config.php

    Comment

    • MrRobbert
      Member
      • Nov 2006
      • 50

      #3
      Hi, tnx for ya help,

      now i did the following:

      Create Trigger:

      Name: Host is unreachable
      Expression: ({Unix_t:status.min(900)}=2)&({Unix_t:system.uptim e.nodata(900)}=1)
      Severnity: High


      Create Action:

      Action Type; Send Message
      Source: Trigger
      Subject: {Trigger.Host is unreachable}: {STATUS}
      Message: {TRIGGER.NAME}: {STATUS}


      I think it works for now... i received a mail just ones. But when other hosts went down, i didnt receive a mail...

      Anyway thnx alot

      Grz Robbert

      Comment

      • netod
        Member
        • Nov 2006
        • 36

        #4
        Originally posted by MrRobbert
        Hi, tnx for ya help,

        now i did the following:

        Create Trigger:

        Name: Host is unreachable
        Expression: ({Unix_t:status.min(900)}=2)&({Unix_t:system.uptim e.nodata(900)}=1)
        Severnity: High


        Create Action:

        Action Type; Send Message
        Source: Trigger
        Subject: {Trigger.Host is unreachable}: {STATUS}
        Message: {TRIGGER.NAME}: {STATUS}


        I think it works for now... i received a mail just ones. But when other hosts went down, i didnt receive a mail...

        Anyway thnx alot

        Grz Robbert

        Make sure the trigger is present in all your host items configurations, otherwise it wont work...Also you can add an ACTION for when the server comes back online by changing the trigger value from ON to OFF.

        Good luck, have a play with it, its fun!

        Comment

        Working...