argument pairs?

Marc Powell marc at ena.com
Tue Feb 10 21:13:45 CET 2004


On Tuesday, February 10, 2004 1:58 PM, Matt Pounsett shared with us:

> On Mon, 9 Feb 2004, stan wrote:
> 
> > 
> > I'm trying to use the --authorization flag to check_http, and I keep
> > getting errors about a null argument. This flag requires a username
> > _and_ a password. I'm trying to put these in checkcommands.cfg, but
> > I can't figure out the correct syntax. Is this the wrong place? Do I
> > need to put them in services.cfg?
> 
> Copied from the check_http help output:
> 
>  -a, --authorization=AUTH_PAIR
>    Username:password on sites with basic authentication
> 
> So you'd use "--authorization=user:pass"

Working with him offline and testing myself, this doesn't appear to be
working as expected --

[nagios at betelgeuse nagios]$ ./libexec/check_http -a testuser:test -s
\/HTML [host removed]
HTTP ok: HTTP/1.1 200 OK - 1 second response time 

[nagios at betelgeuse nagios]$ ./libexec/check_http
--authorization=testuser:test -s \/HTML [host removed] 
./libexec/check_http: unrecognized option `--authorization=mpowell:test'
check_http: unknown argument - (null)
Usage:
 check_http (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]
            [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
            [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
            [-s string] [-r <regex> | -R <case-insensitive regex>]
            [-P string]
 check_http (-h | --help) for detailed help
 check_http (-V | --version) for version information


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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