Page 1 of 1

Wrong SNMP statistic

Posted: Thu Feb 23, 2017 1:11 pm
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

Re: Wrong SNMP statistic

Posted: Thu Feb 23, 2017 4:10 pm
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

Re: Wrong SNMP statistic

Posted: Fri Feb 24, 2017 10:29 am
by Aubrecht
Thanks a lot it WORKS.