Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

Re: Re: SNMP alerts and actions

$
0
0

I know I can use the rules and actions, I've already got that part set up.  What I'm asking about is pulling certain info out of the trap to put into the email alert.

 

For example, if my trap is

11/18/2014 2:19 PM : StorageManagement-MIB:storageManagementEvent.0.904  SNMP Trap

     Received Time:11/18/2014 2:19:07 PM

Source:10.x.x.x(servername)

Community:dellservers

     Variable Bindings

messageIDEvent:= 2048

          descriptionEvent:= Device failed

locationEvent:= Controller 0, Connector 0

objectNameEvent:= Physical Disk 0:0:2

objectOIDEvent:= 1.3.6.1.4.1.674.10893.1.20.130.4.1.1.3

objectNexusEvent:= \0\0\0\2

          currentStatusEvent:= 5

previousStatusEvent:= 5

snmpTrapOID:= StorageManagement-MIB:storageManagementEvent.0.904 (1.3.6.1.4.1.674.10893.1.20.200.0.904)

sysUpTime:= 3 hours 37 minutes 0.34 second (1302034)

experimental.1057.1.0:= 10.200.32.219

snmpTrapEnterprise:= StorageManagement-MIB:storageManagementEvent (1.3.6.1.4.1.674.10893.1.20.200)

How would I go about only including the descriptionEvent (Device failed) and objectNameEvent (Physical Disk 0:0:2) in the email alert, without including the rest of the info?  I don't see any variables in the docs that look like they would give me that information, unless I'm just missing something.  All I see that looks close is ${Message}, which is basically all of the above info.


Viewing all articles
Browse latest Browse all 20396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>