mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-19 09:03:20 +00:00
Fix the file. Removed swap because the scale was getting to high and we couldn't see the active mem (to monitor the swap see 'OpenBSD swap' script).
This commit is contained in:
parent
34c1f534b1
commit
9ae7e3a9f7
1 changed files with 8 additions and 5 deletions
|
@ -2,10 +2,11 @@
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo "graph_title Memory usage (in MB)"
|
echo "graph_title Memory usage (in MB)"
|
||||||
echo 'graph_category system'
|
echo 'graph_category system'
|
||||||
echo "acti.label Active momery"
|
echo "acti.label Active"
|
||||||
echo "total.label Memory total"
|
echo "used.label Used"
|
||||||
echo "free.label Free memory"
|
echo "total.label Total"
|
||||||
echo "swap.label Swap in use"
|
echo "free.label Free"
|
||||||
|
echo "swap.label Swap used"
|
||||||
echo "swapt.label Swap total"
|
echo "swapt.label Swap total"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -26,12 +27,14 @@ function spliter(v, i) {
|
||||||
}
|
}
|
||||||
/^Memory/ {
|
/^Memory/ {
|
||||||
acti = scale(spliter($3,1));
|
acti = scale(spliter($3,1));
|
||||||
total = scale(spliter($3,2));
|
used = scale(spliter($3,2));
|
||||||
free = scale($6);
|
free = scale($6);
|
||||||
|
total = used + free;
|
||||||
swap = scale(spliter($8,1));
|
swap = scale(spliter($8,1));
|
||||||
swapt = scale(spliter($8,2));
|
swapt = scale(spliter($8,2));
|
||||||
|
|
||||||
print "acti.value", acti
|
print "acti.value", acti
|
||||||
|
print "used.value", used
|
||||||
print "total.value", total
|
print "total.value", total
|
||||||
print "free.value", free
|
print "free.value", free
|
||||||
print "swap.value", swap
|
print "swap.value", swap
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue