napsty / check_netio Goto Github PK
View Code? Open in Web Editor NEWMonitoring 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
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
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;;;;
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'
Feature request: Add interface errors. First of all in performance data. But also add the possibility to to use thresholds.
Hello,
I am looking for php4nagios plugin for this script?
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
# ./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
InfluxDBWriter of Icinga 2 warning:
warning/InfluxdbWriter: Ignoring invalid perfdata for checkable 'server!Network IO ens192' and command 'nrpe' with value: TcpExt:=TcpExt:;;;;
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.