Commit 1a4de79c authored by Sigmund Augdal's avatar Sigmund Augdal

Added simple script to check bfd status and zabbix agent config to allow zabbix to run it

parent fb8b92c1
#! /bin/bash
bfdd-control status|grep state|awk '{print $5}'|cut -d= -f2|sort|uniq -c|awk '{print $1, $2}'
......@@ -4,9 +4,12 @@ version=$(git describe|perl -p -e 's/v([^-]+)-(\d+)-g.+/\1+\2/')
install_path=$(pwd)/pkg
rm -rf pkg/opt
target=pkg/etc/zabbix/zabbix_agentd.d
mkdir -p $target
cp userparameter_nova_router.conf $target
target=pkg/opt/nova_router_services
mkdir -p $target/bin
cp clean_stale.py dhcp_configurator.py iptables_configurator.py neighbors.py nova_bfd_monitor.py $target/bin
cp clean_stale.py dhcp_configurator.py iptables_configurator.py neighbors.py nova_bfd_monitor.py bfd_status $target/bin
mkdir -p $target/lib
cp init-functions $target/lib
......
UserParameter=nova.bfd.status,/opt/nova_router_services/bin/bfd-status
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