Giter Site home page Giter Site logo

napsty / check_netio Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 34 KB

Monitoring plugin to check network interfaces on Linux OS

Home Page: https://www.claudiokuenzler.com/monitoring-plugins/check_netio.php

License: GNU General Public License v3.0

Shell 100.00%
nagios-plugins monitoring-plugins network linux netdev interface interfaces monitoring metering nic

check_netio's People

Contributors

napsty avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

check_netio's Issues

pnp4nagios

Hello,

I am looking for php4nagios plugin for this script?

Large performance data output is cut when using NRPE

When the plugin is executed locally, the full output is shown.
But when using NRPE as remote plugin executor, the output is cut:

$ /usr/lib/nagios/plugins/check_nrpe -H 10.10.1.106 -c check_netio -a "ens3"
NETIO OK - ens3: Receive 71037216695 Bytes, Transmit 98260284130 Bytes|NET_ens3_RX=71037216695B;;;; NET_ens3_TX=98260284130B;;;; NET_ens3_ERR_RX=0;;;; NET_ens3_ERR_TX=0;;;; NET_ens3_DROP_RX=0;;;; NET_ens3_DROP_TX=0;;;; SyncookiesSent=36;;;; SyncookiesRecv=36;;;; SyncookiesFailed=0;;;; EmbryonicRsts=23357;;;; PruneCalled=53;;;; RcvPruned=0;;;; OfoPruned=0;;;; OutOfWindowIcmps=6;;;; LockDroppedIcmps=0;;;; ArpFilter=0;;;; TW=11751533;;;; TWRecycled=0;;;; TWKilled=0;;;; PAWSPassive=0;;;; PAWSActive=0;;;; PAWSEstab=5;;;; DelayedACKs=4436739;;;; DelayedACKLocked=5264;;;; DelayedACKLost=21269;;;; ListenOverflows=4;;;; ListenDrops=1353;;;; TCPPrequeued=11034017;;;; TCPDirectCopyFromBacklog=3130294;;;; TCPDirectCopyFromPrequeue=47926137;;;; TCPPrequeueDropped=0;;;; TCPHPHits=15298970;;;; TCPHPHitsToUser=508;;;; TCPPureAcks=54508534;;;; TCPHPAcks=734055;;;; TCPRenoRecovery=19;;;; TCPSackRecovery=609;;;; TCPSACKReneging=0;;;; TCPFACKReorder=0;;;; TCPSACKReorder=0;;;; TCPRenoReorder=0;;;; TCPTSReorder=7;;;; TCPFullUndo=

This results in broken performance data. Icinga 2 logs it like this:

[2020-09-04 13:15:59 +0200] warning/InfluxdbWriter: Ignoring invalid perfdata for checkable '10.10.1.106!Network IO ens3' and command 'nrpe' with value: TCPFullUndo=
        (0) Processing check result for 'onl-lb01-dr!Network IO ens3'

[Question] Register TCP connection aborts with this?

Hi Claudio,
I just got a question and I cannot find another way to ask you.
Is it possible to register tcp connection aborts and reconnects with this plugin?
I have to check, if connections from one network to another are stable or have aborts after a couple of time.

Thanks and have a nice weekend,
Marcus

Errors without "-t" / $TCPSTATS undefined

# ./check_netio.sh -i eth0   
./check_netio.sh: line 114: [: =: unary operator expected
./check_netio.sh: line 164: [: =: unary operator expected
NETIO OK - eth0: Receive 0 Bytes, Transmit 0 Bytes|NET_eth0_RX=0B;;;; NET_eth0_TX=0B;;;; NET_eth0_ERR_RX=0;;;; NET_eth0_ERR_TX=0;;;; NET_eth0_DROP_RX=0;;;; NET_eth0_DROP_TX=0;;;;

Just add a default

TCPSTATS=false

at ~ line 49

FR: Add interface errors

Feature request: Add interface errors. First of all in performance data. But also add the possibility to to use thresholds.

Invalid Performance Data TcpExt

InfluxDBWriter of Icinga 2 warning:

warning/InfluxdbWriter: Ignoring invalid perfdata for checkable 'server!Network IO ens192' and command 'nrpe' with value: TcpExt:=TcpExt:;;;;

Make sure ifconfig command exists

Plugin doesn't fail (still returns OK) when ifconfig is not installed and simply returns empty values.

$ /usr/lib/nagios/plugins/check_netio -i eth0
/usr/lib/nagios/plugins/check_netio: line 126: /sbin/ifconfig: No such file or directory
/usr/lib/nagios/plugins/check_netio: line 156: /sbin/ifconfig: No such file or directory
/usr/lib/nagios/plugins/check_netio: line 157: /sbin/ifconfig: No such file or directory
NETIO OK - eth0: RX=, TX=|NET_eth0_RX=B;;;; NET_eth0_TX=B;;;;

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.