Random Project

template syntax error

the template don’t work.

first it starts with “ine array indexes before adding content…

change:

$opt[2] .= “–vertical-label “Byte/sec ” -l 0 -r –title “Apache metrics for $hostname / $servicedesc” “;
$def[2] .= “DEF:bytepsec=$rrdfile:$DS[3]:AVERAGE ” ;

to:

$opt[2] = “–vertical-label “Byte/sec ” -l 0 -r –title “Apache metrics for $hostname / $servicedesc” “;
$def[2] = “DEF:bytepsec=$rrdfile:$DS[3]:AVERAGE ” ;

please test code yourself before publishing it.

except that the plugin works with Icinga 1.8.3