Ad Widget

Collapse

Cisco SNMP polling interval

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • promise2kk
    Junior Member
    • Nov 2022
    • 2

    #1

    Cisco SNMP polling interval

    Hi All
    im kinda new to Zabbix. i have setup the basic setup for my Zabbix and i have 3 cisco devices which i am pollign via SNMP. that is working fine.

    however i would like to increase the polling time and get the ports traffic stats every 10 seconds. currently i am getting the stats every 1 min.
  • promise2kk
    Junior Member
    • Nov 2022
    • 2

    #2
    anybody. plz help.

    Comment

    • ambifox_marcel
      Junior Member
      • Jun 2022
      • 3

      #3
      ​Hi, go to Configuration | Template and open the template you use to monitor your Cisco routers via SNMP. Since Zabbix has to discover which ports are available on your routers you'll find the port related monitoring items under 'Discovery rules'. To show you I have opened the template "Cisco IOS SNMP" which comes with Zabbix.
      Click image for larger version

Name:	Screenshot_2022-11-14_10-53-19_aee8c355-d4b0-47f1-8f1d-3b46a26e5b7a.png
Views:	3338
Size:	93.3 KB
ID:	454287

      If you open 'Network interfaces discovery' you can click on 'Item prototypes':
      Click image for larger version

Name:	Screenshot_2022-11-14_10-55-38_16519843-acde-41eb-b02e-952aa9797b23.png
Views:	3243
Size:	41.0 KB
ID:	454288

      Here you'll find all items that are created for each interface that Zabbix discovers. Here you can also update the interval in which Zabbix is supposed to poll these metrics.
      Click image for larger version

Name:	Screenshot_2022-11-14_10-56-23_6927a88d-9e52-48da-be78-a8a13a205335.png
Views:	3236
Size:	110.5 KB
ID:	454289

      Here it is 9 items per interface. So, if you have a router with 3 interface Zabbix will create 27 items in total to monitor the interfaces.
      Keep in mind that changes to the item prototypes do not take effect immediately. The next time Zabbix discovers the interfaces it will update the items according to the changes made to the item prototypes.
      In my example Zabbix makes a discovery once every hour. You can also execute a discovery manually under Configuration | Host, select the desired host and under Discovery or Discovery rules you can check the discovery rule and click on 'Execute now'​​

      Comment

      • ambifox_marcel
        Junior Member
        • Jun 2022
        • 3

        #4
        PS: you may want to check your trigger as well. For example, you can calculate the average of an item based on time or based on last x item values.
        For example a a trigger which calculates the average of the last 5 item values would now effectively look at the last 50 seconds if you change your update Intervall to 10s. If your trigger was the average of last 5 minutes the trigger will effectively take more item values into account since you'll have much more values in that 5 minutes.

        Example with time based trigger:
        avg(/Cisco IOS SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],5m)

        Example with trigger based on x item values:
        avg(/Cisco IOS SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],#5)

        Comment

        • jtnfoley
          Member
          • Mar 2022
          • 76

          #5
          Left menu, Configuration, Templates.
          Find the template (I'm using "Cisco IOS SNMP") and edit the properties by clicking the template name. You can find SOME of the polling intervals in the Items view (common, simple items like Ping) while you have to drill down to Discovery Rules / EtherLike-MIB Discovery to increase the interval on network interfaces for things like bandwidth utilization.

          Note that a 10s polling interval will probably be too much for large environments. I cloned the Cisco IOS SNMP template and called it "Cisco IOS SNMP rapid" and changed certain items to 30 seconds then only applied THAT template to switches or routers where I wanted greater resolution.
          I did this because I've got hundreds of devices, and changing the polling interval on the shared template would have increased the polling interval on EVERY item in the environment.

          Comment

          Working...