check_nt and MSSQL$SQLEXPRESS

Steve Shipway s.shipway at auckland.ac.nz
Thu Nov 30 23:32:46 CET 2006


> define command{
>         command_name    check_nt_services
>         command_line    $USER1$/check_nt -H $HOSTADDRESS$ -v
> SERVICESTATE -l $ARG1$
>         }

Put single quotes around the argument, thus:

  command_line    $USER1$/check_nt -H $HOSTADDRESS$ 
      -v SERVICESTATE -l '$ARG1$'

Nagios will still expand $ARG1$, but the shell will not subsequently try
to expand the $ in the argument.

Steve

--
Steve Shipway
ITSS, University of Auckland 
(09) 3737 599 x 86487
s.shipway at auckland.ac.nz

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list