Check_pdh command with Centreon return code 3


#1

Hello all, I’ve created the following command in Centreon:

$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’

This command does work via the command line on the Centreon server, however in the Centreon GUI it returns a result of “UNKNOWN: Failed to get value” When I enable debug logging for the Centreon engine I get the following output in the log:

[1487250888] [30979] Checking service ‘Nsclient-Disk-Queue’ on host ‘**********’… [1487250888] [30979] Raw Command Input: $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’ [1487250888] [30979] Processing: ‘$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’’ [1487250888] [30979] Processing part: ’ -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’’ [1487250888] [30979] Not currently in macro. Running output (155): ‘/usr/lib/nagios/plugins/check_nrpe -H 192.168.57.150 -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’’ [1487250888] [30979] Done. Final output: ‘/usr/lib/nagios/plugins/check_nrpe -H ******** -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’’ [1487250888] [30979] raw::run: cmd=’/usr/lib/nagios/plugins/check_nrpe -H ********** -c check_pdh -a ‘counter=\LogicalDisk(C:)\Current Disk Queue Length’ ‘warn=value> 5’ ‘crit=value > 10’’, timeout=60 [1487250889] [30979] Handling check result for service ‘Nsclient-Disk-Queue’ on host ‘host-name’… [1487250889] [30979] ** Handling check result for service ‘Nsclient-Disk-Queue’ on host ‘host-name’… [1487250889] [30979] HOST: **************, SERVICE: Nsclient-Disk-Queue, CHECK TYPE: Active, OPTIONS: 0, SCHEDULED: Yes, RESCHEDULE: Yes, EXITED OK: Yes, return CODE: 3, OUTPUT: Failed to get value

The version of check_nrpe I’m using is 3.0.1

Can anyone help, or least tell me whether this is a Centreon issue or an NSClient++ issue?