forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve Fortinet HA Status parsing issues (networktocode#1861)
- Loading branch information
Showing
11 changed files
with
117 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
tests/fortinet/get_system_ha_status/fortinet_get_system_ha_status_7.0_hbdev.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
HA Health Status: | ||
WARNING: FGT40XXXXXXXXXXX has hbdev down; | ||
WARNING: FGT40YYYYYYYYYYY has hbdev down; | ||
Model: FortiGate-40F | ||
Mode: HA A-P | ||
Group: 28 | ||
Debug: 0 | ||
Cluster Uptime: 23 days 1:31:39 | ||
Cluster state change time: 2024-09-16 13:03:51 | ||
Primary selected using: | ||
<2024/09/16 13:03:51> FGT40XXXXXXXXXXX is selected as the primary because its override priority is larger than peer member FGT40YYYYYYYYYYY. | ||
<2024/09/11 12:13:30> FGT40XXXXXXXXXXX is selected as the primary because it's the only member in the cluster. | ||
<2024/09/09 16:15:43> FGT40XXXXXXXXXXX is selected as the primary because it's the only member in the cluster. | ||
ses_pickup: enable, ses_pickup_delay=disable | ||
override: enable | ||
Configuration Status: | ||
FGT40XXXXXXXXXXX(updated 3 seconds ago): in-sync | ||
FGT40YYYYYYYYYYY(updated 4 seconds ago): in-sync | ||
System Usage stats: | ||
FGT40XXXXXXXXXXX(updated 3 seconds ago): | ||
sessions=196, average-cpu-user/nice/system/idle=0%/0%/0%/100%, memory=34% | ||
FGT40YYYYYYYYYYY(updated 4 seconds ago): | ||
sessions=43, average-cpu-user/nice/system/idle=0%/0%/0%/99%, memory=31% | ||
HBDEV stats: | ||
FGT40XXXXXXXXXXX(updated 3 seconds ago): | ||
lan2: physical/00, down, rx-bytes/packets/dropped/errors=2289976940/6414484/0/0, tx=2334914934/6414604/0/0 | ||
lan3: physical/1000auto, up, rx-bytes/packets/dropped/errors=2859911090/8634708/0/0, tx=4096246721/11393870/0/0 | ||
FGT40YYYYYYYYYYY(updated 4 seconds ago): | ||
lan2: physical/00, down, rx-bytes/packets/dropped/errors=2334910566/6414592/0/0, tx=2289993719/6414531/0/0 | ||
lan3: physical/1000auto, up, rx-bytes/packets/dropped/errors=4096363031/11393865/0/0, tx=2859518832/8634703/0/0 | ||
MONDEV stats: | ||
FGT40XXXXXXXXXXX(updated 3 seconds ago): | ||
lan1: physical/100auto, up, rx-bytes/packets/dropped/errors=81549709010/222074671/0/0, tx=215809491211/241726140/0/0 | ||
wan: physical/100auto, up, rx-bytes/packets/dropped/errors=235849981176/264545599/0/0, tx=96429336043/236634292/0/0 | ||
FGT40YYYYYYYYYYY(updated 4 seconds ago): | ||
lan1: physical/100auto, up, rx-bytes/packets/dropped/errors=422928973/3422783/0/0, tx=12363136/46749/0/0 | ||
wan: physical/100auto, up, rx-bytes/packets/dropped/errors=43917368/544179/0/0, tx=86212/874/0/0 | ||
Primary : FGT-fw-a , FGT40XXXXXXXXXXX, HA cluster index = 1 | ||
Secondary : FGT-fw-b , FGT40YYYYYYYYYYY, HA cluster index = 0 | ||
number of vcluster: 1 | ||
vcluster 1: work 169.254.0.2 | ||
Primary: FGT40XXXXXXXXXXX, HA operating index = 0 | ||
Secondary: FGT40YYYYYYYYYYY, HA operating index = 1 |
19 changes: 19 additions & 0 deletions
19
tests/fortinet/get_system_ha_status/fortinet_get_system_ha_status_7.0_hbdev.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
parsed_sample: | ||
- cluster_state_changed_time: "2024-09-16 13:03:51" | ||
cluster_uptime: "23 days 1:31:39" | ||
ha_group: "28" | ||
ha_health: | ||
- "WARNING: FGT40XXXXXXXXXXX has hbdev down" | ||
- "WARNING: FGT40YYYYYYYYYYY has hbdev down" | ||
ha_master_unit_index: "1" | ||
ha_master_unit_name: "FGT-fw-a" | ||
ha_master_unit_serial: "FGT40XXXXXXXXXXX" | ||
ha_mode: "HA A-P" | ||
ha_override_status: "enable" | ||
ha_session_pickup_delay: "disable" | ||
ha_session_pickup_status: "enable" | ||
ha_slave_unit_index: "0" | ||
ha_slave_unit_name: "FGT-fw-b" | ||
ha_slave_unit_serial: "FGT40YYYYYYYYYYY" | ||
model: "FortiGate-40F" |
40 changes: 40 additions & 0 deletions
40
tests/fortinet/get_system_ha_status/fortinet_get_system_ha_status_7.0_mondev.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
HA Health Status: | ||
WARNING: FGT40FYYYYYYYYYY has mondev down; | ||
Model: FortiGate-40F | ||
Mode: HA A-P | ||
Group: 172 | ||
Debug: 0 | ||
Cluster Uptime: 63 days 22:15:42 | ||
Cluster state change time: 2024-02-11 15:25:27 | ||
Primary selected using: | ||
<2024/02/11 15:25:27> FGT40FXXXXXXXXXX is selected as the primary because the value 0 of link-failure + pingsvr-failure is less than peer member FGT40FYYYYYYYYYY. | ||
ses_pickup: enable, ses_pickup_delay=disable | ||
override: enable | ||
Configuration Status: | ||
FGT40FXXXXXXXXXX(updated 0 seconds ago): in-sync | ||
FGT40FYYYYYYYYYY(updated 0 seconds ago): in-sync | ||
System Usage stats: | ||
FGT40FXXXXXXXXXX(updated 0 seconds ago): | ||
sessions=768, average-cpu-user/nice/system/idle=0%/0%/0%/99%, memory=35% | ||
FGT40FYYYYYYYYYY(updated 0 seconds ago): | ||
sessions=634, average-cpu-user/nice/system/idle=0%/0%/0%/100%, memory=31% | ||
HBDEV stats: | ||
FGT40FXXXXXXXXXX(updated 0 seconds ago): | ||
lan2: physical/1000auto, up, rx-bytes/packets/dropped/errors=9997131732/27616386/0/0, tx=10080077920/27616652/0/0 | ||
lan3: physical/1000auto, up, rx-bytes/packets/dropped/errors=11772621099/36693306/0/0, tx=26151306122/60128423/0/0 | ||
FGT40FYYYYYYYYYY(updated 0 seconds ago): | ||
lan2: physical/1000auto, up, rx-bytes/packets/dropped/errors=10080077920/27616652/0/0, tx=9997131732/27616386/0/0 | ||
lan3: physical/1000auto, up, rx-bytes/packets/dropped/errors=26151777728/60128423/0/0, tx=11771044717/36693306/0/0 | ||
MONDEV stats: | ||
FGT40FXXXXXXXXXX(updated 0 seconds ago): | ||
lan1: physical/100auto, up, rx-bytes/packets/dropped/errors=535463275509/3388288017/0/0, tx=3023591767050/4114831127/0/0 | ||
wan: physical/100auto, up, rx-bytes/packets/dropped/errors=3314385262333/4439875482/0/0, tx=768352772861/3445252569/0/0 | ||
FGT40FYYYYYYYYYY(updated 0 seconds ago): | ||
lan1: physical/00, down, rx-bytes/packets/dropped/errors=0/0/0/0, tx=0/0/0/0 | ||
wan: physical/100auto, up, rx-bytes/packets/dropped/errors=15792718293/245544650/0/0, tx=0/0/0/0 | ||
Primary : FGT-fw-a, FGT40FXXXXXXXXXX, HA cluster index = 1 | ||
Secondary : FGT-fw-b, FGT40FYYYYYYYYYY, HA cluster index = 0 | ||
number of vcluster: 1 | ||
vcluster 1: work 169.254.0.2 | ||
Primary: FGT40FXXXXXXXXXX, HA operating index = 0 | ||
Secondary: FGT40FYYYYYYYYYY, HA operating index = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
tests/fortinet/get_system_ha_status/fortinet_get_system_ha_status_7.0_unhealthy.raw
This file was deleted.
Oops, something went wrong.