mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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>
14 lines
506 B
PHP
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'";
|