Forum Discussion
James_41261
Jan 17, 2012Nimbostratus
Automated setup of SNMP alerts
What is needed:
A way to generate alert emails when a node or pool member reports a down or disabled status containing information on which node and pool(s) are affected on the LTM.
What I'm trying to do:
I know I can setup a custom SNMP alert in user_alert.conf per node/pool that has the custom info I need preset in the body field; issue is we have A Lot of nodes and pools setup and was looking for a way to just pull node and pool info from the LTM config into a script which could then generate and write the alert entries into the user_alert.conf. This would save a lot of repetitive typing (reducing the chance of typos) and could possibly role into a cron job that would check if any new nodes/pools were added and auto create an alert entry. Looking for something that could be ran on the LTMs themselves, not dependent on another device.
Anyone have any scripts or processes to share?
- Ed_Hammond_2611NimbostratusSee if this might help:
- James_41261NimbostratusThanks Ed.
Feb 5 09:09:08 tmm err tmm[5905]: 01010028:3: No members available for pool /Common/test_pool
alert CUSTOM_GENERAL_POOL_NO_MEMBER "No members available for pool (.*?)" { exec command="/root/customAlertHandler.pl general" } alert CUSTOM_ERROR_POOL_MEMBER_STATUS_NODEDOWN "Pool (.*?) member (.*?) monitor status node down\." { exec command="/root/customAlertHandler.pl nodeDown" }
- James_41261NimbostratusMoved my extra alert issue to a new thread:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects