There is a formula that counter data gets processed through and what you are seeing is rounding errors from that formula and is causing the graph to not display correctly.
To fix the issue, you have to create a template and a new command that will use the template.
The graph template that should fix the graphing issue with monitoring counters with the check_snmp plugin is attached to the post.
Here is how to install it.
In Core Config Manager
Create a copy of the check_snmp command and call it check_snmp_gauge
Edit the Command Name to check_snmp_gauge
Code: Select all
define command {
command_name check_snmp_gauge
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}Code: Select all
define service {
host_name xxx.xxx.xxx.xxx
service_description Test SNMP
check_command check_snmp_gauge! -P 2c -C public -o 1.3.6.1.2.1.4.31.1.1.35.1 -w 100 -c 110 -l test!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
register 1
}Code: Select all
/usr/local/nagios/etc/pnp/check_commands/check_snmp_gauge.cfgChanged the permissions of the check_snmp_gauge.cfg file to the following
Code: Select all
chown apache.nagios check_snmp_gauge.cfg
chmod 666 check_snmp_gauge.cfgCode: Select all
/usr/local/nagios/share/perfdata/<HostName>/