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:
axemann
2018-02-07 23:17:35 -06:00
committed by Tony Murray
parent bfcc15aaa8
commit f6cc671bb0
4 changed files with 41 additions and 0 deletions

BIN
html/images/os/opnsense.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View 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

View 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];

View 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