Lab 1.2: Configuring SNMP for sending traps/alerts to Splunk

Note

Estimated time to complete: 5 minutes

This feature provides the ability for the customer to specify a message to be displayed on the BIG-IQ login page.

Lab environment access

If you have not yet visited the page Getting Started, please do so.

Tasks

Prerequisites Splunk

  1. Connect via SSH or Web Shell to the system Ubuntu Lamp Server. (if you use the Web Shell, login as f5student first: su - f5student).

  2. Execute the following commands to start the SNMP trap Listener:

    ./splunk/startSNMPtrapListener.sh
    
  3. Open BIG-IQ, go to System > This Device > SNMP Configuration > SNMP Traps. Click Create.

  • Name: snmptrad
  • Version: V2C
  • Community: public
  • Destination: 10.1.1.5
  • Port: 162
../../_images/img_module1_lab2_12.png
  1. The Devices and System alerts are located under Monitoring > Alerts & Notifications. It will display all triggered alerts.
../../_images/img_module1_lab2_21.png
  1. Click on Settings to see the type of alerts available.
../../_images/img_module1_lab2_31.png
  1. From you lab deployment, look for SJC-vBIGIP01.termmarc.com device, click on Details and stop the device.

Wait for few seconds, you should coming a new alert showing the device unavailable in the Alerts list.

  1. Now, let’s have a look at the Applications Alerts. Go to Applications > Applications, click on the IT_apps Application, then on media.site42.example.com Application Service.

On the top right of the application dashboard, click on the Health button.

../../_images/img_module1_lab2_4.png
  1. Change the Server Site RTT warning and critical thresholds to 1ms and 2ms. Under Actions, enable SNMP Trap.
../../_images/img_module1_lab2_5.png
  1. Back on the Application Service dashboard, notice some new alerts are being created about Server Site RTT.
../../_images/img_module1_lab2_6.png
  1. Now, let’s open Splunk to see if any SNMP traps were received. From you lab deployment, click on the SPLUNK button on the system Ubuntu Lamp Server. Use admin/purple123 to authenticate.
../../_images/img_module1_lab2_7.png