mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 10:58:12 +00:00
Now the correct value is added
This commit is contained in:
parent
1a734595a2
commit
ea1e17cc51
1 changed files with 3 additions and 3 deletions
|
@ -70,14 +70,14 @@ export VHOSTS
|
||||||
export AGGREGATE
|
export AGGREGATE
|
||||||
|
|
||||||
# Awk Script
|
# Awk Script
|
||||||
$LOGTAIL ${ACCESS_LOG} $STATEFILE | awk '
|
$LOGTAIL ${ACCESS_LOG} -o $STATEFILE | awk '
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
split(ENVIRON["VHOSTS"], hosts)
|
split(ENVIRON["VHOSTS"], hosts)
|
||||||
for (host in hosts) { track[hosts[host]] = host}
|
for (host in hosts) { track[hosts[host]] = host}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
cn[$2]+=ENVIRON["BPARAM"]
|
cn[$2]+=$ENVIRON["BPARAM"]
|
||||||
}
|
}
|
||||||
END {
|
END {
|
||||||
for (host in cn) {
|
for (host in cn) {
|
||||||
|
@ -100,4 +100,4 @@ END {
|
||||||
print "agregate: " ENVIRON["AGGREGATE"]
|
print "agregate: " ENVIRON["AGGREGATE"]
|
||||||
for (vhost in track) print "vhost" track[vhost] ".value " res[vhost]+0
|
for (vhost in track) print "vhost" track[vhost] ".value " res[vhost]+0
|
||||||
print "rest.value " rest + 0
|
print "rest.value " rest + 0
|
||||||
}'
|
}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue