5

I need to add Nagios checks for Windows SQL services that have a dollar sign in the name (e.g. MSSQL$TOLLCONNECT) but am so far unable to work out how to pass that name along without it being Nagios treating it as a variable name. What is the simplest way to do this, other than modifying the service name itself, which would break other things?

I'm running NSClient++ on the target machines and have considered creating checks with hard-coded names but that idea leaves a lot to be desired, as it creates a maintenance nightmare.

John Gardeniers
  • 27,262
  • 12
  • 53
  • 108

1 Answers1

9

Had I kept searching just that little longer I wouldn't have had to ask. This web page has the answer. MSSQL"$$"TOLLCONNECT works a treat. Not the most intuitive syntax.

John Gardeniers
  • 27,262
  • 12
  • 53
  • 108