Ad Widget

Collapse

Using the Zabbix version in a Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Voxie
    Junior Member
    • Jul 2009
    • 24

    #1

    Using the Zabbix version in a Trigger

    I want to create a trigger that gives me a warning when the zabbix agent version is to old.
    but when I use this expression :
    {Agent Microsoft Windows:agent.version.last(0)}=1.8.12

    When I try to save the trigger I get two errors:
    Incorrect trigger expression format "{constant}=({constant}.{constant})".
    Check expression part starting from "{Agent Microsoft Windows:agent.version.last(0)}=1.8.12".


    What am I doing wrong ?
  • CWeasel
    Junior Member
    • May 2012
    • 2

    #2
    String Function

    Hey,

    Have you tried using: str({Agent Microsoft Windows:agent.version.last(0)},"1.8.12")? The complete explanation can be found here:http://www.zabbix.com/documentation/...onfig/triggers.
    In short, this compares two strings and returns: 1 if found and 0 if otherwise.

    I hope this helps,

    CWeasel

    Comment

    Working...