mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 09:57:09 +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;;
|
||||
esac
|
||||
|
||||
tail -n+5 "$SESSIONS" | head -n-2 | awk '$2 ~ "[a-z]+" { ua[tolower($2)]; ha[$1] }
|
||||
END{ print "users.value",length(ua);
|
||||
print "hosts.value",length(ha) }'
|
||||
tail -n+5 "$SESSIONS" | head -n-2 | awk '$2 !~ "[\[\]\(\)\:;\"<>\*\+=\|\\/\?,]" { if(length($2)>=2) ua[tolower($2)] }
|
||||
$1 !~ "\:" { ha[$1] }
|
||||
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