diff --git a/debian/changelog b/debian/changelog index 1871c81..cf94962 100644 --- a/debian/changelog +++ b/debian/changelog @@ -39,6 +39,8 @@ nagios-plugins (1.4.12-1) UNRELEASED; urgency=low * add 37_check_radius_nas-ip-address.dpatch to add support for nas-ip to check_radius, thanks Josip Rodin for providing it (Closes: #482947) + * provide new checks for check_http which makes use of "-H '$HOSTNAME'" + (Closes: #423461) [ Alexander Wirt ] * Call smbclient with -N (supress password prompt) if no password is diff --git a/debian/pluginconfig/http.cfg b/debian/pluginconfig/http.cfg index eac88f8..caa620f 100644 --- a/debian/pluginconfig/http.cfg +++ b/debian/pluginconfig/http.cfg @@ -4,6 +4,11 @@ define command{ command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' } +# 'check_http_hostname' command definition +define command{ + command_name check_httpname + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTNAME' -I '$HOSTADDRESS$' + } # 'check_http2' command definition define command{ @@ -21,7 +26,13 @@ define command{ define command{ command_name check_https command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -} + } + +# 'check_https_hostname' command definition +define command{ + command_name check_https_hostname + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' + } # 'check_https_auth' command definition define command{ @@ -29,6 +40,12 @@ define command{ command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' } +# 'check_https_auth_hostname' command definition +define command{ + command_name check_https_auth_hostname + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' + } + # 'check_cups' command definition define command{ command_name check_cups @@ -45,6 +62,11 @@ define command{ command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -4 } +# 'check_http_hostname_4' command definition +define command{ + command_name check_httpname_4 + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTNAME' -I '$HOSTADDRESS$' -4 + } # 'check_http2_4' command definition define command{ @@ -62,7 +84,13 @@ define command{ define command{ command_name check_https_4 command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -4 -} + } + +# 'check_https_hostname_4' command definition +define command{ + command_name check_https_hostname_4 + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' -4 + } # 'check_https_auth_4' command definition define command{ @@ -70,6 +98,12 @@ define command{ command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' -4 } +# 'check_https_auth_hostname_4' command definition +define command{ + command_name check_https_auth_hostname_4 + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' -4 + } + # 'check_cups_4' command definition define command{ command_name check_cups_4