librenms/librenms

View on GitHub
includes/html/graphs/device/gaia_firewall_lograte.inc.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

require 'includes/html/graphs/common.inc.php';

$rrd_filename = Rrd::name($device['hostname'], 'gaia_firewall_lograte');
$rrd_options .= " --vertical-label='Logs per second'";

$rrd_options .= " DEF:fw_lograte=$rrd_filename:fwlograte:LAST";

$rrd_options .= " LINE1.5:fw_lograte#cc0000:'" . Rrd::safeDescr('Log Rate') . "'";
$rrd_options .= " 'GPRINT:fw_lograte:LAST:Current\:%4.0lf'";
$rrd_options .= " 'GPRINT:fw_lograte:AVERAGE:Average\:%4.0lf'";
$rrd_options .= " 'GPRINT:fw_lograte:MAX:Max\:%4.0lf\l'";