[mrtg] Blank graph with custom script

Steve Shipway s.shipway at auckland.ac.nz
Sat Jun 2 07:41:40 CEST 2012

Your script should output an additional 2 lines.  The third line can be blank, it represents the uptime of the device.  The fourth line is the device description (used in native-mode MRTG output, this is why you get "unknown has been up for unknown" on your generated pages)

The flatline section is when the data is being stored as 'unknown' -- default behaviour for native-mode MRTG is to display unknowns as the previous known value.  Add option 'unknaszero' to make unknowns display as zero instead.

The unknown data could be because the polling failed, or because your 'maxbytes' value is too small (if the calculated value exceeeds this then an unknown will be stored).  Maybe increase it much higher to check?

Since the data seems to be a constantly increasing total, then maybe omit the 'gauge'?

The perl ipv6 errors are probably not a problem, but maybe someone else can comment...?


Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487

More information about the mrtg mailing list