Performance Graph reports inaccurate fractions
Posted: Thu Aug 08, 2013 9:44 am
Problem: Performance Graph often reports count of, for example, "5.9067" instead of "6.0000".
Service Overview shows:
Advanced Status Details shows:
But, legend on Performance Graph shows:
It seems to be doing some kind of internal floating-point rounding that gives an inaccurate number when converted back to decimal. If these numbers were rounded to the nearest integer, it would show the right numbers.
Version: Nagios XI 2012R2.2 downloaded with 64-bit Microsoft virtual machine.
Service settings:
Check command
$ARG2$
$ARG3$
Service Overview shows:
Code: Select all
Terminal Services Active = 6.00 SessionsCode: Select all
Performance Data: 'Terminal Services Active'=6.000000Sessions;70.000000;100.000000; Code: Select all
Terminal_Services_Active 5.9067 Sessions LAST 5.9067 Sessions MAX ...Version: Nagios XI 2012R2.2 downloaded with 64-bit Microsoft virtual machine.
Service settings:
Check command
Code: Select all
check_xi_service_nsclient
$USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$Code: Select all
COUNTERCode: Select all
-l "\\Terminal Services()\\Active Sessions","Terminal Services Active","Sessions" -w 70 -c 100