Wrong SNMP statistic

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Aubrecht
Posts: 2
Joined: Thu Feb 23, 2017 6:56 am

Wrong SNMP statistic

Post by Aubrecht »

Hello,
I have problem with viewing service statistic.

Its standard SNMP service :

check_xi_service_snmp! -o 1.3.6.1.4.1.25053.1.1.12.1.1.1.3.1.2.1 -C public -P 2c!!!!!!! (its for monitoring no. of devices at Ruckus WIFI AP at 2,4Gh)

At realtime overview showing correct data ( SNMP OK - 29 ), but at graphs and exports data are strange:

Example of export:

'1487867100','8.2081597679e+05'
'1487867400','3.0488888889e-03'
'1487867700','7.3587106325e+06'
'1487868000','6.1370310460e+06'
'1487868300','8.1795266023e+06'
'1487868600','6.1370310445e+06'
(first column its timestamp its OK, but then have to be value 0-200 not 820815.97679)
See pistures

Where should be problem? How to export/view correct data?


Nagios XI - System Info
System:
Nagios XI Version : 5.4.0
localhost.localdomain 2.6.32-642.6.1.el6.x86_64 x86_64
CentOS release 6.8 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Server Name: 192.168.1.5
Server Address: 192.168.1.5
Server Port: 80
Date/Time
PHP Timezone: Europe/Prague
PHP Time: Thu, 23 Feb 2017 19:10:15 +0100
System Time: Thu, 23 Feb 2017 19:10:15 +0100
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Fri Feb 24, 2017 11:42 am, edited 1 time in total.
Reason: marking with green check mark
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wrong SNMP statistic

Post by tgriep »

In short, when the check_snmp command polls a counter, the application that creates and updates the graph, sees that is it a counter and processes the differences between the data.
That routine has rounding errors and only graphs the rounded data.
To fix it, you will have to follow this post and change the data received to a gauge and then the data will be plotted correctly.
Take a look at this post for more details and instructions.
https://support.nagios.com/forum/viewto ... 9&start=10
Be sure to check out our Knowledgebase for helpful articles and solutions!
Aubrecht
Posts: 2
Joined: Thu Feb 23, 2017 6:56 am

Re: Wrong SNMP statistic

Post by Aubrecht »

Thanks a lot it WORKS.
Locked