Ad Widget

Collapse

Help on monitoring SNMP variables type IpAddress

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gabin
    Junior Member
    • Mar 2007
    • 5

    #1

    Help on monitoring SNMP variables type IpAddress

    Hello,
    I'm using zabbix to monitor a few Cisco routers. On a couple of them I want to check routes stability so I want to monitor SNMP variable
    .iso.org.dod.internet.mgmt.mib-2.ip.ipRoutingTable.ipRouteEntry.ipRouteNextHop

    I have trouble configuring a trigger for when the IpAddress in "ipRouteNextHop" changes.

    Please help
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,
    Originally posted by gabin
    I'm using zabbix to monitor a few Cisco routers. On a couple of them I want to check routes stability so I want to monitor SNMP variable
    .iso.org.dod.internet.mgmt.mib-2.ip.ipRoutingTable.ipRouteEntry.ipRouteNextHop
    For something like that, I would suggest trying something like the following trigger;
    Code:
    {ROUTER:.iso.org.dod.internet.mgmt.mib-2.ip.ipRoutingTable.ipRouteEntry.ipRouteNextHop.diff(0)}<0
    Another option would be to translate the MIB to it's numeric syntax to try to shorten it a bit.
    Unofficial Zabbix Developer

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Note that the key can be any unique string for SNMP item. It makes little sense to use long numeric or string OIDs for the key.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • gabin
        Junior Member
        • Mar 2007
        • 5

        #4
        I configured the trigger and now i get the following messages in the server log

        2145:20070321:115131 Parameter [1.3.6.1.2.1.4.21.1.7.10.201.0.0] is not supported by agent on host [router_1.19] Old status [0]
        2145:20070321:115131 Cannot store SNMP string value (ASN_IPADDRESS) in item having numeric type

        i tried to config the type as integer,float,text and it didn't work
        i also checked the snmp variable and it works:

        [root@netmon root]# snmpget -Os -c *** -v 2c 10.254.1.19 1.3.6.1.2.1.4.21.1.7.10.201.0.0
        ipRouteNextHop.10.201.0.0 = IpAddress: 192.168.250.2

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Please try to configure this item as a string.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • gabin
            Junior Member
            • Mar 2007
            • 5

            #6
            after setting type "char" and setting trigger
            {ROUTER:.iso.org.dod.internet.mgmt.mib-2.ip.ipRoutingTable.ipRouteEntry.ipRouteNextHop.di ff(0)}#0
            the trigger activates when route changes.

            Thank you
            Gabriel

            Comment

            Working...