Files
librenms-librenms/includes/polling/mib/siklu-mib.inc.php
Neil Lathwood fad5aca1b7 feature: Allow customisation of rrd step/heartbeat when creating new rrd files (#5947)
* feature: Allow customisation of rrd step/heartbeat when creating new rrd files

* revert defaults

* added docs + webui config option

* Move RrdDefinition to an Object to make them easier to create and remove the possibility of typos.

* Fix style/lint issues and missing use statements

* 3 more missing use statements

* updated doc + moved schema file
2017-02-23 22:45:50 +00:00

120 lines
2.5 KiB
PHP

<?php
echo ' Siklu Wireless ';
$mib_oids = array(
'rfAverageRssi' => array(
'1',
'rfAverageRssi',
'Signal Strength',
'GAUGE',
),
'rfAverageCinr' => array(
'1',
'rfAverageCinr',
'Signal to noise ratio',
'GAUGE',
),
'rfOperationalFrequency' => array(
'1',
'rfOperFreq',
'Operational Frequency',
'GAUGE',
),
);
$mib_graphs = array(
'siklu_rfAverageRssi',
'siklu_rfAverageCinr',
'siklu_rfOperationalFrequency',
);
unset($graph, $oids, $oid);
poll_mib_def($device, 'RADIO-BRIDGE-MIB:siklu-wireless', 'siklu', $mib_oids, $mib_graphs, $graphs);
// Poll interface statistics
$mib_oids = array(
'rfInPkts' => array(
'1',
'rfInPkts',
'In Packets',
'DERIVE',
array('min' => 0, 'max' => 12500000000),
),
'rfOutPkts' => array(
'1',
'rfOutPkts',
'Out Packets',
'DERIVE',
array('min' => 0, 'max' => 12500000000),
),
'rfInGoodPkts' => array(
'1',
'rfInGoodPkts',
'Good Packets',
'DERIVE',
),
'rfInErroredPkts' => array(
'1',
'rfInErroredPkts',
'Errored Packets',
'DERIVE',
),
'rfInLostPkts' => array(
'1',
'rfInLostPkts',
'Lost Packets',
'DERIVE',
),
'rfInOctets' => array(
'1',
'rfInOctets',
'In Packets',
'DERIVE',
array('min' => 0, 'max' => 12500000000),
),
'rfOutOctets' => array(
'1',
'rfOutOctets',
'Out Packets',
'DERIVE',
array('min' => 0, 'max' => 12500000000),
),
'rfInGoodOctets' => array(
'1',
'rfInGoodOctets',
'Good Packets',
'DERIVE',
),
'rfInErroredOctets' => array(
'1',
'rfInErroredOctets',
'Errored Packets',
'DERIVE',
),
'rfInIdleOctets' => array(
'1',
'rfInIdleOctets',
'Lost Packets',
'DERIVE',
),
'rfOutIdleOctets' => array(
'1',
'rfOutIdleOctets',
'Lost Packets',
'DERIVE',
),
);
$mib_graphs = array(
'siklu_rfinterfacePkts',
'siklu_rfinterfaceOtherPkts',
'siklu_rfinterfaceOctets',
'siklu_rfinterfaceOtherOctets',
);
unset($graph, $oids, $oid);
poll_mib_def($device, 'RADIO-BRIDGE-MIB:siklu-interface', 'siklu', $mib_oids, $mib_graphs, $graphs);