mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: move more discovery into yaml files including compound discovery and regex
This commit is contained in:
committed by
Neil Lathwood
parent
d6e260fde6
commit
8936d9503b
@@ -6,6 +6,8 @@ over:
|
|||||||
- { graph: device_bits }
|
- { graph: device_bits }
|
||||||
- { graph: device_processor, text: 'CPU Usage' }
|
- { graph: device_processor, text: 'CPU Usage' }
|
||||||
icon: cisco
|
icon: cisco
|
||||||
|
discovery:
|
||||||
|
- { sysObjectId: .1.3.6.1.4.1.8072.3.2.10, sysDescr: 'Acano' }
|
||||||
poller_modules:
|
poller_modules:
|
||||||
cisco-cbqos: 1
|
cisco-cbqos: 1
|
||||||
cisco-cef: 1
|
cisco-cef: 1
|
||||||
|
|||||||
@@ -28,3 +28,8 @@ discovery_modules:
|
|||||||
cisco-pw: 1
|
cisco-pw: 1
|
||||||
cisco-vrf: 1
|
cisco-vrf: 1
|
||||||
cisco-vrf-lite: 1
|
cisco-vrf-lite: 1
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.9.1.1291
|
||||||
|
- sysDescr:
|
||||||
|
- 'Application Control Engine'
|
||||||
|
- 'Cisco Application Control Software'
|
||||||
|
|||||||
@@ -8,3 +8,6 @@ over:
|
|||||||
- { graph: device_bits, text: 'Device Traffic' }
|
- { graph: device_bits, text: 'Device Traffic' }
|
||||||
- { graph: device_processor, text: 'CPU Usage' }
|
- { graph: device_processor, text: 'CPU Usage' }
|
||||||
- { graph: device_mempool, text: 'Memory Usage' }
|
- { graph: device_mempool, text: 'Memory Usage' }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.664
|
||||||
|
- sysDescr: 'NetVanta'
|
||||||
|
|||||||
@@ -2,3 +2,5 @@ os: axiscam
|
|||||||
text: 'AXIS Network Camera'
|
text: 'AXIS Network Camera'
|
||||||
type: network
|
type: network
|
||||||
icon: axis
|
icon: axis
|
||||||
|
discovery:
|
||||||
|
- sysDescr_regex: '/AXIS .* (Network Camera|Video Server|Network Video Encoder)/'
|
||||||
|
|||||||
@@ -2,3 +2,5 @@ os: axisdocserver
|
|||||||
text: 'AXIS Network Document Server'
|
text: 'AXIS Network Document Server'
|
||||||
type: network
|
type: network
|
||||||
icon: axis
|
icon: axis
|
||||||
|
discovery:
|
||||||
|
- sysDescr_regex: '/^AXIS .* Network Document Server/'
|
||||||
|
|||||||
@@ -4,3 +4,5 @@ type: loadbalancer
|
|||||||
icon: barracuda
|
icon: barracuda
|
||||||
over:
|
over:
|
||||||
- { graph: device_bits, text: Traffic }
|
- { graph: device_bits, text: Traffic }
|
||||||
|
discovery:
|
||||||
|
- sysDescr: 'Barracuda Load Balancer'
|
||||||
|
|||||||
@@ -4,3 +4,5 @@ text: 'Brother Printer'
|
|||||||
type: printer
|
type: printer
|
||||||
over:
|
over:
|
||||||
- { graph: device_toner, text: Toner }
|
- { graph: device_toner, text: Toner }
|
||||||
|
discovery:
|
||||||
|
- sysDescr_regex: /Brother NC-.*(h|w),/
|
||||||
|
|||||||
@@ -4,3 +4,7 @@ type: network
|
|||||||
icon: hp
|
icon: hp
|
||||||
over:
|
over:
|
||||||
- { graph: device_bits, text: Traffic }
|
- { graph: device_bits, text: Traffic }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.25506.11.1
|
||||||
|
- sysDescr: Comware
|
||||||
|
- sysDescr_regex: '/HP [a-zA-Z0-9- ]+ Switch Software Version/'
|
||||||
|
|||||||
@@ -8,3 +8,8 @@ over:
|
|||||||
- { graph: device_toner, text: Toner }
|
- { graph: device_toner, text: Toner }
|
||||||
mib_dir:
|
mib_dir:
|
||||||
- dell
|
- dell
|
||||||
|
discovery:
|
||||||
|
- sysDescr:
|
||||||
|
- 'Dell Color Laser'
|
||||||
|
- 'Dell Laser Printer'
|
||||||
|
- sysDescr_regex: '/^Dell.*MFP/'
|
||||||
|
|||||||
@@ -6,3 +6,5 @@ over:
|
|||||||
- { graph: device_bits, text: 'Device Traffic' }
|
- { graph: device_bits, text: 'Device Traffic' }
|
||||||
mib_dir:
|
mib_dir:
|
||||||
- dell
|
- dell
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.10418.18.21.17
|
||||||
|
|||||||
@@ -2,3 +2,8 @@ os: dlinkap
|
|||||||
text: 'D-Link Access Point'
|
text: 'D-Link Access Point'
|
||||||
type: wireless
|
type: wireless
|
||||||
icon: dlink
|
icon: dlink
|
||||||
|
discovery:
|
||||||
|
- sysDescr:
|
||||||
|
- 'D-Link DAP-'
|
||||||
|
- 'D-Link Access Point'
|
||||||
|
- sysDescr_regex: '/D-Link .* AP/'
|
||||||
|
|||||||
@@ -4,3 +4,8 @@ icon: dell
|
|||||||
type: server
|
type: server
|
||||||
mib_dir:
|
mib_dir:
|
||||||
- dell
|
- dell
|
||||||
|
discovery:
|
||||||
|
- sysObjectId:
|
||||||
|
- .1.3.6.1.4.1.674.10892.2
|
||||||
|
- .1.3.6.1.4.1.674.10892.5
|
||||||
|
- sysDescr: 'Dell Out-of-band SNMP Agent for Remote Access Controller'
|
||||||
|
|||||||
@@ -6,3 +6,5 @@ mib_dir:
|
|||||||
- eaton
|
- eaton
|
||||||
over:
|
over:
|
||||||
- { graph: device_current, text: Current }
|
- { graph: device_current, text: Current }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.534.6.6.7
|
||||||
|
|||||||
@@ -8,3 +8,6 @@ over:
|
|||||||
- { graph: device_frequency, text: Frequencies }
|
- { graph: device_frequency, text: Frequencies }
|
||||||
mib_dir:
|
mib_dir:
|
||||||
- ups
|
- ups
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.534.
|
||||||
|
- sysDescr: 'Eaton 5P'
|
||||||
|
|||||||
@@ -5,3 +5,6 @@ over:
|
|||||||
- { graph: device_bits, text: 'Device Traffic' }
|
- { graph: device_bits, text: 'Device Traffic' }
|
||||||
icon: enterasys
|
icon: enterasys
|
||||||
ifname: 1
|
ifname: 1
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.5624.2.1
|
||||||
|
- sysDescr: 'Enterasys Networks'
|
||||||
|
|||||||
@@ -2,3 +2,5 @@ os: fiberhome
|
|||||||
text: Fiberhome
|
text: Fiberhome
|
||||||
type: network
|
type: network
|
||||||
icon: fiberhome
|
icon: fiberhome
|
||||||
|
discovery:
|
||||||
|
- sysDescr_regex: '/^AN5516-0[16]$/'
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ os: generex-ups
|
|||||||
text: 'Generex UPS SNMP adapter'
|
text: 'Generex UPS SNMP adapter'
|
||||||
type: power
|
type: power
|
||||||
icon: generex-ups
|
icon: generex-ups
|
||||||
|
discovery:
|
||||||
|
- { sysObjectId: .1.3.6.1.2.1.33, sysDescr: [CS121, CS141]}
|
||||||
discovery_modules:
|
discovery_modules:
|
||||||
storage: 0
|
storage: 0
|
||||||
bgp-peers: 0
|
bgp-peers: 0
|
||||||
|
|||||||
@@ -4,3 +4,25 @@ type: wireless
|
|||||||
icon: hp
|
icon: hp
|
||||||
over:
|
over:
|
||||||
- { graph: device_bits, text: Traffic }
|
- { graph: device_bits, text: Traffic }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId:
|
||||||
|
- .1.3.6.1.4.1.8744.1.40
|
||||||
|
- .1.3.6.1.4.1.8744.1.41
|
||||||
|
- .1.3.6.1.4.1.8744.1.42
|
||||||
|
- .1.3.6.1.4.1.8744.1.43
|
||||||
|
- .1.3.6.1.4.1.8744.1.44
|
||||||
|
- .1.3.6.1.4.1.8744.1.45
|
||||||
|
- .1.3.6.1.4.1.8744.1.46
|
||||||
|
- .1.3.6.1.4.1.8744.1.47
|
||||||
|
- .1.3.6.1.4.1.8744.1.48
|
||||||
|
- .1.3.6.1.4.1.8744.1.49
|
||||||
|
- .1.3.6.1.4.1.8744.1.50
|
||||||
|
- .1.3.6.1.4.1.8744.1.51
|
||||||
|
- .1.3.6.1.4.1.8744.1.52
|
||||||
|
- .1.3.6.1.4.1.8744.1.53
|
||||||
|
- .1.3.6.1.4.1.8744.1.54
|
||||||
|
- .1.3.6.1.4.1.8744.1.55
|
||||||
|
- .1.3.6.1.4.1.8744.1.56
|
||||||
|
- .1.3.6.1.4.1.8744.1.57
|
||||||
|
- .1.3.6.1.4.1.8744.1.59
|
||||||
|
- .1.3.6.1.4.1.8744.1.67
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ over:
|
|||||||
- { graph: device_bits, text: 'Device Traffic' }
|
- { graph: device_bits, text: 'Device Traffic' }
|
||||||
- { graph: device_processor, text: 'CPU Usage' }
|
- { graph: device_processor, text: 'CPU Usage' }
|
||||||
- { graph: device_mempool, text: 'Memory Usage' }
|
- { graph: device_mempool, text: 'Memory Usage' }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.2636
|
||||||
|
- sysDescr:
|
||||||
|
- 'kernel JUNOS'
|
||||||
|
- 'kernel Junos'
|
||||||
poller_modules:
|
poller_modules:
|
||||||
wifi: 0
|
wifi: 0
|
||||||
toner: 0
|
toner: 0
|
||||||
|
|||||||
@@ -4,3 +4,8 @@ type: server
|
|||||||
icon: apple
|
icon: apple
|
||||||
over:
|
over:
|
||||||
- { graph: device_bits, text: Traffic }
|
- { graph: device_bits, text: Traffic }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.8072.3.2.16
|
||||||
|
- sysDescr:
|
||||||
|
- 'Darwin Kernel Version 15'
|
||||||
|
- 'Darwin Kernel Version 16'
|
||||||
|
|||||||
@@ -6,3 +6,6 @@ bad_if:
|
|||||||
- cpu
|
- cpu
|
||||||
over:
|
over:
|
||||||
- { graph: device_bits, text: 'Device Traffic' }
|
- { graph: device_bits, text: 'Device Traffic' }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.4526
|
||||||
|
- sysDescr: ProSafe
|
||||||
|
|||||||
@@ -5,3 +5,6 @@ nobulk: 1
|
|||||||
type: power
|
type: power
|
||||||
over:
|
over:
|
||||||
- { graph: device_current, text: Current }
|
- { graph: device_current, text: Current }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.5491.6
|
||||||
|
- sysDescr_regex: '/^NetMan.*plus/'
|
||||||
@@ -7,3 +7,9 @@ over:
|
|||||||
- { graph: device_processor, text: 'CPU Usage' }
|
- { graph: device_processor, text: 'CPU Usage' }
|
||||||
- { graph: device_mempool, text: 'Memory Usage' }
|
- { graph: device_mempool, text: 'Memory Usage' }
|
||||||
icon: brocade
|
icon: brocade
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.1588.2.2.1.1
|
||||||
|
- sysDescr:
|
||||||
|
- 'Brocade VDX'
|
||||||
|
- 'BR-VDX'
|
||||||
|
- 'VDX67'
|
||||||
|
|||||||
@@ -7,3 +7,6 @@ processor_stacked: 1
|
|||||||
over:
|
over:
|
||||||
- { graph: device_processor, text: 'Processor Usage' }
|
- { graph: device_processor, text: 'Processor Usage' }
|
||||||
- { graph: device_ucd_memory, text: 'Memory Usage' }
|
- { graph: device_ucd_memory, text: 'Memory Usage' }
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.30155.23.1
|
||||||
|
- sysDescr: OpenBSD
|
||||||
|
|||||||
@@ -8,3 +8,12 @@ over:
|
|||||||
- { graph: device_mempool, text: 'Memory Usage' }
|
- { graph: device_mempool, text: 'Memory Usage' }
|
||||||
mib_dir:
|
mib_dir:
|
||||||
- hp
|
- hp
|
||||||
|
discovery:
|
||||||
|
- sysDescr:
|
||||||
|
- 'ProCurve'
|
||||||
|
- 'PROCURVE'
|
||||||
|
- 'HP 1820'
|
||||||
|
- sysDescr_regex:
|
||||||
|
- '/eCos-[0-9.]+/'
|
||||||
|
- '/HP(.+)2530(.+)/'
|
||||||
|
- '/HP(.+)54[0-1][2-6]R(.+)/'
|
||||||
|
|||||||
@@ -3,3 +3,6 @@ type: server
|
|||||||
text: 'Microsoft Windows'
|
text: 'Microsoft Windows'
|
||||||
ifname: 1
|
ifname: 1
|
||||||
processor_stacked: 1
|
processor_stacked: 1
|
||||||
|
discovery:
|
||||||
|
- sysObjectId: .1.3.6.1.4.1.311.1.1.3
|
||||||
|
- sysDescr: Windows
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.8072.3.2.10') && str_contains($sysDescr, 'Acano')) {
|
|
||||||
$os = 'acano';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('Application Control Engine', 'Cisco Application Control Software'))) {
|
|
||||||
$os = 'acsw';
|
|
||||||
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.9.1.1291')) {
|
|
||||||
$os = 'acsw';
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS ADTRAN AOS OS Discovery module
|
|
||||||
*
|
|
||||||
* Copyright (c) 2016 Chris A. Evans <thecityofguanyu@outlook.com>
|
|
||||||
*
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'NetVanta')) {
|
|
||||||
$os = 'adtran-aos';
|
|
||||||
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.664')) {
|
|
||||||
$os = 'adtran-aos';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (preg_match('/AXIS .* (Network Camera|Video Server|Network Video Encoder)/', $sysDescr)) {
|
|
||||||
$os = 'axiscam';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (preg_match('/^AXIS .* Network Document Server/', $sysDescr)) {
|
|
||||||
$os = 'axisdocserver';
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS Barracuda OS information module
|
|
||||||
*
|
|
||||||
* Copyright (c) 2015 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('Barracuda Load Balancer', 'Barracuda Load Balancer ADC'), true)) {
|
|
||||||
$os = 'barracudaloadbalancer';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (preg_match('/Brother NC-.*(h|w),/', $sysDescr)) {
|
|
||||||
$os = 'brother';
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS Cisco wireless controller OS detection module
|
|
||||||
*
|
|
||||||
* Copyright (c) 2016 Tuomas Riihimäki <tuomari@iudex.fi>
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'Cisco Controller')) {
|
|
||||||
$os = 'ciscowlc';
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'Comware')) {
|
|
||||||
$os = 'comware';
|
|
||||||
} elseif (preg_match('/HP [a-zA-Z0-9- ]+ Switch Software Version/', $sysDescr)) {
|
|
||||||
$os = 'comware';
|
|
||||||
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.25506.11.1')) {
|
|
||||||
$os = 'comware';
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS
|
|
||||||
*
|
|
||||||
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'Deliberant')) {
|
|
||||||
$os = 'deliberant';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('Dell Color Laser', 'Dell Laser Printer'))) {
|
|
||||||
$os = 'dell-laser';
|
|
||||||
} elseif (preg_match('/^Dell.*MFP/', $sysDescr)) {
|
|
||||||
$os = 'dell-laser';
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* dell-rcs.inc.php
|
|
||||||
*
|
|
||||||
* LibreNMS os discovery module for Dell Remote Console
|
|
||||||
*
|
|
||||||
* 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 2016 Neil Lathwood
|
|
||||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.10418.18.21.17')) {
|
|
||||||
$os = 'dell-rcs';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (preg_match('/D-Link .* AP/', $sysDescr)) {
|
|
||||||
$os = 'dlinkap';
|
|
||||||
} elseif (str_contains($sysDescr, array('D-Link DAP-', 'D-Link Access Point'))) {
|
|
||||||
$os = 'dlinkap';
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// DRAC5, iDRAC6 - 1.3.6.1.4.1.674.10892.2
|
|
||||||
// iDRAC7, iDRAC8 - 1.3.6.1.4.1.674.10892.5
|
|
||||||
if (str_contains($sysDescr, 'Dell Out-of-band SNMP Agent for Remote Access Controller') ||
|
|
||||||
starts_with($sysObjectId, array('.1.3.6.1.4.1.674.10892.2', '.1.3.6.1.4.1.674.10892.5'))) {
|
|
||||||
$os = 'drac';
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS
|
|
||||||
*
|
|
||||||
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.534.6.6.7')) {
|
|
||||||
$os = 'eatonpdu';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
// Eaton UPS
|
|
||||||
if (starts_with($sysDescr, 'Eaton 5P') || starts_with($sysObjectId, '.1.3.6.1.4.1.534.')) {
|
|
||||||
$os = 'eatonups';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysDescr, 'Enterasys Networks')) {
|
|
||||||
$os = 'enterasys';
|
|
||||||
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.5624.2.1')) {
|
|
||||||
$os = 'enterasys';
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Supported Devides List
|
|
||||||
* OLT AN5516-06
|
|
||||||
* OLT AN5516-01
|
|
||||||
*/
|
|
||||||
if (preg_match('/^AN5516-0[16]$/', $sysDescr)) {
|
|
||||||
$os = "fiberhome";
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('CS121', 'CS141')) && str_contains($sysObjectId, '.1.3.6.1.2.1.33')) {
|
|
||||||
$os = 'generex-ups';
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS
|
|
||||||
*
|
|
||||||
* Copyright (c) 2015 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.8744.1')) {
|
|
||||||
$split_oid = explode('.', $sysObjectId);
|
|
||||||
$model_oid = $split_oid[count($split_oid)-1];
|
|
||||||
if ($model_oid >= 40 && $model_oid < 60 || $model_oid = 67) {
|
|
||||||
$os = 'hpmsm';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'IronWare')) {
|
|
||||||
$os = 'ironware';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.2636')) {
|
|
||||||
$os = 'junos';
|
|
||||||
} elseif (str_contains($sysDescr, 'kernel JUNOS', true)) {
|
|
||||||
$os = 'junos';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.8239.1.2.9')) {
|
|
||||||
$os = 'jwos';
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* lcos.inc.php
|
|
||||||
*
|
|
||||||
* LibreNMS os discovery module for Lancom
|
|
||||||
*
|
|
||||||
* 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 2016 Neil Lathwood
|
|
||||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
|
||||||
*/
|
|
||||||
|
|
||||||
$lcos_oids = array(
|
|
||||||
'.1.3.6.1.4.1.2356.11.8.103',
|
|
||||||
'.1.3.6.1.4.1.2356.600.6.310',
|
|
||||||
);
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, $lcos_oids)) {
|
|
||||||
$os = 'lcos';
|
|
||||||
}
|
|
||||||
|
|
||||||
unset($lcos_oids);
|
|
||||||
@@ -9,6 +9,7 @@ $skip_oids = array(
|
|||||||
'.1.3.6.1.4.1.7779.', // nios
|
'.1.3.6.1.4.1.7779.', // nios
|
||||||
'.1.3.6.1.4.1.9.1.1348', // Cisco Unified Communications Manager
|
'.1.3.6.1.4.1.9.1.1348', // Cisco Unified Communications Manager
|
||||||
'.1.3.6.1.4.1.3375.2.1', // F5
|
'.1.3.6.1.4.1.3375.2.1', // F5
|
||||||
|
'.1.3.6.1.4.1.534.', // Eaton
|
||||||
);
|
);
|
||||||
|
|
||||||
if (starts_with($sysDescr, 'Linux') && !starts_with($sysObjectId, $skip_oids)) {
|
if (starts_with($sysDescr, 'Linux') && !starts_with($sysObjectId, $skip_oids)) {
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* LibreNMS
|
|
||||||
*
|
|
||||||
* Copyright (c) 2015 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
|
||||||
* 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. Please see LICENSE.txt at the top level of
|
|
||||||
* the source code distribution for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.8072.3.2.16') || str_contains($sysDescr, array('Darwin Kernel Version 15', 'Darwin Kernel Version 16'))) {
|
|
||||||
$os = 'macosx';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'ProSafe')) {
|
|
||||||
$os = 'netgear';
|
|
||||||
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.4526')) {
|
|
||||||
$os = 'netgear';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysDescr, 'NetMan') && str_contains($sysDescr, 'plus')) {
|
|
||||||
$os = 'netmanplus';
|
|
||||||
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.5491.6')) {
|
|
||||||
$os = 'netmanplus';
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
$nos_objectid = array(
|
|
||||||
'.1.3.6.1.4.1.1588.2.2.1.1',
|
|
||||||
);
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('Brocade VDX', 'BR-VDX', 'VDX67'))) {
|
|
||||||
$os = 'nos';
|
|
||||||
} elseif (starts_with($sysObjectId, $nos_objectid)) {
|
|
||||||
$os = 'nos';
|
|
||||||
}
|
|
||||||
|
|
||||||
unset($nos_objectid);
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.30155.23.1') || str_contains($sysDescr, 'OpenBSD')) {
|
|
||||||
$os = 'openbsd';
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('ProCurve', 'HP 1820'), true)) {
|
|
||||||
$os = 'procurve';
|
|
||||||
} elseif (preg_match('/eCos-[0-9.]+/', $sysDescr)) {
|
|
||||||
$os = 'procurve';
|
|
||||||
} elseif (preg_match('/HP(.+)2530(.+)/', $sysDescr)) {
|
|
||||||
$os = 'procurve';
|
|
||||||
} elseif (preg_match('/HP(.+)54[0-1][2-6]R(.+)/', $sysDescr)) {
|
|
||||||
$os = 'procurve';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.8886')) {
|
|
||||||
$os = 'raisecom';
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.311.1.1.3')) {
|
|
||||||
$os = 'windows';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('Windows'))) {
|
|
||||||
$os = 'windows';
|
|
||||||
}
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
1.3.6.1.2.1.1.1.0|4|"CS121 v 5.14.50"
|
1.3.6.1.2.1.1.1.0|4|"CS121 v 5.14.50"
|
||||||
1.3.6.1.2.1.1.2.0|4|.1.3.6.1.2.1.33
|
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.2.1.33
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
1.3.6.1.2.1.1.1.0|4|CS121
|
1.3.6.1.2.1.1.1.0|4|CS121
|
||||||
1.3.6.1.2.1.1.2.0|4|.1.3.6.1.2.1.33
|
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.2.1.33
|
||||||
1.3.6.1.2.1.33.1.1.1.0|4|Multimatic
|
1.3.6.1.2.1.33.1.1.1.0|4|Multimatic
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
1.3.6.1.2.1.1.1.0|4|CS121
|
1.3.6.1.2.1.1.1.0|4|CS121
|
||||||
1.3.6.1.2.1.1.2.0|4|.1.3.6.1.2.1.33
|
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.2.1.33
|
||||||
1.3.6.1.2.1.33.1.1.1.0|4|S2S
|
1.3.6.1.2.1.33.1.1.1.0|4|S2S
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8744.1
|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8744.1.50
|
||||||
|
|||||||
Reference in New Issue
Block a user