EnableIPv6: no
WorkDir: /usr/nekoware/apache2/htdocs/_mrtg
Interval: 5
Title[load_avg]: Load average * 100
PageTop[load_avg]:
Load average * 100
Options[load_avg]: nobanner,gauge,noinfo,nopercent
Target[load_avg]: `/usr/nekoware/etc/mrtg/load_avg.sh`
MaxBytes[load_avg]: 100
YLegend[load_avg]: LoadAvg * 100
Unscaled[load_avg]: ymwd
LegendI[load_avg]:
LegendO[load_avg]:
Suppress[load_avg]: y
Title[disk_usage]: Disk usage (GB)
PageTop[disk_usage]: Disk usage (GB)
Options[disk_usage]: nobanner,gauge,noinfo,nopercent
Target[disk_usage]: `/usr/nekoware/etc/mrtg/disk.sh`
kMG[disk_usage]: G
MaxBytes[disk_usage]: 35410400
YLegend[disk_usage]: Disk total/used
Unscaled[disk_usage]: ymwd
LegendI[disk_usage]:
LegendO[disk_usage]:
Suppress[disk_usage]: y
Title[memory_usage]: Memory usage (MB)
PageTop[memory_usage]: Memory usage (MB)
Options[memory_usage]: nobanner,gauge,noinfo,nopercent
Target[memory_usage]: `/usr/nekoware/etc/mrtg/mem.sh`
kMG[memory_usage]: M
MaxBytes[memory_usage]: 256
AbsMax[memory_usage]: 256
YLegend[memory_usage]: Mem total/free
Unscaled[memory_usage]: ymwd
LegendI[memory_usage]:
LegendO[memory_usage]:
Suppress[memory_usage]: y
/usr/nekoware/etc/mrtg/load_avg.sh
Load Average multiplied by 100. Fetched from uptime.
#!/bin/sh
DATA=`uptime`
FIRST=`echo $DATA | cut -f4 -d":" | cut -f1 -d","`
SECOND=`echo $DATA | cut -f4 -d":" | cut -f2 -d","`
VAL1=`echo "$FIRST*100" | bc | cut -f1 -d"."`
VAL2=`echo "$SECOND*100" | bc | cut -f1 -d"."`
echo $VAL1
echo $VAL2
echo 0
echo 0
/usr/nekoware/etc/mrtg/disk.sh
Disk usage. Fetched from df.
#!/bin/sh
DATA=`df -k /dev/root | tail -1`
VAL1=`echo $DATA | cut -f3 -d" "`
VAL2=`echo $DATA | cut -f4 -d" "`
echo $VAL1
echo $VAL2
echo 0
echo 0
/usr/nekoware/etc/mrtg/mem.sh
Memory usage. Fetched from top.
#!/bin/sh
DATA=`top -b | grep Memory`
TOTAL=`echo $DATA | cut -f2 -d" " | cut -f1 -d"M"`
FREE=`echo $DATA | cut -f6 -d" " | cut -f1 -d"M"`
echo $TOTAL
echo $FREE
echo 0
echo 0