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

Added alarm detection and optical PMs for Waveserver Ai #12380

Merged
merged 1 commit into from Mar 6, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
107 changes: 106 additions & 1 deletion includes/definitions/discovery/ciena-waveserver.yaml
@@ -1,4 +1,4 @@
mib: CIENA-WS-XCVR-MIB
mib: CIENA-WS-XCVR-MIB:CIENA-WS-PLATFORM-PM-MIB:CIENA-WS-PLATFORM-ALARM-MIB
modules:
os:
hardware: CIENA-WS-CHASSIS-MIB::cwsChassisChassisidentificationDescription.0
Expand All @@ -12,6 +12,30 @@ modules:
- cwsXcvrTemperatureThresholdLowAlarmThreshold
- cwsXcvrTemperatureThresholdHighAlarmThreshold
- cwsXcvrCienaIdDescription
-
snmp_flags: '-OQUsbe'
oid:
- pmOpticalPower24HrIfIndexDescr
- pmOpticalPower24HrMonTypeDescr
- pmOpticalPower24HrMonValue
- pmOpticalPower24HrMonSupported
- definedAlarmActive
- definedAlarmDescription
- definedAlarmInstance
- definedAlarmSeverity
- alarmStatisticsCount
- alarmStatisticsType
count:
data:
-
oid: alarmStatisticsCount
value: alarmStatisticsCount
num_oid: '.1.3.6.1.4.1.1271.3.5.4.6.1.4.{{ $index }}'
descr: '{{ $alarmStatisticsType }}'
low_limit: -1
high_limit: 0
snmp_flags: '-OQUsbe'
group: 'Active Alarms'
temperature:
data:
-
Expand All @@ -28,4 +52,85 @@ modules:
oid: cwsXcvrTemperatureThresholdHighAlarmThreshold
op: '<='
value: 0
dbm:
data:
-
oid: pmOpticalPower24HrMonValue
num_oid: '.1.3.6.1.4.1.1271.3.5.22.25.1.5.{{ $index }}'
descr: '24 hrs - {{ $pmOpticalPower24HrIfIndexDescr }} Lane {{ $subindex1 }} {{ $pmOpticalPower24HrMonTypeDescr }}'
low_limit: -40
snmp_flags: '-OQUsbe'
group: 'Optical Power - Last 24 Hours'
index: 'pmOpticalPower24HrMonValue-{{ $index }}'
skip_values:
-
oid: pmOpticalPower24HrMonSupported
op: '='
value: 0
state:
data:
-
oid: definedAlarmActive
value: definedAlarmActive
num_oid: '.1.3.6.1.4.1.1271.3.5.4.5.1.4.{{ $index }}'
descr: '{{ $definedAlarmDescription }} (Critical)'
state_name: '{{ $definedAlarmActive }}-critical'
skip_values:
-
oid: definedAlarmSeverity
op: '!='
value: 3
states:
- { value: 1, generic: 2, graph: 0, descr: alarm }
- { value: 2, generic: 0, graph: 0, descr: ok }
snmp_flags: '-OQUsbe'
group: 'Alarms - {{ $definedAlarmInstance }}'
-
oid: definedAlarmActive
value: definedAlarmActive
num_oid: '.1.3.6.1.4.1.1271.3.5.4.5.1.4.{{ $index }}'
descr: '{{ $definedAlarmDescription }} (Major)'
state_name: '{{ $definedAlarmActive }}-major'
skip_values:
-
oid: definedAlarmSeverity
op: '!='
value: 4
states:
- { value: 1, generic: 2, graph: 0, descr: alarm }
- { value: 2, generic: 0, graph: 0, descr: ok }
snmp_flags: '-OQUsbe'
group: 'Alarms - {{ $definedAlarmInstance }}'
-
oid: definedAlarmActive
value: definedAlarmActive
num_oid: '.1.3.6.1.4.1.1271.3.5.4.5.1.4.{{ $index }}'
descr: '{{ $definedAlarmDescription }} (Minor)'
state_name: '{{ $definedAlarmActive }}-minor'
skip_values:
-
oid: definedAlarmSeverity
op: '!='
value: 5
states:
- { value: 1, generic: 2, graph: 0, descr: alarm }
- { value: 2, generic: 0, graph: 0, descr: ok }
snmp_flags: '-OQUsbe'
group: 'Alarms - {{ $definedAlarmInstance }}'
-
oid: definedAlarmActive
value: definedAlarmActive
num_oid: '.1.3.6.1.4.1.1271.3.5.4.5.1.4.{{ $index }}'
descr: '{{ $definedAlarmDescription }} (Severity {{ $definedAlarmSeverity }})'
state_name: '{{ $definedAlarmActive }}-other'
skip_values:
-
oid: definedAlarmSeverity
op: '>='
value: 3
states:
- { value: 1, generic: 2, graph: 0, descr: alarm }
- { value: 2, generic: 0, graph: 0, descr: ok }
snmp_flags: '-OQUsbe'
group: 'Alarms - {{ $definedAlarmInstance }}'