monitor windows service with "$"

Marc Powell marc at ena.com
Wed Oct 7 16:39:55 CEST 2009


On Oct 7, 2009, at 9:03 AM, DE/HAM Hoppe, Leif wrote:

> nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 - 
> p 12489 -v SERVICESTATE -l "service$DB"
> service: Not found
>
> It looks like it cuts off everything behind the $.
> Anybody have an idea?

I expect that the shell is interpreting $DB as a shell variable. Try  
using 'service$DB' or "service\$DB".

$ echo "service$DB"
service

$ echo 'service$DB'
service$DB

$ echo "service\$DB"
service$DB

--
Marc


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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