Added support for PBI Digital Decoder (#9223)

* added PBI MIB

I finally found a MIB for PBI device

* added PBI-MAIN-MIB

* added another PBI MIB

* added PBI MGSYSTEM-MIB

* added ird.yaml to definition

* added senors discovery for PBI devices

* added ird.inc.php for polling

* added logo for PBI

* added ird.json

* Rename PB-MAIN-MIB to PBI-MAIN-MIB

* Update ird.json

* Update PBI-4000P-5000P-MIB

* Update PBI-MAIN-MIB

* Update PBI-MGSIGNALCHARACTERISTICS-MIB

* Update PBI-MGSYSTEM-MIB

* Create ird.snmprec

* Updated json test file

* deleted frequency from yaml

I think that better will be see values from frequency in wirelles frequency, where it is in MHz

* Create Ird.php

* Update Ird.php

* Update Ird.php

* Update ird.json

* Update Ird.php
This commit is contained in:
jozefrebjak
2018-10-01 04:28:33 +02:00
committed by Tony Murray
parent 56481c6681
commit c9bbaf5a9f
11 changed files with 3324 additions and 0 deletions

33
LibreNMS/OS/Ird.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
namespace LibreNMS\OS;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
use LibreNMS\OS;
class Ird extends OS implements WirelessFrequencyDiscovery
{
public function discoverWirelessFrequency()
{
$lnbfrequency_oid = '.1.3.6.1.4.1.1070.3.1.1.104.3.1.0'; //lnbFrequency
$satfrequency_oid = '.1.3.6.1.4.1.1070.3.1.1.104.3.2.0'; //satFrequency
return array(
new WirelessSensor(
'frequency',
$this->getDeviceId(),
$lnbfrequency_oid,
'lnbfrequency',
1,
'LNB Frequency'
),
new WirelessSensor(
'frequency',
$this->getDeviceId(),
$satfrequency_oid,
'satfrequency',
1,
'Satellite Frequency'
),
);
}
}