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

[network::paloalto::ssh::plugin] --mode=interfaces interface down on passice node in cluster #4966

Open
Blank-Vcf opened this issue Mar 27, 2024 · 1 comment
Labels

Comments

@Blank-Vcf
Copy link

HI i don't how to skip interface or change status to warning; in cluster on the passive node interface are in standby:

centreon_paloalto.pl --plugin=network::paloalto::snmp::plugin --mode=list-interfaces --hostname='x.x.x.x' --snmp-version='2c' --snmp-community='public' --verbose
List interfaces:
'ha1-a' [speed = 1000][status = up][id = 1][type = ethernetCsmacd]
'ethernet1/6' [speed = 10000][status = up][id = 10][type = ethernetCsmacd]
'ethernet1/7' [speed = 10000][status = down][id = 11][type = ethernetCsmacd]
'ethernet1/8' [speed = 10000][status = down][id = 12][type = ethernetCsmacd]
'ethernet1/9' [speed = 10000][status = up][id = 13][type = ethernetCsmacd]
'ethernet1/10' [speed = 10000][status = up][id = 14][type = ethernetCsmacd]
'ethernet1/11' [speed = 10000][status = up][id = 15][type = ethernetCsmacd]
'ethernet1/12' [speed = 10000][status = up][id = 16][type = ethernetCsmacd]
'ethernet1/13' [speed = 10000][status = down][id = 17][type = ethernetCsmacd]
'ethernet1/14' [speed = 10000][status = down][id = 18][type = ethernetCsmacd]
'ethernet1/15' [speed = 10000][status = down][id = 19][type = ethernetCsmacd]
'ha1-b' [speed = 1000][status = up][id = 2][type = ethernetCsmacd]
'ethernet1/16' [speed = 10000][status = down][id = 20][type = ethernetCsmacd]
'ethernet1/17' [speed = 10000][status = up][id = 21][type = ethernetCsmacd]
'ethernet1/18' [speed = 10000][status = down][id = 22][type = ethernetCsmacd]
'ethernet1/19' [speed = 10000][status = up][id = 23][type = ethernetCsmacd]
'ethernet1/20' [speed = 10000][status = up][id = 24][type = ethernetCsmacd]
'ethernet1/21' [speed = 100000][status = down][id = 25][type = ethernetCsmacd]
'ethernet1/22' [speed = 100000][status = down][id = 26][type = ethernetCsmacd]
'ethernet1/23' [speed = 100000][status = down][id = 27][type = ethernetCsmacd]
'ethernet1/24' [speed = 100000][status = down][id = 28][type = ethernetCsmacd]
'aux-1' [speed = 1000][status = down][id = 29][type = ethernetCsmacd]
'hsci' [speed = 100000][status = down][id = 3][type = ethernetCsmacd]
'aux-2' [speed = 1000][status = down][id = 30][type = ethernetCsmacd]
'loopback' [speed = ][status = up][id = 300000000][type = softwareLoopback]
'mgmt' [speed = 1000][status = up][id = 4][type = ethernetCsmacd]
'ethernet1/1' [speed = 10000][status = up][id = 5][type = ethernetCsmacd]
'ae1' [speed = 20000][status = down][id = 500010000][type = ieee8023adLag]
'ae1.13' [speed = 20000][status = down][id = 500010013][type = ieee8023adLag]
'ae1.103' [speed = 20000][status = down][id = 500010103][type = ieee8023adLag]
'ae1.250' [speed = 20000][status = down][id = 500010250][type = ieee8023adLag]

on passive node:
centreon_paloalto.pl --plugin=network::paloalto::snmp::plugin --mode=interfaces --hostname='x.x.x.x' --snmp-version='2c' --snmp-community='public' --interface='ae1.250' --name --add-status --add-traffic --add-errors --verbose
CRITICAL: Interface 'ae1.250' Status : down (admin: up) - Interface 'ae1.2500' Status : down (admin: up) - Interface 'ae1.2501' Status : down (admin: up) - Interface 'ae1.2503' Status : down (admin: up) - Interface 'ae1.2505' Status : down (admin: up) - Interface 'ae1.2507' Status : down (admin: up)
Interface 'ae1.250' Status : down (admin: up)
Interface 'ae1.2500' Status : down (admin: up)
Interface 'ae1.2501' Status : down (admin: up)
Interface 'ae1.2503' Status : down (admin: up)
Interface 'ae1.2505' Status : down (admin: up)
Interface 'ae1.2507' Status : down (admin: up)

on active node:

centreon_paloalto.pl --plugin=network::paloalto::snmp::plugin --mode=interfaces --hostname='z.z.z.z' --snmp-version='2c' --snmp-community='public' --interface='ae1.250' --name --add-status --add-traffic --add-errors --verbose
OK: All interfaces are ok | 'traffic_in_ae1.250'=15854.61b/s;;;0;20000000000 'traffic_out_ae1.250'=19801.39b/s;;;0;20000000000 'packets_discard_in_ae1.250'=0.00%;;;0;100 'packets_error_in_ae1.250'=0.00%;;;0;100 'packets_discard_out_ae1.250'=0.00%;;;0;100 'packets_error_out_ae1.250'=0.00%;;;0;100 'traffic_in_ae1.2500'=75595.59b/s;;;0;20000000000 'traffic_out_ae1.2500'=84166.84b/s;;;0;20000000000 'packets_discard_in_ae1.2500'=0.00%;;;0;100 'packets_error_in_ae1.2500'=0.00%;;;0;100 'packets_discard_out_ae1.2500'=0.00%;;;0;100 'packets_error_out_ae1.2500'=0.00%;;;0;100 'traffic_in_ae1.2501'=7089.86b/s;;;0;20000000000 'traffic_out_ae1.2501'=5191.65b/s;;;0;20000000000 'packets_discard_in_ae1.2501'=0.00%;;;0;100 'packets_error_in_ae1.2501'=0.00%;;;0;100 'packets_discard_out_ae1.2501'=0.00%;;;0;100 'packets_error_out_ae1.2501'=0.00%;;;0;100 'traffic_in_ae1.2503'=9220.52b/s;;;0;20000000000 'traffic_out_ae1.2503'=6628.99b/s;;;0;20000000000 'packets_discard_in_ae1.2503'=0.00%;;;0;100 'packets_error_in_ae1.2503'=0.00%;;;0;100 'packets_discard_out_ae1.2503'=0.00%;;;0;100 'packets_error_out_ae1.2503'=0.00%;;;0;100 'traffic_in_ae1.2505'=0.00b/s;;;0;20000000000 'traffic_out_ae1.2505'=10.67b/s;;;0;20000000000 'packets_discard_in_ae1.2505'=0.00%;;;0;100 'packets_error_in_ae1.2505'=0.00%;;;0;100 'packets_discard_out_ae1.2505'=0.00%;;;0;100 'packets_error_out_ae1.2505'=0.00%;;;0;100 'traffic_in_ae1.2507'=8423.88b/s;;;0;20000000000 'traffic_out_ae1.2507'=6436.06b/s;;;0;20000000000 'packets_discard_in_ae1.2507'=0.00%;;;0;100 'packets_error_in_ae1.2507'=0.00%;;;0;100 'packets_discard_out_ae1.2507'=0.00%;;;0;100 'packets_error_out_ae1.2507'=0.00%;;;0;100
Interface 'ae1.250' Status : up (admin: up), Traffic In : 15.85Kb/s (0.00%), Traffic Out : 19.80Kb/s (0.00%), Packets In Discard : 0.00% (0 on 260), Packets In Error : 0.00% (0 on 260), Packets Out Discard : 0.00% (0 on 862), Packets Out Error : 0.00% (0 on 862)
Interface 'ae1.2500' Status : up (admin: up), Traffic In : 75.60Kb/s (0.00%), Traffic Out : 84.17Kb/s (0.00%), Packets In Discard : 0.00% (0 on 3204), Packets In Error : 0.00% (0 on 3204), Packets Out Discard : 0.00% (0 on 2066), Packets Out Error : 0.00% (0 on 2066)
Interface 'ae1.2501' Status : up (admin: up), Traffic In : 7.09Kb/s (0.00%), Traffic Out : 5.19Kb/s (0.00%), Packets In Discard : 0.00% (0 on 139), Packets In Error : 0.00% (0 on 139), Packets Out Discard : 0.00% (0 on 220), Packets Out Error : 0.00% (0 on 220)
Interface 'ae1.2503' Status : up (admin: up), Traffic In : 9.22Kb/s (0.00%), Traffic Out : 6.63Kb/s (0.00%), Packets In Discard : 0.00% (0 on 192), Packets In Error : 0.00% (0 on 192), Packets Out Discard : 0.00% (0 on 299), Packets Out Error : 0.00% (0 on 299)
Interface 'ae1.2505' Status : up (admin: up), Traffic In : 0.00b/s (0.00%), Traffic Out : 10.67b/s (0.00%), Packets In Discard : 0.00% (0 on 0), Packets In Error : 0.00% (0 on 0), Packets Out Discard : 0.00% (0 on 2), Packets Out Error : 0.00% (0 on 2)
Interface 'ae1.2507' Status : up (admin: up), Traffic In : 8.42Kb/s (0.00%), Traffic Out : 6.44Kb/s (0.00%), Packets In Discard : 0.00% (0 on 172), Packets In Error : 0.00% (0 on 172), Packets Out Discard : 0.00% (0 on 287), Packets Out Error : 0.00% (0 on 287)

@lucie-dubrunfaut
Copy link
Contributor

lucie-dubrunfaut commented Jul 17, 2024

Hello :)

If I understand correctly for passive nodes you would like a WARNING status rather than CRITICAL? If yes, have you already tried the option : (interfaces.pm line 1661)

=item B<--warning-status>

Define the conditions to match for the status to be WARNING.
You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display}

Using this option with something like this : --warning-status='%{state} ne "up"' --critical-status=''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants