Mrtg

From uCtrl.net

Jump to: navigation, search

Contents

Information

Using the analog value log files it's possible to export the analog values into other applications, like Mrtg. Mrtg is primarily used to map network traffic on multiple routers. But it can be set up to make graphs for basically everything. Mrtg needs to run in a Linux environment.

Example mrtg.conf

For temperature sensor.

Title[temp_lr]: Living Room Temperature
PageTop[temp_lr]: <H1>Living Room Temperature</H1>
Target[temp_lr]: `/usr/mrtg/temp_lr` *10
MaxBytes[temp_lr]: 40000
Factor[temp_lr]: 0.001
YLegend[temp_lr]: mDegree 'C
ShortLegend[temp_lr]: 'C
LegendI[temp_lr]:
LegendO[temp_lr]: Degree
Options[temp_lr]: growright, nopercent, gauge, nolegend
YSize[temp_lr]: 150

Example target bash script

For reading the analog value log files.

echo 0
cat /usr/serialserver/serialserver-analog-value2-1.log
echo 0
echo Temperature

Sharing log files

The log files can be made accessible in Linux using smbmount

smbmount //server/serialserver /usr/serialserver -o password= r

Graphs

Resources

Retrieved from "http://uctrl.net/w/Mrtg"
Personal tools
Namespaces
Variants
Actions
Navigation
Categories
projects
Toolbox