Home > Uncategorized > External command with MRTG

External command with MRTG

March 26, 2010

This is the format for mrtg config file with external script.
The script should return 4 lines:
– first value
– second value
– uptime
– target’s name

Target[NAME]: `/location/of/script`
MaxBytes[NAME]:
YLegend[NAME]:
Legend1[NAME]:
Legend2[NAME]:
Legend3[NAME]:
Legend4[NAME]:
LegendI[NAME]:
LegendO[NAME]:
ShortLegend[NAME]:
Title[NAME]:
Options[NAME]: growright, gauge, nopercent, integer, unknaszero
Colours[NAME]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[NAME]: ymw
PageTop[NAME]: <H1>xxx</H1>

Reference:
– MRTG – configuration reference: http://mrtg.basemirror.de/doc/mrtg-reference.en.html
– MRTG External program samples: http://dingetje.homeip.net/mrtg/howto.html

Categories: Uncategorized Tags: , , ,
%d bloggers like this: