Skip to content

Conversation

@SuperPlusUser
Copy link
Contributor

Please see commit messages for more details.

The last two commits significantly improve the performance of the plugin, especially if you only want to monitor a few interfaces on a switch. We use the plugin for Cisco and Brocade switches and with these changes everything works as expected by now. Please note that i have not tested it with Bintec or other devices. Also I am not an experienced programmer so please have a look at the changes before merging them.

By the way thanks for the great and efficient check plugin! After making these changes we were able to significantly improve our monitoring with this plugin.

- Change overall status to "warning" if an interface exceeds bandwidth limit (see NETWAYS#8 thanks to Bjoern-10101 )
- Do not show (incorrect) performance data for Interfaces which are admin down
- Correct output for down interfaces if crit_on_down_flag is not true
Interface name could have incompatible characters (e.g. "/")
this way it better fits our demands but i think it's a matter of taste
forgot a ";"
and improve the output for Cisco a little bit
Write last checktime to perfdata output and try to parse it from there if no "--lastcheck" is given. --> You have to pass one argument less and this also fixes the hight traffic warnings you get if the last check(s) faild to geht new perf data but the lastcheck variable in Icinga gets updated anyway.
Print inBitps and outBitps to performance data so you can use them in graphs etc. Also fix the recognition of a recent reset which I have broken in the previous commit and fix the plugin number output.
I think it was intended this way but the code was misordered, so it did not work as expected (instead all interfaces were polled which is not really efficient especially witch many Interfaces). I also implemented a bulkget for the if-names, so we can match them with the regex too. I could only test it with a cisco switch and I do not know whether it works for Bintec.
@Bierchermuesli
Copy link

I have tested (IOS / XR) this branch and sounds good to me.

@RincewindsHat
Copy link
Member

Sorry for the (huge) delay and thank you very much for the contribution :-)

@RincewindsHat RincewindsHat merged commit 6836717 into NETWAYS:master Jan 25, 2023
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

Successfully merging this pull request may close these issues.

3 participants