Forum Discussion
smp_86112
Cirrostratus
Jul 29, 2008Custom SNMP Traps - clarify "match string" usage
Reference the article posted by deb a few days ago:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=256
After reading this article, I'm still a bit confused on how the "match string" is used. The way I understand this process is syslog-ng sends a message with an alert code. Alertd receives that code and maps it to an alert definition in /var/tmpfs/run/bigip_error_maps.dat. Then it performs the action in /config/user_alert.conf based on the definition.
If my understanding is accurate...I have a couple of questions:
1) If alertd relies on the alert code from syslog-ng and not the match string, can someone please clarify the role of the match string? For example, using deb's article, why would I create a definition like this:
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_SERVERX "Pool member 10.0.0.154:80 monitor status (.*?)." {
snmptrap OID=".1.3.6.1.4.1.3375.1.1.110.200"
}
and not this (without the match string):
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_SERVERX {
snmptrap OID=".1.3.6.1.4.1.3375.1.1.110.200"
}
2) Is it possible to customize the message string sent by an alert?
5 Replies
- Deb_Allen_18Historic F5 AccountThe alert code is used to find a match string that is maintained in the bigip_error_maps.dat file. This is the method used by F5 development to maintain most of the alert match strings to build the running configuration @ runtime using the background process described in the article.
- smp_86112
Cirrostratus
I'm still not sure I have this right. Let me restate to confirm.alert BIGIP_AUTH_FAIL "FAILED LOGIN (.*) FROM (.*) FOR (.*), Authentication failure" { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.27" }
- Deb_Allen_18Historic F5 AccountThe example you give is from the pre-configured alert.conf file, and there is no need to duplicate it in the user_alert.conf. I think the different uses of the 2 conf files might be what is confusing you.
- smp_86112
Cirrostratus
I think I understand the what the two conf files are used for. And I think I understand this which is stated very clearly: - Deb_Allen_18Historic F5 AccountOnly if there is a matching alert code.
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