snmptrapd to mySQL (all variables)

Igor Mironov <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CACdyNh_RdF5Vxn6Q2njq7daJNA5_vqRb2r=PxK9kNuW4muKEQQ@mail.gmail.com>
Hello!



I have setup net-snmp with MySQL logging and I get all traps in mySQL-table.

I am also logging traps in text-file and use traptoemail as a trap-handler
for email-notifications.

Everything works fine except one:

In my text-logs and email-notifications I got "full" trap-messages like:



<p>Host: <UNKNOWN> (UDP: [10.0.0.105]:57760->[10.2.148.5]:162)

          DISMAN-EVENT-MIB::sysUpTimeInstance  74:14:19:34.99

                    SNMPv2-MIB::snmpTrapOID.0
SNMPv2-SMI::enterprises.9.9.41.2.0.1

SNMPv2-SMI::enterprises.9.9.41.1.2.3.1.2.9536  "LINEPROTO"

SNMPv2-SMI::enterprises.9.9.41.1.2.3.1.3.9536  6

SNMPv2-SMI::enterprises.9.9.41.1.2.3.1.4.9536  "UPDOWN"

SNMPv2-SMI::enterprises.9.9.41.1.2.3.1.5.9536  "Line protocol on Interface
Tunnel8, changed state to down"

SNMPv2-SMI::enterprises.9.9.41.1.2.3.1.6.9536  74:14:19:34.99

        SNMP-COMMUNITY-MIB::snmpTrapAddress.0  10.0.0.105

      SNMP-COMMUNITY-MIB::snmpTrapCommunity.0  "xxx"

             SNMPv2-MIB::snmpTrapEnterprise.0
SNMPv2-SMI::enterprises.9.9.41.2</p>



BUT in mySQL-table I have ONLY short record like
“SNMPv2-SMI::enterprises.9.9.41.2.0.1” without any variables.

But I do need more variables in mySQL-table like "Line protocol on
Interface Tunnel8, changed state to down"



Can someone tell me how to get variables like: "Line protocol on Interface
Tunnel8, changed state to down" in MySQL-table


Regards,

Igor

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.