aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/snmp.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/snmp.php')
-rw-r--r--plugin/snmp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/snmp.php b/plugin/snmp.php
index d3cdb96..680d94f 100644
--- a/plugin/snmp.php
+++ b/plugin/snmp.php
@@ -9,7 +9,7 @@ require_once 'inc/collectd.inc.php';
9switch(GET('t')) { 9switch(GET('t')) {
10 case 'if_octets': 10 case 'if_octets':
11 require_once 'type/GenericIO.class.php'; 11 require_once 'type/GenericIO.class.php';
12 $obj = new Type_GenericIO($CONFIG); 12 $obj = new Type_GenericIO($CONFIG, $_GET);
13 $obj->data_sources = array('rx', 'tx'); 13 $obj->data_sources = array('rx', 'tx');
14 $obj->ds_names = array( 14 $obj->ds_names = array(
15 'rx' => 'Receive', 15 'rx' => 'Receive',
@@ -25,7 +25,7 @@ switch(GET('t')) {
25 break; 25 break;
26 default: 26 default:
27 require_once 'type/Default.class.php'; 27 require_once 'type/Default.class.php';
28 $obj = new Type_Default($CONFIG); 28 $obj = new Type_Default($CONFIG, $_GET);
29 $obj->rrd_title = sprintf('SNMP: %s (%s)', $obj->args['type'], $obj->args['tinstance']); 29 $obj->rrd_title = sprintf('SNMP: %s (%s)', $obj->args['type'], $obj->args['tinstance']);
30 break; 30 break;
31} 31}