Wichtig!: Die Ausgabe an xymon (das ist ja die Datenquelle für RRD) muss in der ersten Zeile eine Leerzeile haben!
Auch sollte vor dem : oder = in jeder Zeile ein Space sein!
zB:
----------------------start Ausgabe an xymon
LEERZEILE !!!
Zeile 1 : 32
Zeile 2 : 768
u.s.w beliebige Anzahl!
----------------------schluss
unter der Leerzeile können beliebige Dinge stehen; bitte darauf achten, daß dann kein : oder = verwendet wird, da das als Wert erkannt würde!
Indizes sollten 18 Zeichen nicht überschreiten, dann = oder : dann eine Zahl (weitere Zeichen werden wohl ignoriert)
dann in xymonserver.cfg:
Spalte anfügen:
TEST2RRD="......,spalte=ncv"
sowie:
SPLITNCV_spalte="*:GAUGE" # gauge steht für veränderliche Werte; und wirklich ein Stern!
nun noch graphs.cfg:
[spalte]
FNPATTERN ^spalte.(.+).rrd
TITLE SuperSpalte
YAXIS Einheit
DEF:var@RRDIDX@=@RRDFN@:lambda:AVERAGE
LINE2:var@RRDIDX@#@COLOR@:@RRDPARAM@
GPRINT:var@RRDIDX@:LAST: \: %3.1lf (cur)
GPRINT:var@RRDIDX@:MAX: \: %3.1lf (max)
GPRINT:var@RRDIDX@:MIN: \: %3.1lf (min)
GPRINT:var@RRDIDX@:AVERAGE: \: %3.1lf (avg)\n
fnpattern erzeugt für jeden Wert eine Datei *.rrd, die man auch später finden kann und bei Problemen löschen muss!
lambda ist eine statische und interne Sache - muss so dort stehen!
dynamic graphs in xymon
short english summary:
-please mind adding a first empty line on top of the data-output to xymon plus space in front of the column-separator (: or =)
-add arbitrary number of lines like line : value to this output after that (max 18 chars)
-configure xymonserver.cfg and graphs.cfg like shown above
-in case of trouble try deleting the corresponding *.rrd-files that have been created for every line!
dann in xymonserver.cfg:
Spalte anfügen:
TEST2RRD="......,spalte=ncv"
sowie:
SPLITNCV_spalte="*:GAUGE" # gauge steht für veränderliche Werte; und wirklich ein Stern!
nun noch graphs.cfg:
[spalte]
FNPATTERN ^spalte.(.+).rrd
TITLE SuperSpalte
YAXIS Einheit
DEF:var@RRDIDX@=@RRDFN@:lambda:AVERAGE
LINE2:var@RRDIDX@#@COLOR@:@RRDPARAM@
GPRINT:var@RRDIDX@:LAST: \: %3.1lf (cur)
GPRINT:var@RRDIDX@:MAX: \: %3.1lf (max)
GPRINT:var@RRDIDX@:MIN: \: %3.1lf (min)
GPRINT:var@RRDIDX@:AVERAGE: \: %3.1lf (avg)\n
fnpattern erzeugt für jeden Wert eine Datei *.rrd, die man auch später finden kann und bei Problemen löschen muss!
lambda ist eine statische und interne Sache - muss so dort stehen!
dynamic graphs in xymon
short english summary:
-please mind adding a first empty line on top of the data-output to xymon plus space in front of the column-separator (: or =)
-add arbitrary number of lines like line : value to this output after that (max 18 chars)
-configure xymonserver.cfg and graphs.cfg like shown above
-in case of trouble try deleting the corresponding *.rrd-files that have been created for every line!