Git Product home page Git Product logo

go-check-network-interface's Introduction

go-check-network-interface

Shinken/Nagios-like check in Golang to monitor network interface statistics

go-check-network-interface's People

Contributors

pandaoc-io avatar

Stargazers

 avatar  avatar

Watchers

 avatar

go-check-network-interface's Issues

Bandwidth in pourcent in args

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.

Replace | from interface alias

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 "!โ€

Error when index file isn't accessible

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

Error when reset nil old values after device reboot

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

Wrong bandwidth usage for vlan interfaces

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

HTML output

the HTML table have some issues :

  • the cellpadding isn't applied
  • Bordercolor isn't well applied
  • OK, Warning and Critical cell have to be tuned for better visualization

Fix file when interface name contains '/'

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 '_'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.