mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added basic detection for packetlogic devices
This commit is contained in:
@@ -140,6 +140,18 @@ $config['os'][$os]['over'][1]['text'] = "Processor Usage";
|
|||||||
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
|
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
|
||||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||||
|
|
||||||
|
$os = "procera";
|
||||||
|
$onfig['os'][$os]['type'] = "server";
|
||||||
|
$config['os'][$os]['group'] = "unix";
|
||||||
|
$config['os'][$os]['text'] = "Procera Networks";
|
||||||
|
$config['os'][$os]['icon'] = "linux";
|
||||||
|
$config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||||
|
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||||
|
$config['os'][$os]['over'][1]['graph'] = "device_processor";
|
||||||
|
$config['os'][$os]['over'][1]['text'] = "Processor Usage";
|
||||||
|
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
|
||||||
|
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||||
|
|
||||||
// Other Unix-based OSes here please.
|
// Other Unix-based OSes here please.
|
||||||
|
|
||||||
$os = "freebsd";
|
$os = "freebsd";
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ if (!$os)
|
|||||||
elseif (strstr($sysDescr, "endian")) { $os = "endian"; }
|
elseif (strstr($sysDescr, "endian")) { $os = "endian"; }
|
||||||
elseif (preg_match("/Cisco Small Business/", $sysDescr)) { $os = "ciscosmblinux"; }
|
elseif (preg_match("/Cisco Small Business/", $sysDescr)) { $os = "ciscosmblinux"; }
|
||||||
elseif (strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap"; }
|
elseif (strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap"; }
|
||||||
|
elseif (stristr($sysObjectId, "packetlogic")) { $os = "procera"; }
|
||||||
elseif (strstr($sysObjectId, ".1.3.6.1.4.1.10002.1") || strstr($sysObjectId, ".1.3.6.1.4.1.41112.1.4") || strpos(trim(snmp_get($device, "dot11manufacturerName.5", "-Osqnv", "IEEE802dot11-MIB")), "Ubiquiti") !== FALSE)
|
elseif (strstr($sysObjectId, ".1.3.6.1.4.1.10002.1") || strstr($sysObjectId, ".1.3.6.1.4.1.41112.1.4") || strpos(trim(snmp_get($device, "dot11manufacturerName.5", "-Osqnv", "IEEE802dot11-MIB")), "Ubiquiti") !== FALSE)
|
||||||
{
|
{
|
||||||
$os = "airos";
|
$os = "airos";
|
||||||
|
|||||||
18
includes/polling/os/procera.inc..php
Normal file
18
includes/polling/os/procera.inc..php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* LibreNMS
|
||||||
|
*
|
||||||
|
* Copyright (c) 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
|
||||||
|
*
|
||||||
|
* 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 (stristr($poll_device['sysObjectID'], "packetlogic")) {
|
||||||
|
$version = "PacketLogic";
|
||||||
|
$hardware = "PacketLogic";
|
||||||
|
}
|
||||||
11904
mibs/PACKETLOGIC-MIB
Normal file
11904
mibs/PACKETLOGIC-MIB
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user