mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add OPNsense support (#8199)
* Add OPNsense support * Add OPNsense support (#8196) * Revert unix.inc.php, move polling to opnsense.inc.php * Revert unix.inc.php * Update opnsense.inc.php
This commit is contained in:
BIN
html/images/os/opnsense.png
Executable file
BIN
html/images/os/opnsense.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
11
includes/definitions/opnsense.yaml
Normal file
11
includes/definitions/opnsense.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
os: opnsense
|
||||
type: firewall
|
||||
group: unix
|
||||
text: OPNsense
|
||||
processor_stacked: 1
|
||||
over:
|
||||
- { graph: device_processor, text: 'Processor Usage' }
|
||||
- { graph: device_ucd_memory, text: 'Memory Usage' }
|
||||
discovery:
|
||||
- sysDescr:
|
||||
- OPNsense
|
28
includes/polling/os/opnsense.inc.php
Normal file
28
includes/polling/os/opnsense.inc.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* opnsense.inc.php
|
||||
*
|
||||
* LibreNMS os polling module for OPNsense firewall
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2018 Ben Gibbons
|
||||
* @author Ben Gibbons <axemann@gmail.com>
|
||||
*/
|
||||
|
||||
$output = preg_split("/ /", $device['sysDescr']);
|
||||
$version = $output[2];
|
||||
$hardware = $output[6];
|
2
tests/snmpsim/opnsense.snmprec
Normal file
2
tests/snmpsim/opnsense.snmprec
Normal file
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|OPNsense OPNsense.7p.lan 18.1.1-a5575d7bd OPNsense FreeBSD 11.1-RELEASE-p6 amd64
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.12325.1.1.2.1.1
|
Reference in New Issue
Block a user