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?
Need Nagios to create graphs from incrementing SNMP counter
-
nggiants33
- Posts: 2
- Joined: Tue Oct 06, 2015 1:47 pm
Re: Need Nagios to create graphs from incrementing SNMP coun
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
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.
Re: Need Nagios to create graphs from incrementing SNMP coun
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
https://www.google.com/search?q=nagios+ ... 8&oe=utf-8
Re: Need Nagios to create graphs from incrementing SNMP coun
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