Hi Simon,
A small plugin script on the client could reduce hair loss. I have scribbled a
small solution for up/down. You can adapt it for link speed, rx, tx, crc errors
etc.
Usage: sh check_interface_state.sh eth0
#!/bin/bash
state=$(/sbin/ifconfig -a | grep $1 | awk 'BEGIN{FS="<"; RS=","}{print $2;
exit}')
#echo "$state"
if [ ! -z "$state" ]; then
if (($state == "UP")); then
echo "OK - interface $1 is UP"
exit 0
else
echo "CRITICAL - interface $1 is DOWN"
exit 2
fi
else
echo "CRITICAL - interface $1 is DOWN"
exit 2
fi
You make improve the script to serve your needs.
Kind Regards,
Ivo Kidze
From: icinga-users [mailto:[email protected]] On Behalf Of
Mueller, Simon
Sent: Wednesday, June 5, 2019 6:00 AM
To: [email protected]
Subject: [icinga-users] Check network interfaces without SNMP
Hello Community,
we are searching for a possibility to check network interfaces (up/down, link
speed, rx, tx, crc errors, etc.) without going through the hassle to configure
snmpd on each client that we are monitoring. The plugin that we are searching
for most likely will use information from ethtool/mii-tool/ifconfig/ip commands
which are normally existent on every client by default or could easily be added
to kickstart/configmgmt.
Until now we couldn't find anything proper on Icinga Exchange or on the net,
maybe you guys have an idea?
Best regards,
Simon Müller
Consultant
Bechtle GmbH & Co. KG
Besselstraße 20-22, DE-68219 Mannheim
Phone: +49 621 87503 140
E-Mail: [email protected]<mailto:[email protected]>
Video:
JabberGuest<https://urldefense.proofpoint.com/v2/url?u=https-3A__jabberguest.bechtle.com_call_simon.mueller-40bechtle.com&d=DwMFAw&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=mU7-XpgHkAnSHJNcZ0qlfG0HAeBjim8pWsTcjIxbUDo&s=Rn5U0_dEUrxdNKqeeq8u1Gq-UDd0ZHALl5idRBQuhrI&e=>
Web:
bechtle.com<https://urldefense.proofpoint.com/v2/url?u=https-3A__bechtle.com&d=DwMFAw&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=mU7-XpgHkAnSHJNcZ0qlfG0HAeBjim8pWsTcjIxbUDo&s=LNcCiD7DnqHeXBkf2imLtdyWtTRapzkax85tSuiF7lM&e=>
DSGVO/GDPR: Privacy Policy Art.
13,14<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.bechtle.com_privacy-2Dpolicy&d=DwMFAw&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=mU7-XpgHkAnSHJNcZ0qlfG0HAeBjim8pWsTcjIxbUDo&s=GGnjmyFyWO9XiTq2GBE0W9FCJtNrgM8UyEQGxXumU4Y&e=>
Sitz Mannheim, Amtsgericht Mannheim, HRA 4577, Geschäftsführende
Gesellschafterin MA Bechtle Verwaltungs-GmbH, Sitz Mannheim, Amtsgericht
Mannheim HRB 8671, Ust-Id.Nr. DE813141515, Geschäftsführer: Stephan Mauer
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users