Nagios — Splunk Observability Cloud documentation
Please assist as I not able to start OTEL service due to the error "found unknown escape character".
Below is the script and how to escape the character in the argument?
"LC_ALL=\"en_US.utf8\" C:\Program Files\NSClient++\check_nrpe -H pool.ntp.typhon.net"
Try escaping the backslashes
"LC_ALL=\"en_US.utf8\" C:\\Program Files\\NSClient++\\check_nrpe -H pool.ntp.typhon.net"
Thanks. It is working and I managed to bring up OTEL.
Unfortunately it return 3 = unknow state.
receivers:
smartagent/nagios:
type: nagios
command: "LC_ALL=\"en_US.utf8\" C:\\Program Files\\NSClient++\\check_nrpe.exe -H 127.0.0.1 -c check_cpu"
cmd : C:\Program Files\NSClient++>check_nrpe.exe -H 127.0.0.1 -c check_cpu
OK: CPU load is ok.|'total 5m'=7%;80;90 'total 1m'=8%;80;90 'total 5s'=5%;80;90
Hi,
I managed to found the issue for unknow state(3), need to add "" for "Program Files":-
receivers:
smartagent/nagios:
type: nagios
command: C:\\"Program Files"\\NSClient++\\check_nrpe.exe -H 127.0.0.1 -c check_cpu"
Try escaping the backslashes
"LC_ALL=\"en_US.utf8\" C:\\Program Files\\NSClient++\\check_nrpe -H pool.ntp.typhon.net"