Commit 9665094a authored by Daniel Stan's avatar Daniel Stan

[munin/machines plugin] ajout de l'interface wifi

Car komaz route désormais le wifi.
parent 3a0ddb3b
......@@ -10,13 +10,23 @@ if [ "$1" = "config" ]; then
echo 'ens.draw AREA'
echo 'adm.label ADM'
echo 'adm.draw STACK'
echo "ap.label Point d'accès"
echo 'ap.draw STACK'
echo 'fixe.label Fixe'
echo 'fixe.draw STACK'
echo 'wifi.label Wifi'
echo 'wifi.draw STACK'
echo 'total.label Total'
exit 0
fi
echo "ens.value" `arp -a -i ens | wc -l`
echo "adm.value" `arp -a -i crans.2 | wc -l`
echo "fixe.value" `arp -a -i crans | wc -l`
echo "total.value" `arp -a | wc -l`
scan() {
arp -a -n -i $1
}
echo "ens.value" `scan ens | wc -l`
echo "adm.value" `scan crans.2 | wc -l`
echo "fixe.value" `scan crans | wc -l`
echo "wifi.value" `scan crans.3 | grep -v '138\.231\.148\.' | wc -l`
echo "ap.value" `scan crans.3 | grep '138\.231\.148\.' | wc -l`
echo "total.value" `arp -a -n | wc -l`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment