SRX

Expand all | Collapse all

event-trigger SRX345 on monitoring the interface bandwidth > 90%

Jump to Best Answer
  • 1.  event-trigger SRX345 on monitoring the interface bandwidth > 90%

    Posted 12-13-2019 01:13

    Hi, Guys,

     

    Just would like to know how to config the following requirement:

     

    Conditions:

    1. SRX345 is monitoring the WAN interfaces of bandwidth utilization.

    2. If the utilization goes upto the 90%, some events will happen ( some commands).

     

    If I can can create an event-option to achieve the task ? any configuration example ?

     

    Many thanks



  • 2.  RE: event-trigger SRX345 on monitoring the interface bandwidth > 90%
    Best Answer

    Posted 12-13-2019 04:25

    Hello,

     

    If You need to monitor a single logical interface (be it VLAN, IRB or AE), then this is possible with JUNOS RMON.

    Rough algorithm:

    1/ configure a RMON alarm and event with log for that interface, OID would be ifHCOut1SecRate or ifHCIn1SecRate

    https://www.juniper.net/documentation/en_US/junos/topics/concept/rmon-for-monitoring-service-quality-junos-nm.html

    https://apps.juniper.net/mib-explorer/navigate.jsp#object=ifHCIn1SecRate&product=Junos%20OS&release=15.1x49-D180

    https://apps.juniper.net/mib-explorer/navigate.jsp#object=ifHCOut1SecRate&product=Junos%20OS&release=15.1x49-D180

    2/ when RMON alarm fires, You'd get a SNMP_RMON syslog message 

    3/ configure Your event-policy to act on the above message

     

    If You need to monitor 2 or more logical interfaces and do something when sum of BW utilizations across all monitored interfaces crosses the threshold, then You need to use an event-script.

    HTH

    Thx

    Alex

     



  • 3.  RE: event-trigger SRX345 on monitoring the interface bandwidth > 90%

    Posted 12-13-2019 07:37

    Hi, Alex,

    Cool...

    Thanks for your great advice and recommendation...

     

    Will try this solution,

     

    Cheers



  • 4.  RE: event-trigger SRX345 on monitoring the interface bandwidth > 90%

    Posted 12-16-2019 13:58

    Hi Ben,

     

    depending on what you are tying to achieve, you may want to check the average bandwidth utilization of an interface for a bit longer period(for example, 5 minutes) rather than ifHCIn1SecRate/ifHCOut1SecRate. You can see a proof of concept event script here: https://github.com/jumation/bwutil

     

    I didn't test it on SRX, but on MX it worked fine:

     

    bwutil_test-setup.png



  • 5.  RE: event-trigger SRX345 on monitoring the interface bandwidth > 90%

    Posted 12-16-2019 18:22

     

    Thanks so much for your advice and recommendation..

     

    I shall test this POC.

     

    Cheers

    Benson



  • 6.  RE: event-trigger SRX345 on monitoring the interface bandwidth > 90%

    Posted 12-17-2019 02:14

    No problem. In addition, I updated the installation instructions with a screenshot which highlights what needs to be changed in text editor before uploading the script to device:

     

    bwutil_conf.png