Community
Command Central
MVP Program
Monthly Mission
Blogs
Groups
Events
Media Vault
Products
Observability
Network Management
Application Management
IT Security
IT Service Management
System Management
Database Management
Content Exchange
SolarWinds Platform
Server & Application Monitor
Database Performance Analyzer
Server Configuration Monitor
Network Performance Monitor
Network Configuration Manager
SQL Sentry
Web Help Desk
Free Tools & Trials
Store
Home
Products
Network Performance Monitor (NPM)
Need to create trap template for advanced alert
FormerMember
After defining an advanced alert I have not been able to find info on creating a trap template which is needed in the trigger and reset actions for the sendtrap action.
My alert checks for Xmit+Recv bps and compares that to a custom property I added called CommitRate. The alert triggers OK, and shows up in the Active Alerts view, but the trap does not send. THe following error shows up in the Event Log (I replaced the IP address with x's):
A rule requested that an Alert Action called Send SNMP Trap () to x.x.x.x load a trap definition file called .trap, however the file does not exit. Try copying the trap defintion file to the executable directory of the service.
I need some documentation that explains the format/syntax of a trap template for Orion. Is there a form or tool that assists with creating trap templates for advanced alerts?
Find more posts tagged with
Accepted answers
All comments
FormerMember
Update:
I copied the ForwardSyslog.trap template found in the Orion program folder. I was able to send the trap, but I still need to understand the format of this file, and where I can find more info on the variables.
I have edited the file to include one of the OIDs I want, but sniffer shows the Value as NULL. At first the sniffer was showing "Value: Wrong Type (should be Counter32)". After changing the value of DataType from 67 to 5 (guessed), I no longer get the Wrong Type message, now it comes in as "Value: NULL"
Here is the edited file I am working with, I am not having much luck guessing about it's format and variables, e.g. Does DataType=5 actually map to Counter32 or was that a fluke?
Contents of bandwidthalert.trap:
<SNMPTrap><Application Name="SolarWinds SNMP Trap Engine" Version="1.0.28" Copyright="Copyright 1995-2003 SolarWinds.Net All rigths reserved." ReleaseDate="October 2003" TimeStamp="16-Sep-04 01:06 PM"></Application><Trap SourceHostname="" SourceIPAddress="" DestinationHostname="" DestinationIPAddress="" CommunityString="" DateTime="12:00:00 AM 12:00 AM"><OIDs><OID OID="1.3.6.1.2.1.1.3.0" MIB="RFC1213-MIB" Name="sysUpTime.0" Value="0" DataType="67" ValueName="0" HexValue=""></OID><OID OID="1.3.6.1.6.3.1.1.4.1.0" MIB="SNMPv2-MIB" Name="snmpTrapOID.0" Value="1.3.6.1.4.1.11307.10" DataType="6" ValueName="SOLARWINDS-TRAPS" HexValue=""></OID><OID OID="1.3.6.1.6.3.1.1.4.3.0" MIB="SNMPv2-MIB" Name="snmpTrapEnterprise.0" Value="1.3.6.1.4.1.11307" DataType="6" ValueName="SolarWinds" HexValue=""></OID><OID OID="1.3.6.1.4.1.11307.10.1" MIB="SOLARWINDS-TRAPS" Name="AlertMessage" Value="${MessageType} ${Message}" DataType="4" ValueName="${MessageType} ${Message}" HexValue=""></OID></OIDs></Trap></SNMPTrap>
FormerMember
Update 2:
I changed my method a little and seems as though I am close to getting it to work. I can't figure out how to get the value of the OID into the trap. I am assuming it will be a variable that is assigned to Value=, but I don't know what it should be. I have tried "${NetObjectID}", "${PropertyValue}", and "${AlertMessage}" which all resulted in Value: NULL.
Here is my latest trap template:
<SNMPTrap>
<Application Name="SolarWinds SNMP Trap Engine"
Version="1.0.28"
Copyright="Copyright 1995-2003 SolarWinds.Net All rigths reserved."
ReleaseDate="October 2003" TimeStamp="16-Sep-04 01:06 PM">
</Application>
<Trap SourceHostname=""
SourceIPAddress=""
DestinationHostname=""
DestinationIPAddress="" CommunityString=""
DateTime="12:00:00 AM 12:00 AM">
<OIDs>
<OID OID="1.3.6.1.2.1.1.3.0"
MIB="RFC1213-MIB"
Name="sysUpTime.0"
Value="0"
DataType="67"
ValueName="0"
HexValue=""></OID>
<OID OID="1.3.6.1.6.3.1.1.4.1.0"
MIB="SNMPv2-MIB"
Name="snmpTrapOID.0" Value="1.3.6.1.4.1.11307.10"
DataType="6"
ValueName="SOLARWINDS-TRAPS"
HexValue=""></OID>
<OID OID="1.3.6.1.6.3.1.1.4.3.0"
MIB="SNMPv2-MIB"
Name="snmpTrapEnterprise.0"
Value="1.3.6.1.4.1.11307"
DataType="6"
ValueName="SolarWinds"
HexValue=""></OID>
<OID OID="1.3.6.1.2.1.31.1.1.1.6.0"
MIB="IF-MIB"
Name="ifHCInOctets.0"
Value="1.3.6.1.2.1.31.1.1.1.6.0"
DataType="5"
ValueName="${AlertMessage}"
HexValue=""></OID>
<OID OID="1.3.6.1.2.1.31.1.1.1.10.0"
MIB="IF-MIB"
Name="ifHCOutOctets.0"
Value="1.3.6.1.2.1.31.1.1.1.10.0"
DataType="5"
ValueName="${AlertMessage}"
HexValue=""></OID>
</OIDs>
</Trap>
</SNMPTrap>
FormerMember
I'm in the same boat. I have to do reverse engineering on the ForwardSyslog.trap file, and I have to guess the values for the different fields.
Is there any documentation for these advanced altert trap templates? If so ... Where can I find it?
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of