[Nagios-users] how to escape special characters checking a windows service

2008-05-05 Thread Jan Kuhn
This works when running from the command line:

/usr/lib/nagios/plugins/check_nt -H xxx.xxx.xxx.xxx -p 1248 -v 
SERVICESTATE -l 'mssql$waspdb'
All services are running

But this doesn't in the servers.cfg  It adds the second $. 

check_command   /usr/lib/nagios/plugins/check_nt -H 
xxx.xxx.xxx.xxx  -p 1248 -v SERVICESTATE -l 'mssql$waspdb'

It adds the second $.

mssql$waspdb$: Unknown

I've got other services working correctly with embedded spaces.  Special 
characters are causing trouble.  I've tried escaping with \, all sort of 
quote combinations.
Any ideas?

thanks, jan



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] how to escape special characters checking a windows service

2008-05-05 Thread [EMAIL PROTECTED]
Try adding mssql$waspdb in your resource.cfg as a user variable then
substitute it in your server.cfg.

regards,
secrookie

2008/5/6 Jan Kuhn [EMAIL PROTECTED]:
 This works when running from the command line:

  /usr/lib/nagios/plugins/check_nt -H xxx.xxx.xxx.xxx -p 1248 -v
  SERVICESTATE -l 'mssql$waspdb'
  All services are running

  But this doesn't in the servers.cfg  It adds the second $.

  check_command   /usr/lib/nagios/plugins/check_nt -H
  xxx.xxx.xxx.xxx  -p 1248 -v SERVICESTATE -l 'mssql$waspdb'

  It adds the second $.

  mssql$waspdb$: Unknown

  I've got other services working correctly with embedded spaces.  Special
  characters are causing trouble.  I've tried escaping with \, all sort of
  quote combinations.
  Any ideas?

  thanks, jan



  -
  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
  Don't miss this year's exciting event. There's still time to save $100.
  Use priority code J8TL2D2.
  
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
  ___
  Nagios-users mailing list
  Nagios-users@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


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] how to escape special characters checking a windows service

2008-05-05 Thread Anthony Montibello
If my memory is correct $$ for each $ works in the Service Config.

Depending on your Windows plugin and version of check_nt this may be
documented in the help or other files

Tony (Author of NC_NEt)

On Mon, May 5, 2008 at 4:00 PM, Jan Kuhn [EMAIL PROTECTED] wrote:

 This works when running from the command line:

 /usr/lib/nagios/plugins/check_nt -H xxx.xxx.xxx.xxx -p 1248 -v
 SERVICESTATE -l 'mssql$waspdb'
 All services are running

 But this doesn't in the servers.cfg  It adds the second $.

 check_command   /usr/lib/nagios/plugins/check_nt -H
 xxx.xxx.xxx.xxx  -p 1248 -v SERVICESTATE -l 'mssql$waspdb'

 It adds the second $.

 mssql$waspdb$: Unknown

 I've got other services working correctly with embedded spaces.  Special
 characters are causing trouble.  I've tried escaping with \, all sort of
 quote combinations.
 Any ideas?

 thanks, jan



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Nagios-users mailing list
 Nagios-users@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

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Nagios-users mailing list
Nagios-users@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