Need Nagios to create graphs from incrementing SNMP counter

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nggiants33
Posts: 2
Joined: Tue Oct 06, 2015 1:47 pm

Need Nagios to create graphs from incrementing SNMP counter

Post by nggiants33 »

I am looking to monitor the number of accepted packets through a firewall via SNMP. I have the specific OID that I am looking to monitor. The data type is: Integer. The description is: "Total number of accepted packets since last reboot."

How can I have Nagios monitor this OID so that it creates graphs? Also, I would like to be able to generate an alert if the a certain threshold is reached related to this OID.

Basically Nagios will need to check the value of this OID at time T1. Then check the value again at time T2. Then it will need to calculate T2-T1 and the difference for this OID at both of these times in order to create the graphs.

Is there a wizard that can help set this up?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Need Nagios to create graphs from incrementing SNMP coun

Post by rkennedy »

The SNMP wizard should work for you, have you given that a try yet?
Former Nagios Employee
nggiants33
Posts: 2
Joined: Tue Oct 06, 2015 1:47 pm

Re: Need Nagios to create graphs from incrementing SNMP coun

Post by nggiants33 »

Yes, I tried that. However, the result of the SNMP query is a very large Integer value since it's basically a counter. I need Nagios to do the calculation I mentioned above to be able to graph & alert on this OID.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Need Nagios to create graphs from incrementing SNMP coun

Post by gormank »

You can write your own and grab the info w/ snmpget, or start looking for something already created.

https://www.google.com/search?q=nagios+ ... 8&oe=utf-8
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Need Nagios to create graphs from incrementing SNMP coun

Post by rkennedy »

check_snmp can't do any math built in. You may be able to create a bash script to work in conjunction with check_snmp though for handling the math.
Former Nagios Employee
Locked