NSClient++ Help (#1) - Check instance of performance counters (#957) - Message List
I'm just trying to monitor single instances of a performace counter which offers me values for different disks. The problems is, that it works for the instance '_total', but not for single disk, like C:.
This one works fine: root@server:/usr/lib/nagios/plugins# ./check_nrpe -H serverwithmanydisks -c CheckCounter -a "Counter:AvgDiskReadQueueLength=\\234(_total)\\1402" index ShowAll MaxCrit=2 OK: AvgDiskReadQueueLength?: 0|'AvgDiskReadQueueLength?'=0;0;2
This one doesn't work:
root@server:/usr/lib/nagios/plugins# ./check_nrpe -H serverwithmanydisks -c CheckCounter -a "Counter:AvgDiskReadQueueLength=\\234(0 C:)
1402" index ShowAll MaxCrit=2
CRIT: Counter not found: \Physikalischer Datentr�ger( C:)\Durchschnittl. Warteschlangenl�nge der Datentr�ger-Lesevorg�nge: Die angegebene Instanz ist nicht vorhanden. (800007D1)
On an english system it looks like this: root@server:/usr/lib/nagios/plugins# ./check_nrpe -H otherserver -c CheckCounter -a "Counter:AvgDiskReadQueueLength=\\234(C:)\\1402" index ShowAll MaxCrit=2 CRIT: Counter not found: \PhysicalDisk?(C:)\Avg. Disk Read Queue Length: The specified instance is not present. (800007D1)
I tried to mask the different values of the disks (I have '0 C:', '1 X:', 2 S:' and so on) in several ways (\,',",...) - but no change. I'm using 0.3.9 64-bit.
Has anyone else experienced this behaviour and has a solution for this?
Thanks for any hint!
-
Message #2543
Are the indexes 234 and 1402 correct?
Michael Medin
mickem04/18/12 07:20:31 (14 months ago)-
Message #2544
Double checked. :-) Yes.
MaxiPalle04/18/12 07:46:36 (14 months ago)-
Message #2611
Humm..
I noticed on my Windows 7 box the same counter instance is actually called "0 C:" which index parsing failed on. I have fixed this issue in the next nightly build.
Which means on my machine with the new version the following worked:
CheckCounter "Counter:AvgDiskReadQueueLength=\\234(0 C:)\\1402" index ShowAll MaxCrit=2 d rvice\NSClient++.cpp:947 Result checkcounter: OK l ce\simple_client.hpp:80 OK:OK: AvgDiskReadQueueLength: 0.000699261 l ce\simple_client.hpp:82 Performance data: 'AvgDiskReadQueueLength'=0.00069926074154403966;0;2
Michael Medin
mickem05/19/12 11:49:54 (13 months ago) -
Message #2589
Hello,
I Have an similar bug with Centreon, it worked well. but now it gives that comment :
CRIT: Counter not found: \Network Interface(Broadcom NetLink? [TM] Gigabit Ethernet - Teefer2 Miniport)\Bytes Total/sec: The specified instance is not present. (800007D1)
CRIT: Counter not found: \Network Interface(MS TCP Loopback interface)\Bytes Total/sec: The specified instance is not present. (800007D1)
Thank you for your answer.
Mehdi05/14/12 15:04:21 (13 months ago)
-
-








