Skip to content
Snippets Groups Projects
Commit ae2afaee authored by skorpy's avatar skorpy :construction_worker:
Browse files

use meshif instead of -m for prometheus-batadv-txtexport.sh

parent 5f2ec2c7
Branches
No related tags found
No related merge requests found
Pipeline #24266 passed
......@@ -13,9 +13,8 @@ for batdev in /sys/class/net/dom*-bat; do
}
'
echo "batman_originator_count{batdev=\"${batdev}\",selected=\"false\"}" $($BATCTL -m ${batdev} o | egrep '^ ' | wc -l)
echo "batman_originator_count{batdev=\"${batdev}\",selected=\"true\"}" $($BATCTL -m ${batdev} o | egrep '^ \*' | wc -l)
echo "batman_tg_count{batdev=\"${batdev}\",type=\"multicast\"}" $(($($BATCTL -m ${batdev} tg -m | wc -l)-2))
echo "batman_tg_count{batdev=\"${batdev}\",type=\"unicast\"}" $(($($BATCTL -m ${batdev} tg -u | wc -l)-2))
echo "batman_originator_count{batdev=\"${batdev}\",selected=\"false\"}" $($BATCTL meshif ${batdev} o | egrep '^ ' | wc -l)
echo "batman_originator_count{batdev=\"${batdev}\",selected=\"true\"}" $($BATCTL meshif ${batdev} o | egrep '^ \*' | wc -l)
echo "batman_tg_count{batdev=\"${batdev}\",type=\"multicast\"}" $(($($BATCTL meshif ${batdev} tg -m | wc -l)-2))
echo "batman_tg_count{batdev=\"${batdev}\",type=\"unicast\"}" $(($($BATCTL meshif ${batdev} tg -u | wc -l)-2))
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment