From 0dd228559c2c66fdb5b0631049f145447798e365 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 24 Dec 2011 16:26:00 +0100 Subject: [PATCH] dsa-check-log-age-loghost: allow minus (-) in hostnames --- dsa-nagios-checks/checks/dsa-check-log-age-loghost | 2 +- dsa-nagios-checks/debian/changelog | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dsa-nagios-checks/checks/dsa-check-log-age-loghost b/dsa-nagios-checks/checks/dsa-check-log-age-loghost index 391f330..afec811 100755 --- a/dsa-nagios-checks/checks/dsa-check-log-age-loghost +++ b/dsa-nagios-checks/checks/dsa-check-log-age-loghost @@ -33,7 +33,7 @@ if [ -z "$host" ] || [ "$host" = "-h" ] || [ "$host" = "--help" ]; then usage 3 fi -if [ "${host/[^a-z0-9]/}" != "$host" ]; then +if [ "${host/[^a-z0-9-]/}" != "$host" ]; then echo >&2 "$0: Invalid hostname $1" exit 3 fi diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index aff0879..b983c42 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -9,12 +9,14 @@ dsa-nagios-checks (9X) Xnstable; urgency=low fresh. * dsa-check-config: - fix a bashism. + * dsa-check-log-age-loghost + - allow minus (-) in hostnames. [ Stephen Gran ] * Add event_handler to restart services * Add dsa-check-raid-megactl for awkward PeRC controllers - -- Peter Palfrader Mon, 10 Oct 2011 23:33:36 +0200 + -- Peter Palfrader Sat, 24 Dec 2011 16:25:32 +0100 dsa-nagios-checks (89) unstable; urgency=low -- 2.20.1