[AusNOG] Email on route change (Juniper SRX)

Michael Dale mdale at dalegroup.net
Mon Feb 10 12:01:32 EST 2014


Hey All,

I have a number of clients running Juniper SRX firewalls. Many have dual internet connections (ADSL/ADSL, ADSL/3G etc).

I would like to generate an email when the backup link is in use.

Due to the way it is setup both links are always active and it is just the route preference that changes.

Options I’ve thought about include:

1) Cacti alert when x amount of traffic goes over backup link (slow and not very accurate).
2) Juniper SRX sends an email when the route preference changes (this would be my ideal but cannot see how todo it).
3) Some Windows/Linux app that sends an email when the trace route changes (I could write something to track these).

2) is what I would love todo, but without purchasing extra hardware/software I don’t believe the SRX can do it :(

I could probably use the JunoScript script API, I even wrote a basic PHP class for it (some info: http://forums.juniper.net/t5/SRX-Services-Gateway/PHP-example-API/m-p/62975#M17637 ), but again effort.

Anyone got a simply/quick solution? :D

Thanks,
Michael.


More information about the AusNOG mailing list