newdevice: Added support for Cisco Callmanager

newdevice: Added support for Cisco Callmanager
This commit is contained in:
Neil Lathwood
2016-09-18 19:57:25 +01:00
committed by GitHub
5 changed files with 47 additions and 0 deletions
+11
View File
@@ -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';
+17
View File
@@ -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';
}
}
+1
View File
@@ -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)) {
+13
View File
@@ -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');
+5
View File
@@ -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');