Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Device: Bluecat Networks appliances #9758

Merged
merged 4 commits into from Feb 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bootstrap/cache/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
*
!.gitignore
Binary file added html/images/logos/bcn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/os/bcn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions includes/definitions/bluecatnetworks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
os: bluecatnetworks
text: 'Bluecat Networks'
type: appliance
icon: bcn
nobulk: true
mib_dir:
- bluecatnetworks
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.13315.2.
78 changes: 78 additions & 0 deletions includes/definitions/discovery/bluecatnetworks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
mib: BCN-HA-MIB:BCN-DHCPV4-MIB:BCN-DNS-MIB:BCN-NTP-MIB
modules:
sensors:
state:
data:
-
oid: BCN-HA-MIB:bcnHaServiceStatus
value: bcnHaSerOperState
num_oid: '.1.3.6.1.4.1.13315.3.1.5.2.1.1.{{ $index }}'
descr: HA Status
group: HA Cluster Status
index: 'bcnHaSerOperState.{{ $index }}'
state_name: bcnHaSerOperState
states:
- { value: 1, generic: 0, graph: 0, descr: 'standalone' }
- { value: 2, generic: 0, graph: 0, descr: 'active' }
- { value: 3, generic: 0, graph: 0, descr: 'passive' }
- { value: 4, generic: 1, graph: 0, descr: 'stopped' }
- { value: 5, generic: 1, graph: 0, descr: 'stopping' }
- { value: 6, generic: 0, graph: 0, descr: 'becomingActive' }
- { value: 7, generic: 0, graph: 0, descr: 'becomingPassive' }
- { value: 8, generic: 2, graph: 0, descr: 'fault' }
-
oid: BCN-HA-MIB:bcnHaServiceStatus
value: bcnHaSerReplicationState
num_oid: '.1.3.6.1.4.1.13315.3.1.5.2.1.2.{{ $index }}'
descr: Replication Status
group: HA Cluster Status
index: 'bcnHaSerReplicationState.{{ $index }}'
state_name: bcnHaSerReplicationState
states:
- { value: 1, generic: 0, graph: 0, descr: 'notConfigured' }
- { value: 2, generic: 1, graph: 0, descr: 'replicating' }
- { value: 3, generic: 0, graph: 0, descr: 'synchronized' }
-
oid: BCN-DHCPV4-MIB:bcnDhcpv4ServiceStatus
value: bcnDhcpv4SerOperState
num_oid: '.1.3.6.1.4.1.13315.3.1.1.2.1.1.{{ $index }}'
descr: DHCP Status
group: HA Services Status
index: 'bcnDhcpv4SerOperState.{{ $index }}'
state_name: bcnDhcpv4SerOperState
states:
- { value: 1, generic: 0, graph: 0, descr: 'running' }
- { value: 2, generic: 0, graph: 0, descr: 'notRunning' }
- { value: 3, generic: 1, graph: 0, descr: 'starting' }
- { value: 4, generic: 1, graph: 0, descr: 'stopping' }
- { value: 5, generic: 2, graph: 0, descr: 'stopped' }
- { value: 6, generic: 2, graph: 0, descr: 'fault' }
-
oid: BCN-DNS-MIB:bcnDnsServiceStatus
value: bcnDnsSerOperState
num_oid: '.1.3.6.1.4.1.13315.3.1.2.2.1.1.{{ $index }}'
descr: DNS Status
group: HA Services Status
index: 'bcnDnsSerOperState.{{ $index }}'
state_name: bcnDnsSerOperState
states:
- { value: 1, generic: 0, graph: 0, descr: 'running' }
- { value: 2, generic: 0, graph: 0, descr: 'notRunning' }
- { value: 3, generic: 1, graph: 0, descr: 'starting' }
- { value: 4, generic: 1, graph: 0, descr: 'stopping' }
- { value: 5, generic: 2, graph: 0, descr: 'stopped' }
-
oid: BCN-NTP-MIB:bcnNtpServiceStatus
value: bcnNtpSerOperState
num_oid: '.1.3.6.1.4.1.13315.3.1.2.2.1.1.{{ $index }}'
descr: NTP Status
group: HA Services Status
index: 'bcnNtpSerOperState.{{ $index }}'
state_name: bcnNtpSerOperState
states:
- { value: 1, generic: 0, graph: 0, descr: 'running' }
- { value: 2, generic: 0, graph: 0, descr: 'notRunning' }
- { value: 3, generic: 1, graph: 0, descr: 'starting' }
- { value: 4, generic: 1, graph: 0, descr: 'stopping' }
- { value: 5, generic: 2, graph: 0, descr: 'stopped' }

11 changes: 11 additions & 0 deletions includes/polling/os/bluecatnetworks.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

use LibreNMS\RRD\RrdDefinition;

$oid_list = ['bcnSysIdOSRelease.0', 'bcnSysIdSerial.0', 'bcnSysIdPlatform.0' ];

$bcn = snmp_get_multi_oid($device, $oid_list, '-OUQs', 'BCN-SYSTEM-MIB');

$version = $bcn[0]['bcnSysIdOSRelease.0'];
$hardware = $bcn[0]['bcnSysIdPlatform.0'];
$serial = $bcn[0]['bcnSysIdSerial.0'];
4 changes: 0 additions & 4 deletions logs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
Loading