Linux and Nagios‎ > ‎

Nagios Monitoring a service with a dollar sign or spaces

posted 12 Jun 2011, 04:24 by Tristan Self
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"
Comments