Adding Python icinga/nagios plugin modules as their own repository in FRR?
All - Patrick Velder is working on some python icinga/nagios plugin modules for status checking of BGP peers. I'd like to add to next weeks technical discussion how we as a community would like to support this type of work. Possibly bringing it in as it's own Repository under FRRouting. Patrick - Could you give us an example of how it would work/look like? thanks! donald
Hi there At the moment the plugin uses vtysh to get the JSON output of "show bgp ipvX neighbor X". Some examples:
# Session established: (zrh1)root@cr1:~# check_frr_bgp.py -p 192.168.218.41 OK - Session with 192.168.218.41 (AS65000) is ESTABLISHED since 01w0d23h | 'Updates sent'=6 'Updates received'=2117672
# Session admin shut (state = OK) (zrh1)root@cr1:~# check_frr_bgp.py -p 10.0.12.247 OK - Session with 10.0.12.247 (AS65001) is IDLE (Reason: BGP Notification received) | 'Updates sent'=1466891 'Updates received'=4
# Session down (Warning) (zrh1)root@cr1:~# check_frr_bgp.py -p 10.0.12.247 WARNING - Session with 10.0.12.247 (AS65001) is ACTIVE (Reason: BGP Notification received) | 'Updates sent'=1466891 'Updates received'=4
# Session down (Critical, -c) (zrh1)root@cr1:~# check_frr_bgp.py -p 10.0.12.247 -c CRITICAL - Session with 10.0.12.247 (AS65001) is ACTIVE (Reason: BGP Notification received) | 'Updates sent'=1466891 'Updates received'=4
# IPv6 (same address but different style) (zrh1)root@cr1:~# check_frr_bgp.py -p 2001:db8::1 OK - Session with 2001:db8::1 (AS65001) is ESTABLISHED since 01w0d23h | 'Updates sent'=4 'Updates received'=1585437 (zrh1)root@cr1:~# check_frr_bgp.py -p 2001:db8:0::1 OK - Session with 2001:db8::1 (AS65001) is ESTABLISHED since 01w0d23h | 'Updates sent'=4 'Updates received'=1585459
Currently I'm playing with perfdata. Best regards Patrick On 03.01.2018 15:35, Donald Sharp wrote:
All -
Patrick Velder is working on some python icinga/nagios plugin modules for status checking of BGP peers. I'd like to add to next weeks technical discussion how we as a community would like to support this type of work. Possibly bringing it in as it's own Repository under FRRouting.
Patrick -
Could you give us an example of how it would work/look like?
thanks!
donald
Patrick Velder is working on some python icinga/nagios plugin modules for status checking of BGP peers. I'd like to add to next weeks technical discussion how we as a community would like to support this type of work. Possibly bringing it in as it's own Repository under FRRouting.
I am unsure as to the scope of Patrick's project, but .... I use check_mk, which is, in effect, a python wrapper around the nagios engine. Check_mk installation packages provide a one stop integrated solution for monitoring (pnp4nagios for charts) and alerting (nagios built in engine). It would be nice if this solution could integrate as a check_mk plugin. And publishing it as a plugin there, may provide some visibility to the FRR project, if that is of value. http://mathias-kettner.com/cms_check_plugins_catalog.html I might be able to offer some assistance in making a flavor suitable for check_mk as there is a 'collection agent' side, a server decode portion, and a server presentation portion. And I would like to get visibility into our bgp tables from check_mk, if that capability is available in Patrick's scripts ( are the scripts currently public somewhere?)
Patrick -
Could you give us an example of how it would work/look like?
thanks!
donald
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
participants (3)
-
Donald Sharp -
Patrick Velder -
Raymond Burkholder