Skip to content

Commit d66cded

Browse files
authored
Remove panos HA peer state sensor when disabled (librenms#18556)
* Remove panos HA peer state sensor when disabled * data
1 parent 6256d52 commit d66cded

File tree

2 files changed

+0
-109
lines changed

2 files changed

+0
-109
lines changed

resources/definitions/os_discovery/panos.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,6 @@ modules:
5959
oid: panSysHAState.0
6060
op: '='
6161
value: 'disabled'
62-
-
63-
oid: panSysHAPeerState
64-
num_oid: '.1.3.6.1.4.1.25461.2.1.2.1.12.{{ $index }}'
65-
index: 'panSysHAPeerState.{{ $index }}'
66-
descr: High Availability Peer Status
67-
state_name: panSysHaStateEnum
68-
states:
69-
- { value: 0, generic: 0, graph: 1, descr: unknown }
70-
- { value: 1, generic: 0, graph: 1, descr: suspended }
71-
- { value: 2, generic: 0, graph: 1, descr: non-functional }
72-
- { value: 3, generic: 1, graph: 1, descr: initial }
73-
- { value: 4, generic: 3, graph: 1, descr: passive }
74-
- { value: 5, generic: 0, graph: 1, descr: active }
75-
- { value: 10, generic: 1, graph: 1, descr: tentative }
76-
- { value: 11, generic: 3, graph: 1, descr: active-secondary }
77-
- { value: 12, generic: 0, graph: 1, descr: active-primary }
78-
skip_values:
79-
-
80-
oid: panSysHAState.0
81-
op: '!='
82-
value: 'disabled'
8362
-
8463
oid: panMgmtPanoramaConnected
8564
num_oid: '.1.3.6.1.4.1.25461.2.1.2.4.1.{{ $index }}'

tests/data/panos_440.json

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -3990,31 +3990,6 @@
39903990
"rrd_type": "GAUGE",
39913991
"state_name": "panMgmtPanoramaConnected"
39923992
},
3993-
{
3994-
"sensor_deleted": 0,
3995-
"sensor_class": "state",
3996-
"poller_type": "snmp",
3997-
"sensor_oid": ".1.3.6.1.4.1.25461.2.1.2.1.12.0",
3998-
"sensor_index": "panSysHAPeerState.0",
3999-
"sensor_type": "panSysHaStateEnum",
4000-
"sensor_descr": "High Availability Peer Status",
4001-
"group": null,
4002-
"sensor_divisor": 1,
4003-
"sensor_multiplier": 1,
4004-
"sensor_current": 0,
4005-
"sensor_limit": null,
4006-
"sensor_limit_warn": null,
4007-
"sensor_limit_low": null,
4008-
"sensor_limit_low_warn": null,
4009-
"sensor_alert": 1,
4010-
"sensor_custom": "No",
4011-
"entPhysicalIndex": null,
4012-
"entPhysicalIndex_measured": null,
4013-
"sensor_prev": null,
4014-
"user_func": null,
4015-
"rrd_type": "GAUGE",
4016-
"state_name": "panSysHaStateEnum"
4017-
},
40183993
{
40193994
"sensor_deleted": 0,
40203995
"sensor_class": "temperature",
@@ -4069,69 +4044,6 @@
40694044
"state_draw_graph": 1,
40704045
"state_value": 1,
40714046
"state_generic_value": 0
4072-
},
4073-
{
4074-
"state_name": "panSysHaStateEnum",
4075-
"state_descr": "unknown",
4076-
"state_draw_graph": 1,
4077-
"state_value": 0,
4078-
"state_generic_value": 0
4079-
},
4080-
{
4081-
"state_name": "panSysHaStateEnum",
4082-
"state_descr": "suspended",
4083-
"state_draw_graph": 1,
4084-
"state_value": 1,
4085-
"state_generic_value": 0
4086-
},
4087-
{
4088-
"state_name": "panSysHaStateEnum",
4089-
"state_descr": "non-functional",
4090-
"state_draw_graph": 1,
4091-
"state_value": 2,
4092-
"state_generic_value": 0
4093-
},
4094-
{
4095-
"state_name": "panSysHaStateEnum",
4096-
"state_descr": "initial",
4097-
"state_draw_graph": 1,
4098-
"state_value": 3,
4099-
"state_generic_value": 1
4100-
},
4101-
{
4102-
"state_name": "panSysHaStateEnum",
4103-
"state_descr": "passive",
4104-
"state_draw_graph": 1,
4105-
"state_value": 4,
4106-
"state_generic_value": 3
4107-
},
4108-
{
4109-
"state_name": "panSysHaStateEnum",
4110-
"state_descr": "active",
4111-
"state_draw_graph": 1,
4112-
"state_value": 5,
4113-
"state_generic_value": 0
4114-
},
4115-
{
4116-
"state_name": "panSysHaStateEnum",
4117-
"state_descr": "tentative",
4118-
"state_draw_graph": 1,
4119-
"state_value": 10,
4120-
"state_generic_value": 1
4121-
},
4122-
{
4123-
"state_name": "panSysHaStateEnum",
4124-
"state_descr": "active-secondary",
4125-
"state_draw_graph": 1,
4126-
"state_value": 11,
4127-
"state_generic_value": 3
4128-
},
4129-
{
4130-
"state_name": "panSysHaStateEnum",
4131-
"state_descr": "active-primary",
4132-
"state_draw_graph": 1,
4133-
"state_value": 12,
4134-
"state_generic_value": 0
41354047
}
41364048
]
41374049
},

0 commit comments

Comments
 (0)