mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
fixed the regex to reflect disallowed chars in windows usernames
This commit is contained in:
parent
64296bf208
commit
fd45eb113b
1 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@ CFG
|
||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
tail -n+5 "$SESSIONS" | head -n-2 | awk '$2 ~ "[a-z]+" { ua[tolower($2)]; ha[$1] }
|
tail -n+5 "$SESSIONS" | head -n-2 | awk '$2 !~ "[\[\]\(\)\:;\"<>\*\+=\|\\/\?,]" { if(length($2)>=2) ua[tolower($2)] }
|
||||||
END{ print "users.value",length(ua);
|
$1 !~ "\:" { ha[$1] }
|
||||||
print "hosts.value",length(ha) }'
|
END{ print "users.value",length(ua);
|
||||||
|
print "hosts.value",length(ha) }' 2>/dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue