Member since
08-17-2015
9
Posts
0
Kudos Received
1
Solution
02-17-2017
04:13 PM
We are using this in our environment. It works fine. If we would like to get the host name in the alert next what should we add to the snmptrap command ? You have the alerthost in this sample command snmptrap -v 2c-c public localhost '' APACHE-AMBARI-MIB::apacheAmbariAlert alertDefinitionName s "definitionName" alertDefinitionHash s "definitionHash" alertName s "name" alertText s "text" alertState i 0 alertHost s "host" alertService s "service" alertComponent s "component" Like this what will be the command for snmp_mib_script.sh - to include the alertHost ? /usr/bin/snmptrap -v 2c -c $COMMUNITY $HOST '' APACHE-AMBARI-MIB::apacheAmbariAlert alertDefinitionName s "$1" alertName s "$2" alertText s "$5" alertState i $STATE alertService s "$3"
... View more