Imported Upstream version 1.4.8
This commit is contained in:
parent
6a280f6f24
commit
6dd54dd8e2
352 changed files with 42813 additions and 27251 deletions
|
@ -1,5 +1,5 @@
|
|||
# Utility drawer for Nagios plugins.
|
||||
# $Id: utils.pm.in,v 1.11 2006/10/27 15:37:31 tonvoon Exp $
|
||||
# $Id: utils.pm.in,v 1.12 2006/12/12 08:56:01 tonvoon Exp $
|
||||
#
|
||||
# This will be deprecated soon. Please use Nagios::Plugin from CPAN
|
||||
# for new plugins
|
||||
|
@ -60,7 +60,7 @@ sub is_hostname {
|
|||
} else {
|
||||
return 0;
|
||||
}
|
||||
} elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.?$/) {
|
||||
} elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]*(\.[a-zA-Z0-9][-a-zA-Z0-9]*)*\.?$/) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue