# HG changeset patch # User Michael Schloh von Bennewitz # Date 1240004456 -7200 # Node ID 1a36468e720ccc17f59561bc596bdfb9d17107fd # Parent 5524672ebbe7d184dcb92071f4003d1e80787ecd Correct script output to comply with MRTG specification. diff -r 5524672ebbe7 -r 1a36468e720c mrtg/uptime.pl --- a/mrtg/uptime.pl Fri Apr 17 23:40:08 2009 +0200 +++ b/mrtg/uptime.pl Fri Apr 17 23:40:56 2009 +0200 @@ -10,7 +10,10 @@ $uptime =~ /up (.*?) day/; $up = int($1); +# According to http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html +# 'the external command must return 4 lines of output.' print "$up\n"; print "$up\n"; print "$null\n"; +print "$null\n";