Page 1 of 1

Service Monitoring Help

Posted: Wed Jul 20, 2016 8:04 am
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

Re: Service Monitoring Help

Posted: Wed Jul 20, 2016 11:47 am
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.

Re: Service Monitoring Help

Posted: Wed Jul 20, 2016 1:27 pm
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?