aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/snmp.php
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 11:15:53 +0200
committerPim van den Berg2014-05-03 11:15:53 +0200
commit1c888304d33a8c1405b8716356ae300fad39521c (patch)
treece0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/snmp.php
parentinc: mv graphs_from_plugin, build_url functions to html.inc.php (diff)
downloadapt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.zip
apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.gz
apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.bz2
apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.xz
type/Default: don't depend on external function GET
Diffstat (limited to '')
-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}