[dev] Adding Python icinga/nagios plugin modules as their own repository in FRR?

Patrick Velder lists at velder.li
Wed Jan 3 09:45:56 EST 2018


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 at 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 at 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 at 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 at 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 at 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 at 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




More information about the dev mailing list