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
Service Monitoring Help
-
Eddie.Brown
- Posts: 7
- Joined: Mon Jul 18, 2016 2:03 pm
Re: Service Monitoring Help
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.
So my service goes from AOS60$01 > AOS60\$$01.
Re: Service Monitoring Help
$ 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?
Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/