OK - I backed up to the last set of tests.
On the Windows client, in PowerShell window:
- PS C:\Users\admin> get-counter "\Network Interface(intel[R] PRO_1000 MT Network Connection)\Bytes Sent/sec"
Timestamp CounterSamples
--------- --------------
10/29/2013 2:50:39 PM \\wvusstlopsbo1\network interface(intel[r] pro_1000 mt network connection)\bytes sent/sec :
From CLI on the Nagios server:
- $ ./check_nt -H [IP] -s [password] -p 12489 -v COUNTER -l "\Network Interface(Intel[R] PRO_1000 MT Network Connection)\\Bytes Sent/sec"
469096
So I try the CLI command syntax in Core Config when defining the service, and "Test Check Command" gives:
- COMMAND: /usr/local/nagios/libexec/check_nt -H [IP] -s [password] -p 12489 -v COUNTER -l "\\Network Interface\(Intel\[R\] PRO_1000 MT Network Connection\)\\\\Bytes Sent/sec"
OUTPUT: 0
Knowing that the Test Check Command uses different escaping than the real check will use, I configure the Service, go to Home, Details, Service Details, and schedule immeidate test. It comes back green dot with a white check mark, and value zero
How do I translate CLI to actual Nagios configuration GUI settings?