Add state of the Fortigate link monitor health checks (#14675)

This commit is contained in:
not-known
2023-01-04 16:41:25 +01:00
committed by GitHub
parent cf3f69e67f
commit dc74ba03ae
3 changed files with 505 additions and 0 deletions

View File

@@ -85,6 +85,16 @@ modules:
states:
- { descr: Alive, graph: 1, value: 0, generic: 0 }
- { descr: Dead, graph: 0, value: 1, generic: 2 }
-
oid: fgLinkMonitorTable
num_oid: '.1.3.6.1.4.1.12356.101.4.8.2.1.3.{{ $index }}'
index: 'fgLinkMonitorID.{{ $index }}'
descr: fgLinkMonitorName
value: fgLinkMonitorState
group: Link monitor
states:
- { value: 0, descr: Alive, graph: 1, generic: 0 }
- { value: 1, descr: Dead, graph: 1, generic: 2 }
count:
data:
-
@@ -119,6 +129,20 @@ modules:
descr: 'Link Jitter {{ $fgVWLHealthCheckLinkName }}\{{ $fgVWLHealthCheckLinkIfName }}'
group: SD-WAN
index: 'fgVWLHealthCheckLinkJitter.{{ $index }}'
-
oid: fgLinkMonitorTable
value: fgLinkMonitorLatency
num_oid: '.1.3.6.1.4.1.12356.101.4.8.2.1.4.{{ $index }}'
descr: 'Monitor Latency {{ $fgLinkMonitorName }}'
group: Link monitor
index: 'fgLinkMonitorLatency.{{ $index }}'
-
oid: fgLinkMonitorTable
value: fgLinkMonitorJitter
num_oid: '.1.3.6.1.4.1.12356.101.4.8.2.1.5.{{ $index }}'
descr: 'Monitor Jitter {{ $fgLinkMonitorName }}'
group: Link monitor
index: 'fgLinkMonitorJitter.{{ $index }}'
signal:
data:

View File

@@ -0,0 +1,465 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": null,
"sysObjectID": ".1.3.6.1.4.1.12356.101.1.1000",
"sysDescr": null,
"sysContact": null,
"version": "v6.4.8,build1914,211117 (GA)",
"hardware": "FortiGate 100",
"features": null,
"location": null,
"os": "fortigate",
"type": "firewall",
"serial": null,
"icon": "fortinet.svg"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.8.2.1.5.1",
"sensor_index": "fgLinkMonitorJitter.1",
"sensor_type": "fortigate",
"sensor_descr": "Monitor Jitter lhm-am7",
"group": "Link monitor",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0.092,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.8.2.1.4.1",
"sensor_index": "fgLinkMonitorLatency.1",
"sensor_type": "fortigate",
"sensor_descr": "Monitor Latency lhm-am7",
"group": "Link monitor",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 4.102,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.8.0",
"sensor_index": "fgSysSesCount.0",
"sensor_type": "sessions",
"sensor_descr": "Session count",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.11.0",
"sensor_index": "fgSysSesRate1.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 1m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.12.0",
"sensor_index": "fgSysSesRate10.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 10m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.13.0",
"sensor_index": "fgSysSesRate30.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 30m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.14.0",
"sensor_index": "fgSysSesRate60.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 60m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.8.2.1.3.1",
"sensor_index": "fgLinkMonitorID.1",
"sensor_type": "fgLinkMonitorTable",
"sensor_descr": "lhm-am7",
"group": "Link monitor",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "fgLinkMonitorTable"
}
],
"state_indexes": [
{
"state_name": "fgLinkMonitorTable",
"state_descr": "Alive",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "fgLinkMonitorTable",
"state_descr": "Dead",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
}
]
},
"poller": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.8.2.1.5.1",
"sensor_index": "fgLinkMonitorJitter.1",
"sensor_type": "fortigate",
"sensor_descr": "Monitor Jitter lhm-am7",
"group": "Link monitor",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0.092,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.8.2.1.4.1",
"sensor_index": "fgLinkMonitorLatency.1",
"sensor_type": "fortigate",
"sensor_descr": "Monitor Latency lhm-am7",
"group": "Link monitor",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 4.102,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.8.0",
"sensor_index": "fgSysSesCount.0",
"sensor_type": "sessions",
"sensor_descr": "Session count",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": 2,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.11.0",
"sensor_index": "fgSysSesRate1.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 1m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": 2,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.12.0",
"sensor_index": "fgSysSesRate10.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 10m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": 2,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.13.0",
"sensor_index": "fgSysSesRate30.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 30m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": 2,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.1.14.0",
"sensor_index": "fgSysSesRate60.0",
"sensor_type": "sessions",
"sensor_descr": "Sessions/sec 60m avg",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": 2,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12356.101.4.8.2.1.3.1",
"sensor_index": "fgLinkMonitorID.1",
"sensor_type": "fgLinkMonitorTable",
"sensor_descr": "lhm-am7",
"group": "Link monitor",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "fgLinkMonitorTable"
}
],
"state_indexes": [
{
"state_name": "fgLinkMonitorTable",
"state_descr": "Alive",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "fgLinkMonitorTable",
"state_descr": "Dead",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
}
]
}
}
}

View File

@@ -0,0 +1,16 @@
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.12356.101.1.1000
1.3.6.1.4.1.12356.101.4.1.1.0|4|v6.4.8,build1914,211117 (GA)
1.3.6.1.4.1.12356.101.4.8.1.0|2|2
1.3.6.1.4.1.12356.101.4.8.2.1.1.1|2|1
1.3.6.1.4.1.12356.101.4.8.2.1.2.1|4|lhm-am7
1.3.6.1.4.1.12356.101.4.8.2.1.3.1|2|0
1.3.6.1.4.1.12356.101.4.8.2.1.4.1|4|4.102
1.3.6.1.4.1.12356.101.4.8.2.1.5.1|4|0.092
1.3.6.1.4.1.12356.101.4.8.2.1.6.1|70|34769755
1.3.6.1.4.1.12356.101.4.8.2.1.7.1|70|34736903
1.3.6.1.4.1.12356.101.4.8.2.1.8.1|4|0.000%
1.3.6.1.4.1.12356.101.4.8.2.1.9.1|4|root
1.3.6.1.4.1.12356.101.4.8.2.1.10.1|65|996630
1.3.6.1.4.1.12356.101.4.8.2.1.11.1|65|998613
1.3.6.1.4.1.12356.101.4.8.2.1.12.1|65|1995243
1.3.6.1.4.1.12356.101.4.8.2.1.13.1|70|34671369