Home  |   Gallery  |   MG Midget  |   Le Mans  |   Networking  |   Downloads  |   Links

 MRTG Config for das3145

The MRTG config for graphing consists of 2 main parts. A Homeseer script to generate text files for each temperature sensor and the MRTG config file itself. For detailsof how to get MRTG running on Win2K follow the link from the MRTG Home page itself.

 

HomeSeer Script

This script is triggered by a recurring event set to run every minute. The Device code ("^") and paths used would need to be modifed tro suit another installation.

Sub Main() on error resume next for I = 1 to 4 Path="E:\www\mrtg\das3145-" & trim(cstr(I)) & ".txt" set objFSO = CreateObject("scripting.filesystemobject") objFSO.DeleteFile(Path) set file = objFSO.OpenTextFile(Path,2,True) file.writeline("0") file.writeline(cstr(hs.devicevalue("^" & cstr(I)))) file.Writeline(hs.systemuptime) file.writeline("Homeseer") file.close next end sub
 

MRTG Config Script

This is the actual MRTG config file. Again paths would need to be modified for use elsewhere.

Options[_]: growright,bits WorkDir: e:\www\mrtg\house RunAsDaemon: yes ### das3145 Channel 1 Target[das3145-1]: `more e:\www\mrtg\das3145-1.txt` MaxBytes[das3145-1]: 2000 Title[das3145-1]: Temperature Analysis for Channel 1 Options[das3145-1]: gauge,growright YLegend[das3145-1]: Temp ShortLegend[das3145-1]: &nbspC LegendI[das3145-1]: &nbspRaw LegendO[das3145-1]: &nbspRound PageTop[das3145-1]: <H1>Temperature - Channel 1</H1> <TABLE> <TR><TD>System:</TD> <TD>das3145</TD></TR> <TR><TD>Maintainer:</TD> <TD>das</TD></TR> <TR><TD>Description:</TD><TD>3145 Ch 1 : ?</TD></TR> <TR><TD>ifType:</TD> <TD>ds1829</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>N/A</TD></TR> </TABLE> ### das3145 Channel 2 Target[das3145-2]: `more e:\www\mrtg\das3145-2.txt` MaxBytes[das3145-2]: 2000 Title[das3145-2]: Temperature Analysis for Channel 2 Options[das3145-2]: gauge,growright YLegend[das3145-2]: Temp ShortLegend[das3145-2]: &nbspC LegendI[das3145-2]: &nbspRaw LegendO[das3145-2]: &nbspRound PageTop[das3145-2]: <H1>Temperature - Channel 2</H1> <TABLE> <TR><TD>System:</TD> <TD>das3145</TD></TR> <TR><TD>Maintainer:</TD> <TD>das</TD></TR> <TR><TD>Description:</TD><TD>3145 Ch 2 : ?</TD></TR> <TR><TD>ifType:</TD> <TD>ds1829</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>N/A</TD></TR> </TABLE> ### das3145 Channel 3 Target[das3145-3]: `more e:\www\mrtg\das3145-3.txt` MaxBytes[das3145-3]: 2000 Title[das3145-3]: Temperature Analysis for Channel 3 Options[das3145-3]: gauge,growright YLegend[das3145-3]: Temp ShortLegend[das3145-3]: &nbspC LegendI[das3145-3]: &nbspRaw LegendO[das3145-3]: &nbspRound PageTop[das3145-3]: <H1>Temperature - Channel 3</H1> <TABLE> <TR><TD>System:</TD> <TD>das3145</TD></TR> <TR><TD>Maintainer:</TD> <TD>das</TD></TR> <TR><TD>Description:</TD><TD>3145 Ch 3 : Loft</TD></TR> <TR><TD>ifType:</TD> <TD>ds1829</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>N/A</TD></TR> </TABLE> ### das3145 Channel 4 Target[das3145-4]: `more e:\www\mrtg\das3145-4.txt` MaxBytes[das3145-4]: 2000 Title[das3145-4]: Temperature Analysis for Channel 4 Options[das3145-4]: gauge,growright YLegend[das3145-4]: Temp ShortLegend[das3145-4]: &nbspC LegendI[das3145-4]: &nbspRaw LegendO[das3145-4]: &nbspRound PageTop[das3145-4]: <H1>Temperature - Channel 4</H1> <TABLE> <TR><TD>System:</TD> <TD>das3145</TD></TR> <TR><TD>Maintainer:</TD> <TD>das</TD></TR> <TR><TD>Description:</TD><TD>3145 Ch 4 : Loft</TD></TR> <TR><TD>ifType:</TD> <TD>ds1829</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>N/A</TD></TR> </TABLE>