From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/160369-check_ntp-fqdn.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/attachments/160369-check_ntp-fqdn.patch (limited to 'web/attachments/160369-check_ntp-fqdn.patch') diff --git a/web/attachments/160369-check_ntp-fqdn.patch b/web/attachments/160369-check_ntp-fqdn.patch new file mode 100644 index 0000000..b20a702 --- /dev/null +++ b/web/attachments/160369-check_ntp-fqdn.patch @@ -0,0 +1,11 @@ +--- check_ntp.pl.orig 2005-12-19 13:34:41.000000000 +0100 ++++ check_ntp.pl 2005-12-19 13:43:49.000000000 +0100 +@@ -112,7 +112,7 @@ + } + + $opt_H = shift unless ($opt_H); +-my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/); ++my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+([a-zA-Z][-a-zA-Z0-9\.]+)*)$/); + unless ($host) { + print "No target host specified\n"; + print_usage(); -- cgit v1.2.3-74-g34f1