Getting Data In

Error on Configure application receivers for monitoring » Nagios "found unknown escape character"

fongpen
Path Finder

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"

 

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try escaping the backslashes

"LC_ALL=\"en_US.utf8\" C:\\Program Files\\NSClient++\\check_nrpe -H pool.ntp.typhon.net"

View solution in original post

fongpen
Path Finder

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

0 Karma

fongpen
Path Finder

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"

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try escaping the backslashes

"LC_ALL=\"en_US.utf8\" C:\\Program Files\\NSClient++\\check_nrpe -H pool.ntp.typhon.net"
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...