Ad Widget

Collapse

Problem with text in snmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cristhiano
    Member
    • Nov 2007
    • 48

    #1

    Problem with text in snmp

    I create one item to get sysdescr.0 of Cisco routers.
    And one trigger to verify change of text using diff (myrouter:diff(0)>0).

    But trigger is always TRUE.

    The problem in text of SNMP have "line feed".
    I believe the last or prev have too "carrier return" and so expression not match.

    Someone had the same problem ?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    What is item value type? String or Text?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • cristhiano
      Member
      • Nov 2007
      • 48

      #3
      Item type is character. If put text not work.

      The value of lastvalue have \r and in MySQL dont have \r.

      Comment

      • cristhiano
        Member
        • Nov 2007
        • 48

        #4
        I change file evalfunc.c and trigger WORK.

        This is a change:
        Attached Files

        Comment

        Working...