F5 – Generic SNMP health check


AllCloud Blog:
Cloud Insights and Innovation

F5 LTM Generic SNMP monitor.

The following is a little generic snmp component to health monitor servers under LTM.

Hope you’ll enjoy it, Comments are welcome.

The following is a little script that should be used as an external monitor. It performs snmpget requests on the node and evaluate the response, based on that returns server status.

Requirements:

  • Command line arguments:
    • community – the RO snmp community
    • oid – the OID to request
    • expected_val – the expected value to indicate server is UP

OR

  • environment variables:
    • community – the RO snmp community
    • oid – the OID to request
    • expected_val – the expected value to indicate server is UP

I found that using the variable is just more clear to configure and view, beside that it’s 100% same

Download the code, rename it to .sh SNMP_Check

BTW – this is also published on F5 Dev Central https://devcentral.f5.com/wiki/AdvDesignConfig.Generic_SNMP_monitor.ashx and https://devcentral.f5.com/wiki/AdvDesignConfig.Generic_SNMP_monitor_using_snmpget.ashx

Enjoy

Lahav

Lahav Savir

Founder and CTO, Cloud Platforms

Read more posts by Lahav Savir

Copyright 2021 | AllCloud | All Rights Reserved