I've got a wireless controller configured to send SNMP trap notifications to Kiwi. What I want to do is send out an alert via Kiwi Syslog whenever an access point either associates or disassociates with the controller, but the text that gets sent in the trap notification is too "busy" .. there's an oid in there, and a bunch of other text I am not interested in sending, in the alert.
Is there some way to delete what I don't need, and re-format the text in a more human readable alert?
Here is an example of an "AP Association" and an "AP disassociation." I have bolded the information that I consider the "relevant information" for the alert.
Disassociation:
community=public,enterprise=1.3.6.1.4.1.14179.2.6.3.8,enterprise_mib_name=bsnAPDisassociated,uptime=25757400,agent_ip=10.1.78.9,version=Ver2,bsnAPMacAddrTrapVariable.0=dΘP╕┘p,bsnAPName.0=Truck_Bay
Association:
community=public,enterprise=1.3.6.1.4.1.9.9.513.0.4,enterprise_mib_name=ciscoLwappApAssociated,uptime=25766600,agent_ip=10.1.78.9,version=Ver2,1.3.6.1.4.1.9.9.513.1.1.1.1.5.100.233.80.184.217.112=Truck_Bay,1.3.6.1.4.1.9.9.513.1.1.1.1.16.100.233.80.184.217.112=43,1.3.6.1.4.1.9.9.513.1.1.1.1.36.100.233.80.184.217.112=0