[Nagiosplug-checkins] nagiosplug/plugins check_http.c,1.65,1.66
Matthew Kent
mattkent at users.sourceforge.net
Wed Nov 24 12:19:15 CET 2004
- Previous message: [Nagiosplug-checkins] nagiosplug/plugins check_by_ssh.c,1.21,1.22 check_dig.c,1.26,1.27 check_disk.c,1.45,1.46 check_dns.c,1.28,1.29 check_dummy.c,1.7,1.8 check_fping.c,1.13,1.14 check_game.c,1.10,1.11 check_hpjd.c,1.19,1.20 check_http.c,1.64,1.65 check_ldap.c,1.16,1.17 check_load.c,1.15,1.16 check_mrtg.c,1.13,1.14 check_mrtgtraf.c,1.13,1.14 check_mysql.c,1.14,1.15 check_nwstat.c,1.14,1.15 check_overcr.c,1.8,1.9 check_pgsql.c,1.17,1.18 check_ping.c,1.28,1.29 check_procs.c,1.28,1.29 check_radius.c,1.10,1.11 check_real.c,1.13,1.14 check_smtp.c,1.28,1.29 check_snmp.c,1.38,1.39 check_ssh.c,1.13,1.14 check_tcp.c,1.42,1.43 check_time.c,1.13,1.14 check_udp.c,1.12,1.13 check_ups.c,1.14,1.15 check_users.c,1.10,1.11 negate.c,1.14,1.15 urlize.c,1.10,1.11
- Next message: [Nagiosplug-checkins] nagiosplug/plugins check_nwstat.c,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31988
Modified Files:
check_http.c
Log Message:
Added support for sending port in host header (913633)
Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- check_http.c 24 Nov 2004 00:46:38 -0000 1.65
+++ check_http.c 24 Nov 2004 04:25:52 -0000 1.66
@@ -330,6 +330,8 @@
/* Note: H, I, and u must be malloc'd or will fail on redirects */
case 'H': /* Host Name (virtual host) */
host_name = strdup (optarg);
+ if (strstr (optarg, ":"))
+ sscanf (optarg, "%*[^:]:%d", &server_port);
break;
case 'I': /* Server IP-address */
server_address = strdup (optarg);
@@ -1381,6 +1383,7 @@
printf (_("\
-H, --hostname=ADDRESS\n\
Host name argument for servers using host headers (virtual host)\n\
+ Append a port to include it in the header (eg: example.com:5000)\n\
-I, --IP-address=ADDRESS\n\
IP address or name (use numeric address if possible to bypass DNS lookup).\n\
-p, --port=INTEGER\n\
- Previous message: [Nagiosplug-checkins] nagiosplug/plugins check_by_ssh.c,1.21,1.22 check_dig.c,1.26,1.27 check_disk.c,1.45,1.46 check_dns.c,1.28,1.29 check_dummy.c,1.7,1.8 check_fping.c,1.13,1.14 check_game.c,1.10,1.11 check_hpjd.c,1.19,1.20 check_http.c,1.64,1.65 check_ldap.c,1.16,1.17 check_load.c,1.15,1.16 check_mrtg.c,1.13,1.14 check_mrtgtraf.c,1.13,1.14 check_mysql.c,1.14,1.15 check_nwstat.c,1.14,1.15 check_overcr.c,1.8,1.9 check_pgsql.c,1.17,1.18 check_ping.c,1.28,1.29 check_procs.c,1.28,1.29 check_radius.c,1.10,1.11 check_real.c,1.13,1.14 check_smtp.c,1.28,1.29 check_snmp.c,1.38,1.39 check_ssh.c,1.13,1.14 check_tcp.c,1.42,1.43 check_time.c,1.13,1.14 check_udp.c,1.12,1.13 check_ups.c,1.14,1.15 check_users.c,1.10,1.11 negate.c,1.14,1.15 urlize.c,1.10,1.11
- Next message: [Nagiosplug-checkins] nagiosplug/plugins check_nwstat.c,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list