semicolon in check command

jeff vier jeff.vier at tradingtechnologies.com
Mon Oct 27 23:37:59 CET 2003


Why not just write a wrapper that does the multiple commands?

On Mon, 2003-10-27 at 14:55, Paulo Fraser wrote:
> I am trying to use a semicolon as part of a URL in a check command and it is
> not being accepted by Nagios.  One the command line, the following command
> works great:
> 
> # /usr/lib/nagios/plugins/check_http -H web -u
> "/acp-servlet/LinkServlet;jsessionid=bogus.acp2_tomcat1?type=DOWNLOAD&packag
> eID=300-4" -s Math
> 
> I get the following:
> HTTP ok: HTTP/1.1 200 OK -   0.138 second response time |time=  0.138
> 
> However, when I try to create a service using this plugin it fails because
> of the semicolon.  I have defined a command using the check_http plugin in
> checkcommands.cfg:
> 
> # 'check_content' command definition
> define command{
>         command_name    check_content
>         command_line    $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$ -s
> $ARG2$
>         }
> 
> In my services.cfg I then have the following definition:
> 
> check_command
> check_content!"/acp-servlet/LeapLinkServlet;jsessionid=bogus.acp2_tomcat1?ty
> pe=DOWNLOAD&packageID=300-4"!Math
> 
> However, Nagios seems to be truncating everything at the semicolon.  When I
> use View Config in the web interface and view the Services it shows:
> 
> 	check_content!"/acp-servlet/LeapLinkServlet
> 
> I tried escaping the semicolon with a backslash ( \; ) but that didn't work.
> Has anyone ever had to monitor a URL with a semicolon, is there someway to
> do this?
> 
> Any help or suggestions would be appreciated?
> 
> PS - Now that I'm a member of this list is there a way to see the email
> addresses in the mailing list archives?  I found a post with a similar
> problem to mine by someone named Jamin back in January of 2003, but I can't
> email him, since the email address is hidden.
> 
> --
> Paulo Fraser
> Senior Systems Administrator
> Leapfrog Enterprises, Inc.
> (510) 420-5374
>  
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community?  Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> 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



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
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