Nagios SQL service monitor, illegal characters

When setting up monitoring of a SQL instance with $ in the servicename, Nagios is unable to recognize the service. The fix for this i found at http://www.linuxquestions.org/questions/linux-software-2/nagios-illegal-characters-in-config-file-765005/

The bottom line from that site is:

-i removed the illegal character ($-sign) in the service_description line
-i change the check_nt line to: check_command check_nt!SERVICESTATE!-d SHOWALL -l MSSQL”$$”MCAFEEDLPREPORTS

As you can see, adding “$$” to the name does the trick. “$$” = $ in the config file.

Good to know.