Nagios Monitoring a service with a dollar sign or spaces

Linux Nagios and NagiosXI
define service{

use                     generic-service

hostgroup               dpm-servers

service_description     DPM Reporting Services

check_command           check_nt!SERVICESTATE!-d SHOWALL -l ReportServer"$$"DPMDB2010

}

define service{

use                     generic-service

host_name               FIN01

service_description     Mondas

check_command           check_nt!SERVICESTATE!-d SHOWALL -l "Mondas RADIO Server"

}

So for each of the services above, one with spaces in it the other containing a dollar sign the following is needed:

ReportServer$DPMDB2010 -> ReportServer”$$”DPMDB2010

Mondas RADIO Server -> “Mondas RADIO Server”

Leave a Reply

Your email address will not be published.