Some useful scripts for monitoring
Monitor BGP in Quagga routing daemon.
perl check_bgp.pl
User should be in sudoers with permissions for vtysh. Smth like that:
youruser ALL=(ALL) NOPASSWD: /usr/bin/vtysh -c sh ip*
Get qtype stats from bind9 DNS.
python bind_stats.py %QTYPE%
$ python bind_stats.py AAAA
198556650
-
pip install requests
-
Of course bind9 should be configured with json support. We hate XML, right? In bind config do not forget to add smth like:
statistics-channels {
inet 127.0.0.1 port 8080 allow { 127.0.0.1; };
};
Just a funny script for modifying traceroute output with scapy.
- Block icmp6 on local firewall (ip6tables)
- Add alias ipv6 address to the interface
- Run the script with needed params
python modify_path.py -i interface_name -r replace_ip
More details at https://spronin.blogspot.ru/2016/12/when-scapy-gets-bored.html
- pip install scapy