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!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...