Observium_CE/includes/polling/ports/etherlike-mib.inc.php

32 lines
947 B
PHP

<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage poller
* @copyright (C) Adam Armstrong
*
*/
// EtherLike-MIB stats
$port_module = 'etherlike';
// If etherlike extended error statistics are enabled, walk dot3StatsEntry else only dot3StatsDuplexStatus.
if ($ports_modules[$port_module]) {
echo("dot3Stats ");
$port_stats = snmpwalk_cache_oid($device, "dot3StatsEntry", $port_stats, "EtherLike-MIB");
$process_port_functions[$port_module] = snmp_status();
} elseif ($has_ifEntry) {
echo("dot3StatsDuplexStatus ");
$port_stats = snmpwalk_cache_oid($device, "dot3StatsDuplexStatus", $port_stats, "EtherLike-MIB");
$process_port_functions[$port_module] = snmp_status();
}
// Additional db fields for update
//$process_port_db[$port_module][] = 'ifDuplex'; // this field used in main data fields
// EOF