Service Monitoring Help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Eddie.Brown
Posts: 7
Joined: Mon Jul 18, 2016 2:03 pm

Service Monitoring Help

Post by Eddie.Brown »

Hello Folks,

I recently inherited a Nagios Core environment and am trying to get it up to par with our most recent critical servers.
I am attempting to monitor a service AOS60$01 which is an Microsoft Dynamics AOS service. However after adding it to the services.cfg file I receive this error on the GUI: Failed to open service: AOS60/bin/sh1$ with an unknown status
Almost as if the $01 is some kind of shortcut in Linux command line..... I am no Linux expert so any input would be appreciated.

Thanks,
Eddie
Eddie.Brown
Posts: 7
Joined: Mon Jul 18, 2016 2:03 pm

Re: Service Monitoring Help

Post by Eddie.Brown »

I got this sorted. I guess a $ is a variable, in order to use a service name that contains a $ you must add a \ and an additional $
So my service goes from AOS60$01 > AOS60\$$01.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Service Monitoring Help

Post by mcapra »

$ is a reserved character in Nagios Core used to define macros. It is also a reserved character in bash and must be escaped there as well.

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked