<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I enhanced the check_bgp.pl plugin provided by Indiana University (see the "IU Nagios Plugins" project at SourceForge).  The old check_bgp.pl plugin checks that BGP sessions on a router are up.  The attached check_bgp_new.pl plugin does the same thing, and is upward-compatible with the old check_bgp.pl.  The new plugin has a new optional feature that works only on Juniper routers.  For each BGP session on a Juniper router, the new plugin can check that the number of active or received prefixes falls between given minimum and maximum values.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>We use check_bgp_new at our site to make Nagios notify us when our routing with the outside world gets "funny", like when one ISP suddenly becomes less preferred than another.</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- Pete</DIV><DIV><BR class="khtml-block-placeholder"></DIV><SPAN></SPAN><SPAN></SPAN></SPAN></DIV></BODY></HTML>