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::dlink::standard::snmp::plugin] mode "interfaces" and incorrect perfdata values ​​for discard packets #5054

Open
Aleksey-Maksimov opened this issue Jun 4, 2024 · 3 comments

Comments

@Aleksey-Maksimov
Copy link

Hello.

From time to time we see percentages greater than 100 on different D-Link switches. For example, here we see 300-400%.
It looks like there is some kind of logic error with the plugin.

изображение

# ./centreon_plugins.pl' '--plugin=network::dlink::standard::snmp::plugin' '--mode=interfaces' 
' --snmp-community' 'my'  '--snmp-version' '2c' 
'--warning-out-traffic' '98' '--warning-out-error' '1' '--warning-out-discard' '50' '--warning-in-traffic' '98' 
'--warning-in-error' '1' '--warning-in-discard' '50' '--use-new-perfdata' '--units-traffic' '%'
'--snmp-force-getnext' '--add-errors' '--snmp-autoreduce' 
'--oid-filter' 'ifName' '--oid-display' 'ifName' '--hostname' '10.2.18.9' '--filter-uom' 'null' 
'--filter-perfdata-adv' 'not (%(value) == 0)' '--filter-perfdata' '.*[.](traffic|error|discard)[.].*' 
'--change-perfdata' '.*,,eval(%(label) =~ s/#interface//g)' '--add-traffic'


WARNING: Interface 'Slot0/2' Packets Out Discard : 317.11% (241 on 76) | 

'Slot0/1.traffic.in.bitspersecond'=4137534.86;0:98000000;;0;100000000 
'Slot0/1.traffic.out.bitspersecond'=1276362.61;0:98000000;;0;100000000 
'Slot0/10.traffic.in.bitspersecond'=12705.31;0:98000000;;0;100000000 
'Slot0/10.traffic.out.bitspersecond'=26758.20;0:98000000;;0;100000000 
'Slot0/10.packets.out.discard.percentage'=27.60;0:50;;0;100 
'Slot0/11.traffic.in.bitspersecond'=1776.65;0:98000000;;0;100000000 
'Slot0/11.traffic.out.bitspersecond'=17209.63;0:98000000;;0;100000000 
'Slot0/11.packets.out.discard.percentage'=35.35;0:50;;0;100 
'Slot0/13.traffic.in.bitspersecond'=1171442.29;0:98000000;;0;100000000 
'Slot0/13.traffic.out.bitspersecond'=3344648.16;0:98000000;;0;100000000 
'Slot0/13.packets.out.discard.percentage'=1.14;0:50;;0;100 
'Slot0/14.traffic.in.bitspersecond'=11923.76;0:98000000;;0;100000000 
'Slot0/14.traffic.out.bitspersecond'=23026.12;0:98000000;;0;100000000 
'Slot0/14.packets.out.discard.percentage'=23.15;0:50;;0;100 
'Slot0/15.traffic.in.bitspersecond'=26634.78;0:98000000;;0;100000000 
'Slot0/15.traffic.out.bitspersecond'=34569.47;0:98000000;;0;100000000 
'Slot0/15.packets.out.discard.percentage'=13.86;0:50;;0;100 
'Slot0/17.traffic.in.bitspersecond'=79.35;0:98000000;;0;100000000 
'Slot0/17.traffic.out.bitspersecond'=15681.96;0:98000000;;0;100000000 
'Slot0/17.packets.out.discard.percentage'=42.64;0:50;;0;100 
'Slot0/2.traffic.in.bitspersecond'=72.65;0:98000000;;0;100000000 
'Slot0/2.traffic.out.bitspersecond'=907.27;0:98000000;;0;100000000 
'Slot0/2.packets.out.discard.percentage'=317.11;0:50;;0;100 
'Slot0/22.traffic.in.bitspersecond'=20247.84;0:98000000;;0;100000000 
'Slot0/22.traffic.out.bitspersecond'=29025.80;0:98000000;;0;100000000 
'Slot0/22.packets.out.discard.percentage'=18.76;0:50;;0;100 
'Slot0/23.traffic.in.bitspersecond'=29183.51;0:98000000;;0;100000000 
'Slot0/23.traffic.out.bitspersecond'=745460.73;0:98000000;;0;100000000 
'Slot0/23.packets.out.discard.percentage'=5.38;0:50;;0;100 
'Slot0/24.traffic.in.bitspersecond'=57.80;0:98000000;;0;100000000 
'Slot0/24.traffic.out.bitspersecond'=15567.84;0:98000000;;0;100000000 
'Slot0/24.packets.out.discard.percentage'=42.86;0:50;;0;100 
'Slot0/9.traffic.in.bitspersecond'=53.55;0:98000000;;0;100000000 
'Slot0/9.traffic.out.bitspersecond'=15435.76;0:98000000;;0;100000000 
'Slot0/9.packets.out.discard.percentage'=44.12;0:50;;0;100
@lucie-dubrunfaut
Copy link
Contributor

Hello :)

Can you provide us an anonymized .snmpwalk (full snmpwalk of enterprise branch : snmpwalk -ObentU -v 2c -c public address .1.3.6.1.4.1 > equipment.snmpwalk) of your equipment to help us troubleshooting this issue? Or at least the --debug output.

@Aleksey-Maksimov
Copy link
Author

https://disk.yandex.ru/d/xupsIYvIyvn6Bw
Let me know when you download the file, I will delete it.

@lucie-dubrunfaut
Copy link
Contributor

Done you can remoove the download link.
I'll create a ticket to study this issue.

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

No branches or pull requests

2 participants