Menu

Schecking Services with $'s in theri names

Help
2008-07-07
2013-04-25
  • Paul Broadwith

    Paul Broadwith - 2008-07-07

    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?

     
    • Paul Broadwith

      Paul Broadwith - 2008-07-07

      My apologies for the dreadful spelling in the last post!

       
    • tony

      tony - 2008-07-07

      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

       
    • Paul Broadwith

      Paul Broadwith - 2008-07-08

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.