pandaoc-io / go-check-network-interface Goto Github PK
View Code? Open in Web Editor NEWShinken/Nagios-like check in Golang to monitor network interface statistics
License: GNU General Public License v3.0
Shinken/Nagios-like check in Golang to monitor network interface statistics
License: GNU General Public License v3.0
In some cases, the interface Alias will contains a "|" as a field separator.
This character will break the check and split the output at the wrong place.
Replace the "|" character with a "!โ
On vlanxxx interfaces, the value returned by the devices are incorrect.
To avoid wrong triggered alerts, force the bandwidth usage to 0 when interfaces are called vlanxxx
Declare the bandwidth thresholds in % : Switch from 80, 90 to 80%, 90%
This permit a better comprehension when defining the thresholds.
This also aligned the error, discard and bandwidth thresholds declarations.
When interface is admin UP and oper DOWN, the 2 displayed elements into the short output are in red.
When the interface name contains one or several '/' the JSON file can't be created and the check fail in unknown mode with the error, file xxx.json can't be created.
With this character, the path become wrong : /var/tmp/check_snmp_interface_foreach/127.0.0.1_SNMPv2c/Ethernet1/1.json
Fix it by replacing the '/' by an '_'
the HTML table have some issues :
The check finish in panic when the index file isn't accessible, in this case in "permission denied"
Error of the os.Stat function not correctly handle in the file.AsExp() function
When the uptime is lower than the last pollingn the elements are forced to 0.
But on some interfaces, these elements aren't available and the old data are at nul.
When the check try to force the old datas to 0, it failed into panic because of nil pointer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.