Skip to content

Commit

Permalink
newdevice: Added basic Cisco SCE detection (#6666)
Browse files Browse the repository at this point in the history
* newdevice: Basic Cisco SCE Support

fix #6630

* add os polling

* add group
  • Loading branch information
Rosiak authored and laf committed May 17, 2017
1 parent 8252553 commit b06176a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
36 changes: 36 additions & 0 deletions includes/definitions/ciscosce.yaml
@@ -0,0 +1,36 @@
os: ciscosce
group: cisco
text: 'Cisco SCE'
type: network
ifname: 1
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
icon: cisco
poller_modules:
bgp-peers: 0
cisco-cbqos: 0
cisco-cef: 0
cisco-mac-accounting: 0
cisco-voice: 0
cisco-remote-access-monitor: 0
cisco-sla: 0
cisco-ipsec-flow-monitor: 0
cipsec-tunnels: 0
cisco-otv: 0
ospf: 0
wireless: 0
discovery_modules:
cisco-cef: 0
cisco-sla: 0
cisco-mac-accounting: 0
cisco-otv: 0
cisco-pw: 0
cisco-vrf: 0
cisco-vrf-lite: 0
mib_dir:
- cisco
discovery:
- sysDescr:
- Cisco Service Control
15 changes: 15 additions & 0 deletions includes/polling/os/ciscosce.inc.php
@@ -0,0 +1,15 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2017 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.
*/

$explodeddata = explode(" ", $poll_device['sysDescr']);
$version = $explodeddata['6'];
$hardware = $explodeddata['11'];
2 changes: 2 additions & 0 deletions tests/snmpsim/ciscosce.snmprec
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Cisco Service Control, SW version: Version 5.2.0 Build 112, HW version: SCE8000 2x10GBE
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.9.1.913

0 comments on commit b06176a

Please sign in to comment.