mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-23 06:35:42 +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
|
||||
echo "graph_title Memory usage (in MB)"
|
||||
echo 'graph_category system'
|
||||
echo "acti.label Active momery"
|
||||
echo "total.label Memory total"
|
||||
echo "free.label Free memory"
|
||||
echo "swap.label Swap in use"
|
||||
echo "acti.label Active"
|
||||
echo "used.label Used"
|
||||
echo "total.label Total"
|
||||
echo "free.label Free"
|
||||
echo "swap.label Swap used"
|
||||
echo "swapt.label Swap total"
|
||||
exit 0
|
||||
fi
|
||||
|
@ -26,12 +27,14 @@ function spliter(v, i) {
|
|||
}
|
||||
/^Memory/ {
|
||||
acti = scale(spliter($3,1));
|
||||
total = scale(spliter($3,2));
|
||||
used = scale(spliter($3,2));
|
||||
free = scale($6);
|
||||
total = used + free;
|
||||
swap = scale(spliter($8,1));
|
||||
swapt = scale(spliter($8,2));
|
||||
|
||||
print "acti.value", acti
|
||||
print "used.value", used
|
||||
print "total.value", total
|
||||
print "free.value", free
|
||||
print "swap.value", swap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue