I have a service called MSSQL$SBSMONITORING that I need to check. When I pass this service name through check_nt_net and onto NC_NET the service name is being detected as MSSQL (ie. everything before the $). I also have SQLAGENT$SBSMONITORING which has exactly the same problem.
I have tried enclosing the service name in double quotes but still nothing.
There is probably something straightforward about passing the $ through (maybe prefixing it with something). Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This issue is actually related to how nagios processes commands,
the way I usually get through this is with $$ for each $
I believe this is due to Nagios useing the $ in its macros.
I actually just posted a message in the nagios User list last week with this same issue on a different commamd.
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This didn't work for me, however I dug out the message you posted on the Nagios list (which has too many messages for me to read so I tend to skip it :-(). One of the suggestions on there was to use $"$"$ which worked for me, sort of. I had to amend it so that it read MSSQL"$"SBSMONITORING which did work.
Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a service called MSSQL$SBSMONITORING that I need to check. When I pass this service name through check_nt_net and onto NC_NET the service name is being detected as MSSQL (ie. everything before the $). I also have SQLAGENT$SBSMONITORING which has exactly the same problem.
I have tried enclosing the service name in double quotes but still nothing.
There is probably something straightforward about passing the $ through (maybe prefixing it with something). Any suggestions?
My apologies for the dreadful spelling in the last post!
Thanks for posting,
This issue is actually related to how nagios processes commands,
the way I usually get through this is with $$ for each $
I believe this is due to Nagios useing the $ in its macros.
I actually just posted a message in the nagios User list last week with this same issue on a different commamd.
Tony
Tony,
Thanks for your reply.
This didn't work for me, however I dug out the message you posted on the Nagios list (which has too many messages for me to read so I tend to skip it :-(). One of the suggestions on there was to use $"$"$ which worked for me, sort of. I had to amend it so that it read MSSQL"$"SBSMONITORING which did work.
Thanks again.