You can use the (undocumented) condition "list" or "in".
[Entity Match]
bgpPeerRemoteAs list 174,3356,2914,5580
You can use the (undocumented) condition list.
/Markus
2015-12-10 10:37 GMT+01:00 Robert Williams <Robert@custodiandc.com>:
Hi,
What’s the correct syntax for an entity match which will match a selection of ASNs? I need an alert checker which will look for a specific set of ASNs and alert for any BGP session being not-up.
Currently for our iBGP we use:
[Conditions]
bgpPeerState ne established
bgpPeerAdminStatus notequals stop
[Device]
*
[Entity Match]
bgpPeerRemoteAs match <ourASN>
This works perfectly.
Now – what I’m after is that I need a new checker which will match eBGP ASNs like 174,3356,2914,5580 etc. all in one rule (the ‘important’ ASNs, for want of a better term).
I have tried a selection of things but I’m obviously missing what the logical ‘or’ element should be in this case, as all my attempts at using multiple ASNs within a match just result in zero matches.
Can someone point me in the right direction please? Cheers!
Robert Williams
Custodian Data Centre
Email: Robert@CustodianDC.com
http://www.CustodianDC.com
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium