# custom snmp trap

**URL:** <https://community.f5.com/t/custom-snmp-trap/31090>\
**Category:** Technical Forums\
**Tags:** design, config\
**Created:** [November 24, 2011, 6:20am UTC](https://community.f5.com/t/custom-snmp-trap/31090 "2011-11-24T06:20:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rise\_77519](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@Rise\_77519](https://community.f5.com/u/Rise_77519)\
**Post date:** [November 24, 2011, 6:20am UTC](https://community.f5.com/t/custom-snmp-trap/31090/1 "2011-11-24T06:20:15Z")

</div>

Hi All,

I need to configure a custom snmp trap. for exam. if cpu usage was exceed %60 rate I should get a alert message.

Another question that I get clear alert message when pool member status enabled but I would like to know that can I get a similar clear message " CPU tempature is too high" or are there clear message for all OIDs.

Thank you..

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [November 24, 2011, 1:29pm UTC](https://community.f5.com/t/custom-snmp-trap/31090/2 "2011-11-24T13:29:08Z")

</div>

I need to configure a custom snmp trap. for exam. if cpu usage was exceed %60 rate I should get a alert message.as i understand, trap is sent when there is log matching the trap definition. there is no such cpu usage was exceeded XX% log message; anyway, you may write script to inject that message to log, so trap can be sent accordingly.

not sure if you have seen this article.

Custom SNMP Traps by Deb

[http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/256/Custom-SNMP-Traps.aspx](http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/256/Custom-SNMP-Traps.aspx)

I would like to know that can I get a similar clear message " CPU tempature is too high" or are there clear message for all OIDs. i do not think there is clear trap for all oids. there is some but you know not all.

---

<div class="post-metadata">

**Author:** ![Rise\_77519](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@Rise\_77519](https://community.f5.com/u/Rise_77519)\
**Post date:** [November 25, 2011, 8:34am UTC](https://community.f5.com/t/custom-snmp-trap/31090/3 "2011-11-25T08:34:42Z")

</div>

Hi Nitass,

Thank you for your reply. I have looked into the link before. I agree with you,I should write script to accomplish my purpose. I have found some examples about writing script.
