NSClient++ Help (#1) - scientific notation showing up in 0.4 (#992) - Message List

scientific notation showing up in 0.4

I've searched the forums, and haven't seen this problem reported...

I've updated a few of my systems to 0.4, and I'm seeing scientific notation in the performance data. The pnp4nagios specification for performance data doesn't allow for it, and it was fixed in bug #151 in 0.3.4 RC-3. However, it seems to be happening again.

For example, I have two Windows 2008 servers that are configured pretty much the same way. They are running different versions of nscp.

Here is some sample output from 0.3.9 that has the problem fixed:

$ /usr/lib64/nagios/plugins/check_nrpe -H STNPAP04A -c CheckVersion
0.3.9.328 2011-08-16
$ /usr/lib64/nagios/plugins/check_nrpe -H STNPAP04A -c CheckMem -a MaxWarn=50% MaxCrit=75% ShowAll=long type=virtual
OK: virtual memory: Total: 8T - Used: 83.5M (0%) - Free: 8T (100%)|'virtual memory %'=0%;50;75 'virtual memory'=83.53MB;4194303.94;6291455.91;0;8388607.88

Here is some sample output from 0.4.0.170 that shows the problem (e+006 in output):

$ /usr/lib64/nagios/plugins/check_nrpe -H STNPAP01 -c CheckVersion
0,4,0,170 2012-05-03
$ /usr/lib64/nagios/plugins/check_nrpe -H STNPAP01 -c CheckMem -a MaxWarn=50% MaxCrit=75% ShowAll=long type=virtual
OK: virtual memory: Total: 8T - Used: 275M (0%) - Free: 8T (100%)|'virtual memory %'=0%;50;75 'virtual memory'=274.88M;4.1943e+006;6.2915e+006;0;8.3886e+006

Is there any chance this could be fixed in 0.4?

-Owen

  • Message #2634

    Will be fixed in next build.

    Michael Medin

Subscriptions