Ad Widget

Collapse

String comparison

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chasefox
    Junior Member
    • Mar 2017
    • 1

    #1

    String comparison

    I've been having difficulty building a trigger based on string comparison. I want to be able to check if the running config matches the saved config. SNMP of the appliance gives me a value that offers a checksum of the configs, but I have been unable to compare these values in zabbix.

    If I try the straightforward approach
    Code:
    {Template SNMP Adtran:adAOSStartConfigChecksum.last()}<>{Template SNMP Adtran:adAOSRunConfigChecksum.last()}
    It doesn't work because it seems <> can only compare numerical values.

    If I try a more round-about approach
    Code:
    {Template SNMP Adtran:adAOSStartConfigChecksum.str({Template SNMP Adtran:adAOSRunConfigChecksum.last()})}<>1
    it doesn't work because it seems nested variables are not supported.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    In case somebody stumbles upon this older thread - string comparison in triggers is supported since Zabbix 5.0:
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...