mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Cisco enhanced cellular (#12463)
* Cisco enhanced cellular support * Extra sensors, camelcasing and bugfixes * Doc update * German translation * French translation * Style fixes * Style changes * Style changes * Style changes * Style changes * Style changes * Added test data * New test data --variant * New test data --variant ir1101 * Made the new wireless sensors generic * Added test data for ios variant ir809 * Fix includes/discovery/sensors/count/cisco.inc.php, thanks PipoCanaja * Moved cellular operating band from Wireless sensors to count sensor * test data * test data * test data * test data * Moved ICCID/IMSI/IMEI to inventory * test data and style fix * Cellular state sensors now have a group Co-authored-by: Maikel de Boer <mdb@tampnet.com>
This commit is contained in:
committed by
GitHub
parent
f5a0959181
commit
0a8f24c5b1
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* WirelessCellDiscovery.php
|
||||
*
|
||||
* Discover Wireless Cell in cell number. Type is cell.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @link http://librenms.org
|
||||
* @copyright 2021 Janno Schouwenburg
|
||||
* @author Janno Schouwenburg <handel@janno.com>
|
||||
*/
|
||||
|
||||
namespace LibreNMS\Interfaces\Discovery\Sensors;
|
||||
|
||||
interface WirelessCellDiscovery
|
||||
{
|
||||
/**
|
||||
* Discover Wireless Cell in cell number. Type is cell.
|
||||
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function discoverWirelessCell();
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* WirelessChannelDiscovery.php
|
||||
*
|
||||
* Discover Wireless channel in channel number. Type is channel.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @link http://librenms.org
|
||||
* @copyright 2021 Janno Schouwenburg
|
||||
* @author Janno Schouwenburg <handel@janno.com>
|
||||
*/
|
||||
|
||||
namespace LibreNMS\Interfaces\Discovery\Sensors;
|
||||
|
||||
interface WirelessChannelDiscovery
|
||||
{
|
||||
/**
|
||||
* Discover Wireless channel in channel number. Type is channel.
|
||||
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
|
||||
*
|
||||
* @return array Sensors
|
||||
*/
|
||||
public function discoverWirelessChannel();
|
||||
}
|
37
LibreNMS/Interfaces/Polling/Sensors/WirelessCellPolling.php
Normal file
37
LibreNMS/Interfaces/Polling/Sensors/WirelessCellPolling.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* WirelessCellPolling.php
|
||||
*
|
||||
* Custom polling interface for Wireless Cell. Type is cell.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @link http://librenms.org
|
||||
* @copyright 2021 Janno Schouwenburg
|
||||
* @author Janno Schouwenburg <handel@janno.com>
|
||||
*/
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Sensors;
|
||||
|
||||
interface WirelessCellPolling
|
||||
{
|
||||
/**
|
||||
* Poll wireless Cellular Cell. Type is cell.
|
||||
* The returned array should be sensor_id => value pairs
|
||||
*
|
||||
* @param array $sensors Array of sensors needed to be polled
|
||||
* @return array of polled data
|
||||
*/
|
||||
public function pollWirelessCell(array $sensors);
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* WirelessChannelPolling.php
|
||||
*
|
||||
* Custom polling interface for Wireless Channel. Type is channel.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @link http://librenms.org
|
||||
* @copyright 2021 Janno Schouwenburg
|
||||
* @author Janno Schouwenburg <handel@janno.com>
|
||||
*/
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Sensors;
|
||||
|
||||
interface WirelessChannelPolling
|
||||
{
|
||||
/**
|
||||
* Poll Wireless Channel. Type is channel.
|
||||
* The returned array should be sensor_id => value pairs
|
||||
*
|
||||
* @param array $sensors Array of sensors needed to be polled
|
||||
* @return array of polled data
|
||||
*/
|
||||
public function pollWirelessChannel(array $sensors);
|
||||
}
|
Reference in New Issue
Block a user