Created on 12-30-2015 04:16 PM - edited 09-16-2022 02:55 AM
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?
Created 12-30-2015 05:44 PM
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!
Created 12-30-2015 05:44 PM
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!