Files
librenms-librenms/includes/html/graphs/device/gaia_logserver_lograte.inc.php
martinberg 33c7151763 Additional data collection for GAIA (#12713)
* Added support for GAIA logserver/firewall lograte, raid state and type, logserver state and testdata, firewall packet stats and connections stats

* Fixed typo

* Added testdata

* Fixed typo

* Changed some faulty strings to integers

* Added more sensors. License, HA states and Updates checks

* Added testdata

* Using snmp_get_multi. Cleaner code

* Fix rrd function usage

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-28 05:19:17 -05:00

14 lines
506 B
PHP

<?php
require 'includes/html/graphs/common.inc.php';
$rrd_filename = Rrd::name($device['hostname'], 'gaia_logserver_lograte');
$rrd_options .= " --vertical-label='Logs per second'";
$rrd_options .= " DEF:lograte=$rrd_filename:LogReceiveRate:LAST";
$rrd_options .= " LINE1.5:lograte#cc0000:'" . Rrd::safeDescr('Log Rate') . "'";
$rrd_options .= " 'GPRINT:lograte:LAST:Current\:%4.0lf'";
$rrd_options .= " 'GPRINT:lograte:AVERAGE:Average\:%4.0lf'";
$rrd_options .= " 'GPRINT:lograte:MAX:Max\:%4.0lf\l'";