Does not work on Ubuntu 16.04.1
The mrtg-rrd package provided with Ubuntu 16.04.1 contains a non working script whicht results in an empty web page and this error:
H01215: Can't use an undefined value as an ARRAY reference at /usr/lib/
The problem seems to be caused by the new perl version and can be fixed by this patch:
--- /usr/lib/
+++ /usr/lib/
@@ -496,7 +496,7 @@
{
my ($name, $target, $q) = @_;
- return @{$target->{args}} if @{$target->{args}};
+ return @{$target->{args}} if ($target->{args} && @{$target-
my $noi = 1 if $target-
my $noo = 1 if $target-
@@ -908,7 +908,7 @@
print $directories{
my $subdirs_printed;
- if (@{$directories
+ if ($directories{
$subdirs_printed = 1;
print <<EOF;
<H1>MRTG subdirectories in the directory $dir1</H1>
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu mrtg-rrd Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- deti
- Solved:
- Last query:
- Last reply: