Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- includes/polling/os/trango.inc.php
- -----------------------------------------
- <?php
- $version = trim(snmp_get($device, ".1.3.6.1.4.1.5454.1.80.1.1.2.0", "-OQv", "GIGA-PLUS-MIB"),'"');
- //$hardware = "Trango " . trim(snmp_get($device, ".1.3.6.1.2.1.1.1.0", "-OQv", "GIGA-PLUS-MIB"),'"');
- $hardware = "Trango Apex Lynx-2.0.2";
- //$hostname = trim(snmp_get($device, ".1.3.6.1.4.1.5454.1.80.1.6.0", "-OQv", "GIGA-PLUS-MIB"),'"');
- if (strstr($hardware, 'Trango Apex Lynx-2.0.2')) {
- include 'includes/polling/wireless/trango-apexlynx.inc.php';
- }
- includes/polling/wireless/trango-apexlynx.inc.php
- -----------------------------------------
- <?php
- $rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/trango-rssi.rrd";
- $rssi = snmp_get($device, "GIGA-PLUS-MIB::rfRSSIInt.0", "-Ovqn", "GIGA-PLUS-MIB");
- if (is_numeric($rssi)) {
- if (!is_file($rrd_filename)) {
- rrdtool_create($rrd_filename, " --step 300 DS:rssi:GAUGE:600:-150:5000".$config['rrd_rra']);
- }
- $fields = array(
- 'rssi' => $rssi,
- );
- rrdtool_update($rrd_filename, $fields);
- $graphs['trango_rssi'] = TRUE;
- unset($rrd_filename,$rssi);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement