All Pages > Services > Statistics
Statistics
IRC
Channel statistics for #dn42@hackint are available at: https://dev.0l.dn42/stats/.
Scripts
Number of prefixes for collectd
collectd.conf
<Plugin exec>
nobody "/etc/collectd/bgp_prefixes-quagga.sh"
</Plugin>
exec
collectd refuses to exec scripts as root. On Debian vtysh is compiled with PAM support: adding nobody to the quaggavty group suffices.
bgp_prefixes-quagga.sh
#!/bin/bash
INTERVAL=10
HOSTNAME=dn42.hq.c3d2.de
while ; do
n4=
n6=
done
Number of prefixes per neighbour for bird
#!/bin/sh
#
# Collectd script for collecting the number of routes going through each
# BGP neighour. Works for bird.
#
# See https://dn42.net/Services-Statistics
INTERVAL=60
HOSTNAME=mydn42router
[ && HOSTNAME=""
while
do
| | | while
do
nbroutes=
done
# FIXME: we probably count non-BGP routes here
totalroutes=
done
munin plugin
- add the following to /etc/munin/plugin-conf.d/munin-node
[quagga_bgp]
user root
- place the script as quagga_bgp in /etc/munin/plugins
#!/bin/sh
#
#
# Munin Plugin to show quagga bgp4 routes
# Standard Config Section Begin ##
if [; then
fi
if [; then
fi
# Standard Config Section End ####
# Measure Section Begin ##########
data=()
if [; then
else
fi
# Measure Section ##########
- restart munin-node