Correct script output to comply with MRTG specification.

Fri, 17 Apr 2009 23:40:56 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 17 Apr 2009 23:40:56 +0200
changeset 160
1a36468e720c
parent 159
5524672ebbe7
child 161
79e49c6c1eb1

Correct script output to comply with MRTG specification.

mrtg/uptime.pl file | annotate | diff | comparison | revisions
     1.1 --- a/mrtg/uptime.pl	Fri Apr 17 23:40:08 2009 +0200
     1.2 +++ b/mrtg/uptime.pl	Fri Apr 17 23:40:56 2009 +0200
     1.3 @@ -10,7 +10,10 @@
     1.4  $uptime =~ /up (.*?) day/;
     1.5  $up = int($1);
     1.6  
     1.7 +# According to http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
     1.8 +# 'the external command must return 4 lines of output.'
     1.9  print "$up\n";
    1.10  print "$up\n";
    1.11  print "$null\n";
    1.12 +print "$null\n";
    1.13  

mercurial