special characters in host names
Posted: Wed Jul 04, 2012 11:23 am
i have a plugin to check query restulst from MS SQL Server. This plugin works perfectly when the name of the server does not have any special characters. However in the sample below the database or server name requires a \ character and i can't figure our how to add that character.
check_xi_mssql_query!-H 172.27.167.27\sqlexpress --port 1433 --username nagios_dbuser --password "m9BLdHPinq" --database EAF --query 'select * from nagios_tampa_pull' --result '1' --critical 100
The above is the command that i am trying to run (via a wizard). it keeps telling me there is an invalid character in the host name (172.27.167.27\sqlexpress) but i need the back slash
check_xi_mssql_query!-H 172.27.167.27\sqlexpress --port 1433 --username nagios_dbuser --password "m9BLdHPinq" --database EAF --query 'select * from nagios_tampa_pull' --result '1' --critical 100
The above is the command that i am trying to run (via a wizard). it keeps telling me there is an invalid character in the host name (172.27.167.27\sqlexpress) but i need the back slash