Nagios Core not picking up correct Windows Service Name

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
andrewp3283
Posts: 1
Joined: Fri Jul 03, 2015 5:54 am

Nagios Core not picking up correct Windows Service Name

Post by andrewp3283 »

We have a windows service called "AOS$01" I have put this into the config file as below:

check_nt!SERVICESTATE! -d SHOWALL -l AOS$01

when I run Nagios it then says the service does not exist and is only showing "AOS$" as the service it is not picking up the "01"

How do i get it to pick up the numbers as well

regards
andy
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Core not picking up correct Windows Service Name

Post by tmcdonald »

You need to escape the dollar sign as it is used to denote Nagios macros like $HOSTADDRESS$ and the likes. Instead of just AOS$01 try AOS$$01 and see if that helps.
Former Nagios employee
Locked