Details

    • Add New Device / OS
    • Resolution: Fixed
    • Trivial
    • None
    • Professional Edition
    • Discovery, Poller
    • None

    Description

      Find Mibs here

      includes/definitions/os.inc.php

      Index: includes/definitions/os.inc.php
      ===================================================================
      --- includes/definitions/os.inc.php	(revision 8589)
      +++ includes/definitions/os.inc.php	(working copy)
      +// C-Data
      +$os = "cdata-swe-pon";
      +$config['os'][$os]['vendor']                = "cdata";
      +$config['os'][$os]['text']                  = "CDATA";
      +$config['os'][$os]['type']                  = "network";
      +//$config['os'][$os]['sysObjectID'][]         = ".0.0";
      +$config['os'][$os]['snmpable'][]            = ".1.3.6.1.4.1.34592.1.3.1.1.2.0"; // This device have sysObjectID.0 = .0.0
      +$config['os'][$os]['discovery_os']          = "cdata";
      +$config['os'][$os]['mibs'][]                = "FD-SYSTEM-MIB";
      +$config['os'][$os]['mib_dirs']              = "cdata";
      +
      +

      includes/discovery/os/cdata.inc.php

      <?php
       
      if (!$os)
      {
        // FD-SYSTEM-MIB::sysDesc.0 = STRING: EPON System
        $hw = snmp_get($device, '.1.3.6.1.4.1.34592.1.3.1.1.2.0', '-Osqnv', 'FD-SYSTEM-MIB');
        if (strlen($hw))
        {
          $os = 'cdata-swe-pon'; // FIXME. Only Cam detected for now, for other need more checks
        }
      }
       
      // EOF

      includes/definitions/mibs.inc.php

      Index: includes/definitions/mibs.inc.php
      ===================================================================
      --- includes/definitions/mibs.inc.php	(revision 8589)
      +++ includes/definitions/mibs.inc.php	(working copy)
      @@ -494,6 +509,17 @@
       $config['mibs'][$mib]['descr']        = 'Ceragon FibeAir.';
       $config['mibs'][$mib]['mib_dir']      = 'ceragon';
       
      +// C-data
      +$mib = 'FD-SYSTEM-MIB';
      +$config['mibs'][$mib]['enable']       = 1;
      +//$config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.3459.1.3.1';
      +$config['mibs'][$mib]['descr']        = '';
      +$config['mibs'][$mib]['mib_dir']      = 'cdata';
      +$config['mibs'][$mib]['sensor']['chassisTemperature']['indexes'][0]     = array('class' => 'temperature', 'descr' => 'Chassis Temperature', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.4.0',  'min' => 0, 'scale' => 1); //FD-SYSTEM-MIB::chassisTemperature.0
      +$config['mibs'][$mib]['serial'][]     = array('oid' => 'chassisFactorySerial.0');
      +$config['mibs'][$mib]['version'][]     = array('oid' => 'mainCardSWVersion.0'); //FD-SYSTEM-MIB::mainCardSWVersion.0 = STRING: OLT-SWE-2.0.31
      +$config['mibs'][$mib]['hardware'][]   = array('oid' => 'mainCardHWRevision.0'); //FD-SYSTEM-MIB::mainCardHWRevision.0 = STRING: OLT-4.1
      +$config['mibs'][$mib]['features'][]   = array('oid' => 'chassisType.0'); //FD-SYSTEM-MIB::chassisType.0 = INTEGER: CHASSIS(16843009)
       
       // Dell IDRAC-MIB-SMIv2
       
      

      Attachments

        1. cdata_2x.png
          cdata_2x.png
          7 kB
        2. cdata.png
          cdata.png
          4 kB
        3. mibs.tar.gz
          69 kB
        4. snmpwalk-cdata-swe-olt.txt
          5 kB
        5. svn-diff-from8698-for-OBSERVIUM-2317.patch
          9 kB

        Activity

          [OBS-2317] CDATA OLT definitions

          Committed in 8700 and 8699.

          adama Adam Armstrong added a comment - Committed in 8700 and 8699.
          mtivi Martyushev Tim added a comment - Add patch file svn-diff-from8698-for-OBSERVIUM-2317.patch

          changes for new discovery definitions style + add more sensors/statuses

          Index: includes/definitions/mibs.inc.php
          ===================================================================
          --- includes/definitions/mibs.inc.php (revision 8698)
          +++ includes/definitions/mibs.inc.php (working copy)
          @@ -854,7 +854,78 @@
          $config['mibs'][$mib]['descr'] = 'Ceragon FibeAir.';
          $config['mibs'][$mib]['mib_dir'] = 'ceragon';
           
          +// C-data
          +$mib = 'FD-SYSTEM-MIB';
          +$config['mibs'][$mib]['enable'] = 1;
          +//$config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.3459.1.3.1';
          +$config['mibs'][$mib]['descr'] = '';
          +$config['mibs'][$mib]['mib_dir'] = 'cdata';
          +$config['mibs'][$mib]['serial'][] = array('oid' => 'chassisFactorySerial.0');
          +$config['mibs'][$mib]['version'][] = array('oid' => 'mainCardSWVersion.0'); //FD-SYSTEM-MIB::mainCardSWVersion.0 = STRING: OLT-SWE-2.0.31
          +$config['mibs'][$mib]['hardware'][] = array('oid' => 'mainCardHWRevision.0'); //FD-SYSTEM-MIB::mainCardHWRevision.0 = STRING: OLT-4.1
          +$config['mibs'][$mib]['features'][] = array('oid' => 'chassisType.0'); //FD-SYSTEM-MIB::chassisType.0 = INTEGER: CHASSIS(16843009)
           
          +$config['mibs'][$mib]['sensor']['chassisTemperature']['indexes'][0] = array('class' => 'temperature', 'descr' => 'Chassis Temperature', 'oid' => 'chassisTemperature.0', 'min' => 0, 'scale' => 1); //FD-SYSTEM-MIB::chassisTemperature.0
          +
          +$config['mibs'][$mib]['status']['sysMajAlarmLed']['indexes'][0] = array('descr' => 'Status of main card MAJ led', 'oid' => 'sysMajAlarmLed.0', 'measured' => '', 'type' => 'LedStatus', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.5.0');
          +$config['mibs'][$mib]['status']['sysCriAlarmLed']['indexes'][0] = array('descr' => 'Status of main card CRJ led', 'oid' => 'sysMajAlarmLed.0', 'measured' => '', 'type' => 'LedStatus', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.6.0');
          +
          +$config['mibs'][$mib]['status']['PowerStatusBit']['indexes'][0] = array('class' => 'power', 'descr' => 'Power Statuses', 'oid' => 'PowerStatusBit.0', 'measured' => '', 'type' => 'powerStatusBit', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.5.0');
          +$config['mibs'][$mib]['status']['fanStatusBit']['indexes'][0] = array('descr' => 'Fan Statuses', 'oid' => 'fanStatusBit.0', 'measured' => 'fan', 'type' => 'fanStatusBit', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.6.0');
          +
          +$config['mibs'][$mib]['states']['LedStatus'][1] = array('name' => 'on', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['LedStatus'][2] = array('name' => 'off', 'event' => 'ok');
          +$config['mibs'][$mib]['states']['LedStatus'][3] = array('name' => 'blink', 'event' => 'warning');
          +
          +$config['mibs'][$mib]['states']['powerStatusBit'][0] = array('name' => 'Power off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['powerStatusBit'][1] = array('name' => 'Power B off', 'event' => 'warning');
          +$config['mibs'][$mib]['states']['powerStatusBit'][2] = array('name' => 'Power A off', 'event' => 'warning');
          +$config['mibs'][$mib]['states']['powerStatusBit'][3] = array('name' => 'ok', 'event' => 'ok');
          +
          +$config['mibs'][$mib]['states']['fanStatusBit'][0] = array('name' => 'Fans 1-4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][1] = array('name' => 'Fans 2-4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][2] = array('name' => 'Fans 1,3,4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][3] = array('name' => 'Fans 3,4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][4] = array('name' => 'Fans 1,2,4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][5] = array('name' => 'Fans 2,4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][6] = array('name' => 'Fans 1,4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][7] = array('name' => 'Fans 4 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][8] = array('name' => 'Fans 1-3 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][9] = array('name' => 'Fans 2,3 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][10] = array('name' => 'Fans 1,3 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][11] = array('name' => 'Fans 3 off', 'event' => 'warning');
          +$config['mibs'][$mib]['states']['fanStatusBit'][12] = array('name' => 'Fans 1,2 off', 'event' => 'alert');
          +$config['mibs'][$mib]['states']['fanStatusBit'][13] = array('name' => 'Fans 2 off', 'event' => 'warning');
          +$config['mibs'][$mib]['states']['fanStatusBit'][14] = array('name' => 'Fans 1 off', 'event' => 'warning');
          +$config['mibs'][$mib]['states']['fanStatusBit'][15] = array('name' => 'All Fans on', 'event' => 'ok');
          +
          +$mib = 'FD-SWITCH-MIB';
          +$config['mibs'][$mib]['enable'] = 1;
          +//$config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.3459.1.3.2';
          +$config['mibs'][$mib]['descr'] = '';
          +$config['mibs'][$mib]['mib_dir'] = 'cdata';
          +
          +$config['mibs'][$mib]['status']['switchMode']['indexes'][0] = array('descr' => 'Device function operation switch type', 'measured' => 'device', 'type' => 'switchMode', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.1.1.0'); // switchMode.0 = INTEGER: normal(3)
          +$config['mibs'][$mib]['status']['vlanMode']['indexes'][0] = array('descr' => 'vlan mode', 'measured' => 'device', 'type' => 'OperSwitch', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.4.4.1.0'); // vlanMode.0 = INTEGER: enable(1)
          +$config['mibs'][$mib]['status']['trunkBlance']['indexes'][0] = array('descr' => 'Balance Mode in Trunks', 'measured' => 'device', 'type' => 'trunkBlance', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.5.1.1.0'); // trunkBlance.0 = INTEGER: balanceMac(1)
          +$config['mibs'][$mib]['status']['rstpEnable']['indexes'][0] = array('descr' => 'RSTP status', 'measured' => 'device', 'type' => 'OperSwitch', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.6.1.1.0'); // rstpEnable.0 = INTEGER: disable(2)
          +$config['mibs'][$mib]['status']['igmpsnoopingAdmin']['indexes'][0] = array('descr' => 'IGMP snooping status', 'measured' => 'device', 'type' => 'OperSwitch', 'oid_num' => '1.3.6.1.4.1.34592.1.3.2.8.1'); // igmpsnoopingAdmin.0 = INTEGER: enable(1)
          +
          +$config['mibs'][$mib]['states']['switchMode'][1] = array('name' => 'sniDestinated', 'event' => 'ok'); // -- It is normal
          +$config['mibs'][$mib]['states']['switchMode'][2] = array('name' => 'transparent', 'event' => 'ok'); // -- It is normal too
          +$config['mibs'][$mib]['states']['switchMode'][3] = array('name' => 'normal', 'event' => 'ok'); // -- It is normal too
          +
          +$config['mibs'][$mib]['states']['OperSwitch'][1] = array('name' => 'enable', 'event' => 'ok'); // -- It is normal
          +$config['mibs'][$mib]['states']['OperSwitch'][2] = array('name' => 'disable', 'event' => 'ok'); // -- It is normal too
          +
          +$config['mibs'][$mib]['states']['trunkBlance'][1] = array('name' => 'balanceMac', 'event' => 'warning'); // -- It is bad idea to use balanceMac
          +$config['mibs'][$mib]['states']['trunkBlance'][2] = array('name' => 'balanceIp', 'event' => 'ok'); // -- not bad
          +$config['mibs'][$mib]['states']['trunkBlance'][3] = array('name' => 'balanceL4Port', 'event' => 'ok'); // -- not bad
          +$config['mibs'][$mib]['states']['trunkBlance'][4] = array('name' => 'balanceIpMac', 'event' => 'ok'); // -- better than not bad
          +$config['mibs'][$mib]['states']['trunkBlance'][5] = array('name' => 'balanceL4PortMac', 'event' => 'ok'); // -- The best
          +$config['mibs'][$mib]['states']['trunkBlance'][6] = array('name' => 'balanceInL2If', 'event' => 'unknown'); // -- unknown feature
          +
          +
          // Dell IDRAC-MIB-SMIv2
           
          $mib = 'IDRAC-MIB-SMIv2';
          Index: includes/definitions/os.inc.php
          ===================================================================
          --- includes/definitions/os.inc.php (revision 8698)
          +++ includes/definitions/os.inc.php (working copy)
          @@ -965,6 +965,22 @@
          //$config['os'][$os]['snmp']['max-rep'] = 2000; // Yep! This devices may have over 1000 ports. All tested devices support such max-rep value and huge improved polling time
          //$config['os'][$os]['mib_blacklist'][] = "ENTITY-SENSOR-MIB"; // ENTITY-MIB is huge here
           
          +// C-Data
          +$os = "cdata-swe-pon";
          +$config['os'][$os]['vendor'] = "cdata";
          +$config['os'][$os]['text'] = "CDATA";
          +$config['os'][$os]['type'] = "network";
          +//$config['os'][$os]['snmpable'][] = ".1.3.6.1.4.1.34592.1.3.1.1.2.0";
          +//$config['os'][$os]['discovery_os'] = "cdata";
          +$config['os'][$os]['discovery'][] = array(
          + 'sysObjectID' => '.0.0',
          +// 'sysDescr' => '/^$/', // empty
          + 'FD-SYSTEM-MIB::sysDesc.0' => '/.+/', // non empty
          +);
          +$config['os'][$os]['mibs'][] = "FD-SYSTEM-MIB";
          +$config['os'][$os]['mibs'][] = "FD-SWITCH-MIB";
          +$config['os'][$os]['mib_dirs'] = "cdata";
          +
          // Cisco
           
          $os = "iosxr";
          

          mtivi Martyushev Tim added a comment - changes for new discovery definitions style + add more sensors/statuses Index: includes/definitions/mibs.inc.php =================================================================== --- includes/definitions/mibs.inc.php (revision 8698 ) +++ includes/definitions/mibs.inc.php (working copy) @@ - 854 , 7 + 854 , 78 @@ $config[ 'mibs' ][$mib][ 'descr' ] = 'Ceragon FibeAir.' ; $config[ 'mibs' ][$mib][ 'mib_dir' ] = 'ceragon' ;   + // C-data +$mib = 'FD-SYSTEM-MIB' ; +$config[ 'mibs' ][$mib][ 'enable' ] = 1 ; + //$config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.3459.1.3.1'; +$config[ 'mibs' ][$mib][ 'descr' ] = '' ; +$config[ 'mibs' ][$mib][ 'mib_dir' ] = 'cdata' ; +$config[ 'mibs' ][$mib][ 'serial' ][] = array( 'oid' => 'chassisFactorySerial.0' ); +$config[ 'mibs' ][$mib][ 'version' ][] = array( 'oid' => 'mainCardSWVersion.0' ); //FD-SYSTEM-MIB::mainCardSWVersion.0 = STRING: OLT-SWE-2.0.31 +$config[ 'mibs' ][$mib][ 'hardware' ][] = array( 'oid' => 'mainCardHWRevision.0' ); //FD-SYSTEM-MIB::mainCardHWRevision.0 = STRING: OLT-4.1 +$config[ 'mibs' ][$mib][ 'features' ][] = array( 'oid' => 'chassisType.0' ); //FD-SYSTEM-MIB::chassisType.0 = INTEGER: CHASSIS(16843009)   +$config[ 'mibs' ][$mib][ 'sensor' ][ 'chassisTemperature' ][ 'indexes' ][ 0 ] = array( 'class' => 'temperature' , 'descr' => 'Chassis Temperature' , 'oid' => 'chassisTemperature.0' , 'min' => 0 , 'scale' => 1 ); //FD-SYSTEM-MIB::chassisTemperature.0 + +$config[ 'mibs' ][$mib][ 'status' ][ 'sysMajAlarmLed' ][ 'indexes' ][ 0 ] = array( 'descr' => 'Status of main card MAJ led' , 'oid' => 'sysMajAlarmLed.0' , 'measured' => '' , 'type' => 'LedStatus' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.5.0' ); +$config[ 'mibs' ][$mib][ 'status' ][ 'sysCriAlarmLed' ][ 'indexes' ][ 0 ] = array( 'descr' => 'Status of main card CRJ led' , 'oid' => 'sysMajAlarmLed.0' , 'measured' => '' , 'type' => 'LedStatus' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.6.0' ); + +$config[ 'mibs' ][$mib][ 'status' ][ 'PowerStatusBit' ][ 'indexes' ][ 0 ] = array( 'class' => 'power' , 'descr' => 'Power Statuses' , 'oid' => 'PowerStatusBit.0' , 'measured' => '' , 'type' => 'powerStatusBit' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.5.0' ); +$config[ 'mibs' ][$mib][ 'status' ][ 'fanStatusBit' ][ 'indexes' ][ 0 ] = array( 'descr' => 'Fan Statuses' , 'oid' => 'fanStatusBit.0' , 'measured' => 'fan' , 'type' => 'fanStatusBit' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.6.0' ); + +$config[ 'mibs' ][$mib][ 'states' ][ 'LedStatus' ][ 1 ] = array( 'name' => 'on' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'LedStatus' ][ 2 ] = array( 'name' => 'off' , 'event' => 'ok' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'LedStatus' ][ 3 ] = array( 'name' => 'blink' , 'event' => 'warning' ); + +$config[ 'mibs' ][$mib][ 'states' ][ 'powerStatusBit' ][ 0 ] = array( 'name' => 'Power off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'powerStatusBit' ][ 1 ] = array( 'name' => 'Power B off' , 'event' => 'warning' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'powerStatusBit' ][ 2 ] = array( 'name' => 'Power A off' , 'event' => 'warning' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'powerStatusBit' ][ 3 ] = array( 'name' => 'ok' , 'event' => 'ok' ); + +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 0 ] = array( 'name' => 'Fans 1-4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 1 ] = array( 'name' => 'Fans 2-4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 2 ] = array( 'name' => 'Fans 1,3,4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 3 ] = array( 'name' => 'Fans 3,4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 4 ] = array( 'name' => 'Fans 1,2,4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 5 ] = array( 'name' => 'Fans 2,4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 6 ] = array( 'name' => 'Fans 1,4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 7 ] = array( 'name' => 'Fans 4 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 8 ] = array( 'name' => 'Fans 1-3 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 9 ] = array( 'name' => 'Fans 2,3 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 10 ] = array( 'name' => 'Fans 1,3 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 11 ] = array( 'name' => 'Fans 3 off' , 'event' => 'warning' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 12 ] = array( 'name' => 'Fans 1,2 off' , 'event' => 'alert' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 13 ] = array( 'name' => 'Fans 2 off' , 'event' => 'warning' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 14 ] = array( 'name' => 'Fans 1 off' , 'event' => 'warning' ); +$config[ 'mibs' ][$mib][ 'states' ][ 'fanStatusBit' ][ 15 ] = array( 'name' => 'All Fans on' , 'event' => 'ok' ); + +$mib = 'FD-SWITCH-MIB' ; +$config[ 'mibs' ][$mib][ 'enable' ] = 1 ; + //$config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.3459.1.3.2'; +$config[ 'mibs' ][$mib][ 'descr' ] = '' ; +$config[ 'mibs' ][$mib][ 'mib_dir' ] = 'cdata' ; + +$config[ 'mibs' ][$mib][ 'status' ][ 'switchMode' ][ 'indexes' ][ 0 ] = array( 'descr' => 'Device function operation switch type' , 'measured' => 'device' , 'type' => 'switchMode' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.1.1.0' ); // switchMode.0 = INTEGER: normal(3) +$config[ 'mibs' ][$mib][ 'status' ][ 'vlanMode' ][ 'indexes' ][ 0 ] = array( 'descr' => 'vlan mode' , 'measured' => 'device' , 'type' => 'OperSwitch' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.4.4.1.0' ); // vlanMode.0 = INTEGER: enable(1) +$config[ 'mibs' ][$mib][ 'status' ][ 'trunkBlance' ][ 'indexes' ][ 0 ] = array( 'descr' => 'Balance Mode in Trunks' , 'measured' => 'device' , 'type' => 'trunkBlance' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.5.1.1.0' ); // trunkBlance.0 = INTEGER: balanceMac(1) +$config[ 'mibs' ][$mib][ 'status' ][ 'rstpEnable' ][ 'indexes' ][ 0 ] = array( 'descr' => 'RSTP status' , 'measured' => 'device' , 'type' => 'OperSwitch' , 'oid_num' => '.1.3.6.1.4.1.34592.1.3.2.6.1.1.0' ); // rstpEnable.0 = INTEGER: disable(2) +$config[ 'mibs' ][$mib][ 'status' ][ 'igmpsnoopingAdmin' ][ 'indexes' ][ 0 ] = array( 'descr' => 'IGMP snooping status' , 'measured' => 'device' , 'type' => 'OperSwitch' , 'oid_num' => '1.3.6.1.4.1.34592.1.3.2.8.1' ); // igmpsnoopingAdmin.0 = INTEGER: enable(1) + +$config[ 'mibs' ][$mib][ 'states' ][ 'switchMode' ][ 1 ] = array( 'name' => 'sniDestinated' , 'event' => 'ok' ); // -- It is normal +$config[ 'mibs' ][$mib][ 'states' ][ 'switchMode' ][ 2 ] = array( 'name' => 'transparent' , 'event' => 'ok' ); // -- It is normal too +$config[ 'mibs' ][$mib][ 'states' ][ 'switchMode' ][ 3 ] = array( 'name' => 'normal' , 'event' => 'ok' ); // -- It is normal too + +$config[ 'mibs' ][$mib][ 'states' ][ 'OperSwitch' ][ 1 ] = array( 'name' => 'enable' , 'event' => 'ok' ); // -- It is normal +$config[ 'mibs' ][$mib][ 'states' ][ 'OperSwitch' ][ 2 ] = array( 'name' => 'disable' , 'event' => 'ok' ); // -- It is normal too + +$config[ 'mibs' ][$mib][ 'states' ][ 'trunkBlance' ][ 1 ] = array( 'name' => 'balanceMac' , 'event' => 'warning' ); // -- It is bad idea to use balanceMac +$config[ 'mibs' ][$mib][ 'states' ][ 'trunkBlance' ][ 2 ] = array( 'name' => 'balanceIp' , 'event' => 'ok' ); // -- not bad +$config[ 'mibs' ][$mib][ 'states' ][ 'trunkBlance' ][ 3 ] = array( 'name' => 'balanceL4Port' , 'event' => 'ok' ); // -- not bad +$config[ 'mibs' ][$mib][ 'states' ][ 'trunkBlance' ][ 4 ] = array( 'name' => 'balanceIpMac' , 'event' => 'ok' ); // -- better than not bad +$config[ 'mibs' ][$mib][ 'states' ][ 'trunkBlance' ][ 5 ] = array( 'name' => 'balanceL4PortMac' , 'event' => 'ok' ); // -- The best +$config[ 'mibs' ][$mib][ 'states' ][ 'trunkBlance' ][ 6 ] = array( 'name' => 'balanceInL2If' , 'event' => 'unknown' ); // -- unknown feature + + // Dell IDRAC-MIB-SMIv2   $mib = 'IDRAC-MIB-SMIv2' ; Index: includes/definitions/os.inc.php =================================================================== --- includes/definitions/os.inc.php (revision 8698 ) +++ includes/definitions/os.inc.php (working copy) @@ - 965 , 6 + 965 , 22 @@ //$config['os'][$os]['snmp']['max-rep'] = 2000; // Yep! This devices may have over 1000 ports. All tested devices support such max-rep value and huge improved polling time //$config['os'][$os]['mib_blacklist'][] = "ENTITY-SENSOR-MIB"; // ENTITY-MIB is huge here   + // C-Data +$os = "cdata-swe-pon" ; +$config[ 'os' ][$os][ 'vendor' ] = "cdata" ; +$config[ 'os' ][$os][ 'text' ] = "CDATA" ; +$config[ 'os' ][$os][ 'type' ] = "network" ; + //$config['os'][$os]['snmpable'][] = ".1.3.6.1.4.1.34592.1.3.1.1.2.0"; + //$config['os'][$os]['discovery_os'] = "cdata"; +$config[ 'os' ][$os][ 'discovery' ][] = array( + 'sysObjectID' => '.0.0' , + // 'sysDescr' => '/^$/', // empty + 'FD-SYSTEM-MIB::sysDesc.0' => '/.+/' , // non empty +); +$config[ 'os' ][$os][ 'mibs' ][] = "FD-SYSTEM-MIB" ; +$config[ 'os' ][$os][ 'mibs' ][] = "FD-SWITCH-MIB" ; +$config[ 'os' ][$os][ 'mib_dirs' ] = "cdata" ; + // Cisco   $os = "iosxr" ;

          includes/definitions/mibs.inc.php

          // C-data
          $mib = 'FD-SYSTEM-MIB';
           
          $config['mibs'][$mib]['status']['sysMajAlarmLed']['indexes'][0]    = array('descr' => 'Status of main card MAJ led', 'oid' => sysMajAlarmLed.0', 'measured' => '', 'type' => 'LedStatus', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.5.0');
          $config['mibs'][$mib]['status']['sysCriAlarmLed']['indexes'][0]    = array('descr' => 'Status of main card CRJ led', 'oid' => 'sysMajAlarmLed.0', 'measured' => '', 'type' => 'LedStatus', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.6.0');
           
          $config['mibs'][$mib]['status']['PowerStatusBit']['indexes'][0]    = array('class' => 'power', 'descr' => 'Power Statuses', 'oid' => 'PowerStatusBit.0', 'measured' => '', 'type' => 'powerStatusBit', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.5.0');
          $config['mibs'][$mib]['status']['fanStatusBit']['indexes'][0]      = array('descr' => 'Fan Statuses', 'oid' => 'fanStatusBit.0', 'measured' => 'fan', 'type' => 'fanStatusBit', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.6.0');
           
          $config['mibs'][$mib]['states']['LedStatus'][1] = array('name' => 'on',                    'event' => 'alert');
          $config['mibs'][$mib]['states']['LedStatus'][2] = array('name' => 'off',                   'event' => 'ok');
          $config['mibs'][$mib]['states']['LedStatus'][3] = array('name' => 'blink',                 'event' => 'warning');
           
          $config['mibs'][$mib]['states']['powerStatusBit'][0] = array('name' => 'Power off',        'event' => 'alert');
          $config['mibs'][$mib]['states']['powerStatusBit'][1] = array('name' => 'Power B off',      'event' => 'warning');
          $config['mibs'][$mib]['states']['powerStatusBit'][2] = array('name' => 'Power A off',      'event' => 'warning');
          $config['mibs'][$mib]['states']['powerStatusBit'][3] = array('name' => 'ok',               'event' => 'ok');
           
          $config['mibs'][$mib]['states']['fanStatusBit'][0]   = array('name' => 'Fans 1-4 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][1]   = array('name' => 'Fans 2-4 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][2]   = array('name' => 'Fans 1,3,4 off',   'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][3]   = array('name' => 'Fans 3,4 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][4]   = array('name' => 'Fans 1,2,4 off',   'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][5]   = array('name' => 'Fans 2,4 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][6]   = array('name' => 'Fans 1,4 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][7]   = array('name' => 'Fans 4 off',       'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][8]   = array('name' => 'Fans 1-3 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][9]   = array('name' => 'Fans 2,3 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][10]  = array('name' => 'Fans 1,3 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][11]  = array('name' => 'Fans 3 off',       'event' => 'warning');
          $config['mibs'][$mib]['states']['fanStatusBit'][12]  = array('name' => 'Fans 1,2 off',     'event' => 'alert');
          $config['mibs'][$mib]['states']['fanStatusBit'][13]  = array('name' => 'Fans 2 off',       'event' => 'warning');
          $config['mibs'][$mib]['states']['fanStatusBit'][14]  = array('name' => 'Fans 1 off',       'event' => 'warning');
          $config['mibs'][$mib]['states']['fanStatusBit'][15]  = array('name' => 'All Fans on',      'event' => 'ok');

          mtivi Martyushev Tim added a comment - includes/definitions/mibs.inc.php // C-data $mib = 'FD-SYSTEM-MIB';   $config['mibs'][$mib]['status']['sysMajAlarmLed']['indexes'][0] = array('descr' => 'Status of main card MAJ led', 'oid' => sysMajAlarmLed.0', 'measured' => '', 'type' => 'LedStatus', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.5.0'); $config['mibs'][$mib]['status']['sysCriAlarmLed']['indexes'][0] = array('descr' => 'Status of main card CRJ led', 'oid' => 'sysMajAlarmLed.0', 'measured' => '', 'type' => 'LedStatus', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.1.6.0');   $config['mibs'][$mib]['status']['PowerStatusBit']['indexes'][0] = array('class' => 'power', 'descr' => 'Power Statuses', 'oid' => 'PowerStatusBit.0', 'measured' => '', 'type' => 'powerStatusBit', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.5.0'); $config['mibs'][$mib]['status']['fanStatusBit']['indexes'][0] = array('descr' => 'Fan Statuses', 'oid' => 'fanStatusBit.0', 'measured' => 'fan', 'type' => 'fanStatusBit', 'oid_num' => '.1.3.6.1.4.1.34592.1.3.1.3.6.0');   $config['mibs'][$mib]['states']['LedStatus'][1] = array('name' => 'on', 'event' => 'alert'); $config['mibs'][$mib]['states']['LedStatus'][2] = array('name' => 'off', 'event' => 'ok'); $config['mibs'][$mib]['states']['LedStatus'][3] = array('name' => 'blink', 'event' => 'warning');   $config['mibs'][$mib]['states']['powerStatusBit'][0] = array('name' => 'Power off', 'event' => 'alert'); $config['mibs'][$mib]['states']['powerStatusBit'][1] = array('name' => 'Power B off', 'event' => 'warning'); $config['mibs'][$mib]['states']['powerStatusBit'][2] = array('name' => 'Power A off', 'event' => 'warning'); $config['mibs'][$mib]['states']['powerStatusBit'][3] = array('name' => 'ok', 'event' => 'ok');   $config['mibs'][$mib]['states']['fanStatusBit'][0] = array('name' => 'Fans 1-4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][1] = array('name' => 'Fans 2-4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][2] = array('name' => 'Fans 1,3,4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][3] = array('name' => 'Fans 3,4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][4] = array('name' => 'Fans 1,2,4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][5] = array('name' => 'Fans 2,4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][6] = array('name' => 'Fans 1,4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][7] = array('name' => 'Fans 4 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][8] = array('name' => 'Fans 1-3 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][9] = array('name' => 'Fans 2,3 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][10] = array('name' => 'Fans 1,3 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][11] = array('name' => 'Fans 3 off', 'event' => 'warning'); $config['mibs'][$mib]['states']['fanStatusBit'][12] = array('name' => 'Fans 1,2 off', 'event' => 'alert'); $config['mibs'][$mib]['states']['fanStatusBit'][13] = array('name' => 'Fans 2 off', 'event' => 'warning'); $config['mibs'][$mib]['states']['fanStatusBit'][14] = array('name' => 'Fans 1 off', 'event' => 'warning'); $config['mibs'][$mib]['states']['fanStatusBit'][15] = array('name' => 'All Fans on', 'event' => 'ok');

          Is there any way to discover and pool fan and power status like this?

          FD-SYSTEM-MIB::powerStatusBit.0 = Gauge32: 2
          FD-SYSTEM-MIB::fanStatusBit.0 = Gauge32: 15

          From MIB:

                          powerStatusBit OBJECT-TYPE
                                  SYNTAX Unsigned32
                                  MAX-ACCESS read-only
                                  STATUS current
                                  DESCRIPTION
                                          "Power status bit masks; 
                                          value & 1 == 1 indicating power A on else off
                                          value & 2 == 2 indicating power B on else off
                                          "
                                  ::= { chassisInfo 5 }
                          fanStatusBit OBJECT-TYPE
                                  SYNTAX Unsigned32
                                  MAX-ACCESS read-only
                                  STATUS current
                                  DESCRIPTION
                                          "Fan stauts bit masks
                                          value & 1 == 1 indicating fan 1 on else off
                                          value & 2 == 2 indicating fan 2 on else off
                                          value & 4 == 4 indicating fan 3 on else off
                                          value & 8 == 8 indicating fan 4 on else off"
                                  ::= { chassisInfo 6 }

          mtivi Martyushev Tim added a comment - Is there any way to discover and pool fan and power status like this? FD-SYSTEM-MIB::powerStatusBit.0 = Gauge32: 2 FD-SYSTEM-MIB::fanStatusBit.0 = Gauge32: 15 From MIB: powerStatusBit OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "Power status bit masks; value & 1 == 1 indicating power A on else off value & 2 == 2 indicating power B on else off " ::= { chassisInfo 5 } fanStatusBit OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "Fan stauts bit masks value & 1 == 1 indicating fan 1 on else off value & 2 == 2 indicating fan 2 on else off value & 4 == 4 indicating fan 3 on else off value & 8 == 8 indicating fan 4 on else off" ::= { chassisInfo 6 }

          People

            landy Mike Stupalov
            mtivi Martyushev Tim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: