check_site with username/password

Tom Throckmorton throck at duke.edu
Fri Nov 19 20:06:12 CET 2004


Joost,

You could also put the password in your resource.cfg, then refer to it 
using a macro, something like...

in resource.cfg:

  $USER6$=password!

in checkcommands.cfg:

  check_http_auth!www.site.nll!/page/to/check!username:$USER6$

In addition to negating the need to escape your password, this method 
also prevents the password from being visible in the configuration cgi, 
which depending on your site policy, may or may not be important.

-tt

On 11/19/2004 04:00 AM, joost at informatiefabriek.nl wrote:

>
> check_http_auth!www.site.nll!/page/to/check!username:password\!
>
> gives
>
> CRITICAL 11-19-2004 09:54:22 0d 0h 3m 7s 4/4 (No output!)  
>
> grtz.
>
> joost
>
>
>
> *Andreas Ericsson <ae at op5.se>*
> Sent by: nagios-users-admin at lists.sourceforge.net
>
> 19-11-2004 09:43
>
> 	
> To
> 	nagios-users at lists.sourceforge.net
> cc
> 	
> Subject
> 	Re: [Nagios-users] check_site with username/password
>
>
>
> 	
>
>
>
>
>
> joost at informatiefabriek.nl wrote:
> > Hi,
> >
> > I tried to use the following check_command.
> >
> > check_command
> > check_http_auth!www.site.nll!/page/to/check!username:password!
> >
> > This command checks of a page with username/password is alive. The 
> problem
> > is that my password ends with a !-character (password = " 
> password!"). In
> > he syntax of check_commands this is a seperator of a variable. Is 
> there a
> > way to use the !-character. Because nagios gives this result:
> >
> > HTTP WARNING: HTTP/1.1 401 Unauthorized
> >
>
> Escape the last ! as such
> username:password\!
>
> > Thx in advance..
> >
> > grtz.
> > Joost
> >
> > http://www.informatiefabriek.nl
>
> -- 
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Lead Developer
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> 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
>

-- 
Tom Throckmorton
OIT - CASI
Duke University



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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