X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-log-age-loghost;h=afec81144c419cda624414dece911a8a795e2ca6;hb=82ef7b493cfb8e47151e97d33ae08f397e2372b4;hp=391f33050ecaff5a49770a672c32b2b793149dee;hpb=eeefce1d3462c2f841742febb05447df96cbcd22;p=mirror%2Fdsa-nagios.git 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