mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use data_update instead of rrd_update/rrd_create and influx_update Centralize rrd file check so we can check against a remote rrdcached server too Use rrd_name() to generate rrd file names
20 lines
397 B
PHP
20 lines
397 B
PHP
<?php
|
|
|
|
$rrd_filename = rrd_name($device['hostname'], 'netstats-snmp');
|
|
|
|
$ds_in = 'snmpInPkts';
|
|
$ds_out = 'snmpOutPkts';
|
|
|
|
$colour_area_in = 'AA66AA';
|
|
$colour_line_in = '330033';
|
|
$colour_area_out = 'FFDD88';
|
|
$colour_line_out = 'FF6600';
|
|
|
|
$colour_area_in_max = 'cc88cc';
|
|
$colour_area_out_max = 'FFefaa';
|
|
|
|
$graph_max = 1;
|
|
$unit_text = 'Packets';
|
|
|
|
require 'includes/graphs/generic_duplex.inc.php';
|