[ Return To FAQ Index | Search The FAQs ]
|
|
Title: | Cant pass dollar ($) symbol as string to plugin (i.e. check_nt) |
FAQ ID: | F0413 |
Submitted By: | Dietmar Lang |
Last Updated: | 08/24/2009 |
|
Description: | In your service definition file, you may need to pass a $ symbol as an argument to a service check.
For example, MS SQL Server instances are named "MSSQL$INSTANCE1". Your service definition would look like this:
check_command check_command check_nt!SERVICESTATE!-d SHOWALL -l MSSQL$INSTANCE
This will not work.
|
|
Solution: | For Nagios 2, add a second dollar ($) symbol, like this:
check_command check_command check_nt!SERVICESTATE!-d SHOWALL -l MSSQL$$INSTANCE
For Nagios 3, add two backslashes and a second dollar (\\$) symbol, like this:
check_command check_command check_nt!SERVICESTATE!-d SHOWALL -l MSSQL\\$$INSTANCE
|
|
Keywords: | dollar check_nt $ mssql windows nsclient |
|