Ad Widget

Collapse

Item value usage in Trigger name.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • burtininkai
    Junior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 25

    #1

    Item value usage in Trigger name.

    Just created few items to monitor NetAPP volume.
    1. To get Volume name: Key is aggvolnm.2
    2. To gaet Space usage: Key is aggvolpr.2


    Monitoring using SNMP all seems to be ok getting Values. Perfect.

    But also need to create Trigger which would send me an email, in which I would get information Volume name + space usage.

    Template name: UCB_NetApp

    In zabbix created trigger:

    Name: {{HOSTNAME}:aggvolnm.2} space usage > 90 %
    Expression: {UCB_NetApp:aggvolpr.2.min(#2)}>90 & UCB_NetApp:aggvolpr.2.min(#2)}<95

    Trigger fires up and email sending action:

    Default subject: {HOSTNAME}: {TRIGGER.NAME}: {STATUS}
    Default message: Hostname: {HOSTNAME}
    Problem: {TRIGGER.NAME}:
    Problem status: {STATUS}
    Severity: {TRIGGER.SEVERITY}
    Date and Time: {EVENT.DATE} - {EVENT.TIME}
    Last tested value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}

    But when getting email getting error:

    Server1: *UNKNOWN* space usage > 90 %


    In version 1.8 all was fine.

    What I've missed? Could You please show me the way? Thank You in advance.
    Last edited by burtininkai; 11-05-2010, 09:00.
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Originally posted by burtininkai

    In zabbix created trigger:

    Name: {{HOSTNAME}:aggvolnm.2} space usage > 90 %

    But when getting email getting error:

    Server1: *UNKNOWN* space usage > 90 %

    Looks like that macro is not supported. Check the list of supported macros in the online documentation. http://www.zabbix.com/documentation/1.8/manual/config/macros

    Don't know why it worked in 1.8

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • burtininkai
      Junior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 25

      #3
      Seems like:

      {host:key.func(param)} should be working. in notifications not?

      Comment

      • burtininkai
        Junior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 25

        #4
        All done.

        Trigger
        Code:
        {{HOSTNAME}:aggvolnm.1.last(0)}
        Working perfectly for trigger name, but are vissible only for mail notifications. But still much better notification.

        Thank You for support. Thread can be closed.

        Comment

        Working...