Problem with Check NRPE from XI Core
Posted: Tue Dec 02, 2014 12:15 pm
I want to get some performance counters in Windows so I did a test check in CLI
[root@centosnagiois static]# /usr/local/nagios/libexec/check_nrpe -H AFDBLYNCDB01.afdb.local -p 5666 -c CheckCounter -a "\\MSSQL\$LYNCARC:Resource Pool Stats(*)\\CPU usage %" ShowAll MaxWarn=10 MaxCrit=20
OK: \MSSQL$LYNCARC:Resource Pool Stats(*)\CPU usage %: 0|'\MSSQL$LYNCARC:Resource Pool Stats(*)\CPU usage %'=0;10;20
But when I create the same in Nagios XI Core I get below error. Please advise
COMMAND: /usr/local/nagios/libexec/check_nrpe -H AFDBLYNCDB01.afdb.local -p 5666 -c CheckCounter -a "\\MSSQL\\\$LYNCARC:Resource Pool Stats\(\*\)\\CPU usage %" ShowAll MaxWarn=10 MaxCrit=20
OUTPUT: CRIT: Counter not found: \MSSQL\$LYNCARC:Resource Pool Stats\(\*\)\CPU usage %: -1073738824: The specified object was not found on the computer.
[root@centosnagiois static]# /usr/local/nagios/libexec/check_nrpe -H AFDBLYNCDB01.afdb.local -p 5666 -c CheckCounter -a "\\MSSQL\$LYNCARC:Resource Pool Stats(*)\\CPU usage %" ShowAll MaxWarn=10 MaxCrit=20
OK: \MSSQL$LYNCARC:Resource Pool Stats(*)\CPU usage %: 0|'\MSSQL$LYNCARC:Resource Pool Stats(*)\CPU usage %'=0;10;20
But when I create the same in Nagios XI Core I get below error. Please advise
COMMAND: /usr/local/nagios/libexec/check_nrpe -H AFDBLYNCDB01.afdb.local -p 5666 -c CheckCounter -a "\\MSSQL\\\$LYNCARC:Resource Pool Stats\(\*\)\\CPU usage %" ShowAll MaxWarn=10 MaxCrit=20
OUTPUT: CRIT: Counter not found: \MSSQL\$LYNCARC:Resource Pool Stats\(\*\)\CPU usage %: -1073738824: The specified object was not found on the computer.