Forum Discussion
smp_86112
Cirrostratus
Apr 16, 2014Generic log levels in alertd.conf (v11)
I was hoping someone could help me understand where these directives in the /etc/alertd/alertd.conf come from. It seems that they do what I would expect, which is send trap on every message of the co...
nitass
Employee
Apr 21, 2014But what I don't understand is why BIGIP_LOG_EMERG also works when that is not predefined.
isn't it predefined in /etc/alertd/alert.conf?
[root@ve11a:Active:In Sync] config grep BIGIP_LOG_EMERG /etc/alertd/alert.conf
alert BIGIP_LOG_EMERG "^[0-9a-f]{8}:0: (.*)" {
The first line of an alert definition may also optionally contain the match string, as in this example, which uses a regular expression to catch all local authentication failure log messages:
alert BIGIP_AUTH_FAIL "FAILED LOGIN (.*) FROM (.*) FOR (.*), Authentication failure" {
snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.27"
}
If, as in our original example, the match string is not defined in the alert definition itself, you can find it in the /var/tmpfs/run/bigip_error_maps.dat by searching for the alert name with this command:
grep BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS /var/tmpfs/run/bigip_error_maps.dat
Custom SNMP Traps by Deb Allen
https://devcentral.f5.com/articles/custom-snmp-traps.U1UeC1dhcdUsmp_86112
Cirrostratus
Apr 21, 2014> isn't it predefined in /etc/alertd/alert.conf?
Yes it is, but obviously I'm not making myself clear. Maybe this will help. Can you explain why this returns something:
'grep BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS /var/run/bigip_error_maps.dat`
but this does not:
`grep BIGIP_LOG_EMERG /var/run/bigip_error_maps.dat`
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
