Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Ambari 2.1.2 snmptrap

avatar
Super Collaborator

we got ambari 2.1.2 and we are able to send snmptraps to externals monitoring servers. however our monitoring folks says they don't see complete message to format it on their side.

is it related to https://issues.apache.org/jira/browse/AMBARI-13205... bug?

1 ACCEPTED SOLUTION

avatar

Currently we don't provide a MIB so users can choose to organize their structure in any way they want. Moving forward in Ambari's future, we may provide an Apache MIB. I believe thats what the ticket, that you referenced, was opened for (along with the patch, README and other inform necessary for the implementation) : https://issues.apache.org/jira/browse/AMBARI-1320..

Today, we use a single OID for all of Alerts, and the body of the trap looks like this:

2015-07-22 13:28:41 0.0.0.0(via UDP: [172.16.204.221]:41891->[172.16.204.221]) TRAP, SNMP v1, community public
SNMPv2-SMI::zeroDotZero Cold Start Trap (0) Uptime: 0:00:00.00
SNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkUp
IF-MIB::linkUp = STRING: "
     
[Alert] NameNode Last Checkpoint
[Service] HDFS
[Component] NAMENODE
[Host] revo2.hortonworks.local
Last Checkpoint: [0 hours, 43 minutes, 44 transactions]
    " IF-MIB::linkUp = STRING: "
      [OK] NameNode Last Checkpoint

Hope this helps!

View solution in original post

1 REPLY 1

avatar

Currently we don't provide a MIB so users can choose to organize their structure in any way they want. Moving forward in Ambari's future, we may provide an Apache MIB. I believe thats what the ticket, that you referenced, was opened for (along with the patch, README and other inform necessary for the implementation) : https://issues.apache.org/jira/browse/AMBARI-1320..

Today, we use a single OID for all of Alerts, and the body of the trap looks like this:

2015-07-22 13:28:41 0.0.0.0(via UDP: [172.16.204.221]:41891->[172.16.204.221]) TRAP, SNMP v1, community public
SNMPv2-SMI::zeroDotZero Cold Start Trap (0) Uptime: 0:00:00.00
SNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkUp
IF-MIB::linkUp = STRING: "
     
[Alert] NameNode Last Checkpoint
[Service] HDFS
[Component] NAMENODE
[Host] revo2.hortonworks.local
Last Checkpoint: [0 hours, 43 minutes, 44 transactions]
    " IF-MIB::linkUp = STRING: "
      [OK] NameNode Last Checkpoint

Hope this helps!