You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tried to check some Windows counters that return float values. To ensure check_pdh could handle the value I set the flag type=double. Here an extract of the check I setup.
alias_checklogicaldisk_averagelatency_disk1=check_pdh "counter=\LogicalDisk(*)\Avg. Disk sec/Transfer" type=double
Running this manually ( nscp test )
alias_checklogicaldisk_averagelatency_disk1
L cli OK: OK: \LogicalDisk(*)\Avg. Disk sec/Transfer = 0
L cli Performance data: '\LogicalDisk(*)\Avg. Disk sec/Transfer_value'=0;0;0
Running the following Powershell whilst running CrystalDiskMark
Just tested the 0.5.0.34 nightly build. Nearly there :)
The nagios message now contains a double. However, the performance data is still issuing rounded ints as can be seen at the end of the last line:
alias_checklogicaldisk_averagelatency_disk1 0.01 0.02
L cli OK: \LogicalDisk(C:)\Avg. Disk sec/Transfer = 0.000120369
L cli Performance data: '\LogicalDisk(C:)\Avg. Disk sec/Transfer_value'=0;0;0
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/272#issuecomment-204337665
Just tried to check some Windows counters that return float values. To ensure check_pdh could handle the value I set the flag type=double. Here an extract of the check I setup.
Running this manually ( nscp test )
Running the following Powershell whilst running CrystalDiskMark
which returns
So the original check_pdh check should have returned some decimals in the performance data and it didn't.
By the way I am using NSClient++ 0.4.4.15 but I have also tried this on version 0.5.0.32.
The text was updated successfully, but these errors were encountered: