mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added support for Cisco Callmanager
newdevice: Added support for Cisco Callmanager
This commit is contained in:
@@ -692,6 +692,17 @@ $config['os'][$os]['over'][1]['text'] = 'CPU Usage';
|
||||
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
|
||||
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
|
||||
|
||||
$os = 'cucm';
|
||||
$config['os'][$os]['text'] = 'Cisco Unified Communications Manager';
|
||||
$config['os'][$os]['type'] = 'tele';
|
||||
$config['os'][$os]['icon'] = 'cisco';
|
||||
$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'] = 'CPU Usage';
|
||||
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
|
||||
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
|
||||
|
||||
// Brocade NOS
|
||||
$os = 'nos';
|
||||
$config['os'][$os]['text'] = 'Brocade NOS';
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Søren Friis Rosiak <[email protected]>
|
||||
* 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 (!$os) {
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.9.1.1348')) {
|
||||
$os = 'cucm';
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ if (!$os) {
|
||||
'.1.3.6.1.4.1.17713.21',
|
||||
'.1.3.6.1.4.1.2.3.51.3',
|
||||
'.1.3.6.1.4.1.7779.', // nios
|
||||
'.1.3.6.1.4.1.9.1.1348' // Cisco Unified Communications Manager
|
||||
);
|
||||
|
||||
if (starts_with($sysDescr, 'Linux') && !starts_with($sysObjectId, $skip_oids)) {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Søren Friis Rosiak <[email protected]>
|
||||
* 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.
|
||||
*/
|
||||
|
||||
$hardware = snmp_get($device, 'sysObjectID.0', '-Osqv', 'SNMPv2-MIB:CISCO-PRODUCTS-MIB');
|
||||
@@ -94,6 +94,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('ciscosmblinux', 'Linux Cisco Small Business');
|
||||
}
|
||||
|
||||
public function testCucm()
|
||||
{
|
||||
$this->checkOS('cucm', 'Something that we do not have', '.1.3.6.1.4.1.9.1.1348');
|
||||
}
|
||||
|
||||
public function testCumulus()
|
||||
{
|
||||
$this->checkOS('cumulus', 'Linux', '.1.3.6.1.4.1.40310');
|
||||
|
||||
Reference in New Issue
Block a user