(no subject)
Petr Simek
psimek at jcu.cz
Mon Jun 14 15:36:07 CEST 2004
On Mon, 14 Jun 2004, Michael Huettig wrote:
> > # 'check_squid' command definition
> > define command{
> > command_name check_squid
> > command_line $USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$ -u
> > $ARG2$ }
> >
>
> ok, this works fine but how do the proxy-check with authentication?
>
> ./check_http -H myproxy.com -p 8080 -u http://someurl.com
> HTTP ok: HTTP/1.0 407 Proxy authentication required - 0.005 second response
> time |time= 0.005
>
> Regards
>
> Michael
You can write own check_http_with_pass script in bash or C and use utility
wget who have parameters :
--proxy-user=user
--proxy-passwd=password
The script will be only parameters formatter for wget, wget with -O -
option write content of required url to stdout, where You can grep
for some string and if is there, script return 0 and write some info
message to stdout like as check_http .
*------------------------------------------------------------------------*
| Petr Simek APS JU |
| psimek at jcu.cz |
*------------------------------------------------------------------------*
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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