Using double slashes ?
Danny Wigmans
danny.wigmans at solcorp.com
Tue Nov 11 22:16:49 CET 2003
Hi,
I am trying to get the check_http plug-in to work, so I can check a proxy
server.
The command I try to use is:
./check_http -H $HOSTADDRESS$ -u http://www.yahoo.com -e HTTP/1.1 200
Though the command works fine from the bash shell on RH 9 under the nagios
user account, it doesn't work through the scripts...
When executing from the shell I get a HTTP Ok response, from the scripts it
returns a HTTP CRITICAL.
I am using nagios-1.1 and nagios-plugins-1.3.1 (check_http (1.24.2.4) from
SourceForge...
My hunch is that the // in the URL are not taken literal but are being
interpreted by nagios. Anyone any ideas, or a possible workaround? I have
already tried using \ as escape char, using %47%47, creating a macro in
resources.cfg, double quoting the URL, and passing it from services to a
$ARG1$ macro in my check_command, and combinations of these. Nothing worked
so far..
Ideas anyone???
Thanks,
Danny
My files look as follows:
checkcommands.cfg:
define command{
command_name check_http_proxy
command_line $USER1$/check_http -I $HOSTADDRESS$ -u
http://www.yahoo.com -e HTTP/1.1 200
}
services.cfg:
define service {
name generic-service-template
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
check_period 24x7
notification_interval 240
notification_period 24x7
notification_options w,c
register 0
}
define service {
name http-proxy-template
service_description HTTP Proxy
check_command check_http_proxy
use generic-service-template
register 0
}
define service {
hostgroup_name proxy-srv
contact_groups admin-group
use http-proxy-template
}
##############################################################
This e-mail message has been scanned for Viruses and Contents
##############################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031111/9117522d/attachment.html>
More information about the Users
mailing list