<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with sending SNMP traps to other systems in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164170#M2678</link>
    <description>&lt;P&gt;Hi, depending on the distribution used some packages must be installed to make use of snmptrap:&lt;/P&gt;

&lt;P&gt;net-snmp&lt;BR /&gt;
net-snmp-libs&lt;BR /&gt;
net-snmp-utils&lt;BR /&gt;
lm_sensors-libs&lt;/P&gt;

&lt;P&gt;Which distribution you using?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2015 12:07:49 GMT</pubDate>
    <dc:creator>rodrigorsilva</dc:creator>
    <dc:date>2015-10-02T12:07:49Z</dc:date>
    <item>
      <title>Problem with sending SNMP traps to other systems</title>
      <link>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164167#M2675</link>
      <description>&lt;P&gt;I tried to set up an alert Script in Pearl sending SNMP traps to other host like &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Alert/SendingSNMPtrapstoothersystems"&gt;here&lt;/A&gt;. I Changed the Host:Port to my values, but when i try to run this script i got this error:&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;No log handling enabled - turning on stderr logging&lt;/P&gt;

&lt;P&gt;1.3.6.1.4.1.27389.1.1: Value out of range (1.3.6.1.4.1.27389.1.2)&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Im not very good in Perl, so how can I fix this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 13:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164167#M2675</guid>
      <dc:creator>fahoerma</dc:creator>
      <dc:date>2013-12-03T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sending SNMP traps to other systems</title>
      <link>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164168#M2676</link>
      <description>&lt;P&gt;Can you post the code in PERL?&lt;/P&gt;

&lt;P&gt;Rodrigo Ribeiro&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164168#M2676</guid>
      <dc:creator>rodrigorsilva</dc:creator>
      <dc:date>2015-06-03T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sending SNMP traps to other systems</title>
      <link>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164169#M2677</link>
      <description>&lt;P&gt;Rodrigo -&lt;/P&gt;

&lt;P&gt;I am having the exact same problem as the poster above, using the Splunk-provided SNMP perl script (pasted below). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/usr/bin/perl
#
# sendsnmptrap.pl: A script to enable using Splunk alerts to send an SNMP trap.
#
# Modify the following code as necessary for your local environment.
#
$hostPortSNMP = "qa-tm1:162"; # Host:Port of snmpd or other SNMP trap handler
$snmpTrapCmd = "/usr/bin/snmptrap"; # Path to snmptrap, from &lt;A href="http://www.net-snmp.org" target="test_blank"&gt;http://www.net-snmp.org&lt;/A&gt;
$TRAPOID = "1.3.6.1.4.1.27389.1.2"; # Object IDentifier for traps/notifications 
$OID = "1.3.6.1.4.1.27389.1.1"; # Object IDentifier for objects, Splunk Enterprise OID is 27389
# Parameters passed in from the alert.
# $1-$9 is the positional parameter list. $ARGV[0] starts at $1 in Perl.
$searchCount = $ARGV[0]; # $1 - Number of events returned
$searchTerms = $ARGV[1]; # $2 - Search terms
$searchQuery = $ARGV[2]; # $3 - Fully qualified query string
$searchName = $ARGV[3]; # $4 - Name of saved search
$searchReason = $ARGV[4]; # $5 - Reason saved search triggered
$searchURL = $ARGV[5]; # $6 - URL/Permalink of saved search
$searchTags = $ARGV[6]; # $7 - Always empty as of 4.1
$searchPath = $ARGV[7]; # $8 - Path to raw saved results in Splunk instance (advanced)

# Send trap, with the parameter list above mapping down into the OID.
$cmd = qq/$snmpTrapCmd -v 2c -c public $hostPortSNMP '' $TRAPOID $OID.1 i $searchCount $OID.2 s "$searchTerms" $OID.3 s "$searchQuery" $OID.4 s "$searchName" $OID.5 s "$searchReason" $OID.6 s "$searchURL" $OID.7 s "$searchTags" $OID.8 s "$searchPath"/;
 system($cmd);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you could provide any assistance I would greatly appreciate it.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
JB&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 20:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164169#M2677</guid>
      <dc:creator>butzowj</dc:creator>
      <dc:date>2015-10-01T20:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sending SNMP traps to other systems</title>
      <link>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164170#M2678</link>
      <description>&lt;P&gt;Hi, depending on the distribution used some packages must be installed to make use of snmptrap:&lt;/P&gt;

&lt;P&gt;net-snmp&lt;BR /&gt;
net-snmp-libs&lt;BR /&gt;
net-snmp-utils&lt;BR /&gt;
lm_sensors-libs&lt;/P&gt;

&lt;P&gt;Which distribution you using?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 12:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164170#M2678</guid>
      <dc:creator>rodrigorsilva</dc:creator>
      <dc:date>2015-10-02T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sending SNMP traps to other systems</title>
      <link>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164171#M2679</link>
      <description>&lt;P&gt;Rodrigo -&lt;/P&gt;

&lt;P&gt;Thanks for the assistance, it turns out that it was a net-snmp dependency issue on two of our three search heads.  I am still seeing the error above when I manually execute the script, but when the script is fired as part of a Splunk alarm, it works properly.&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;BR /&gt;
JB&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 15:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Problem-with-sending-SNMP-traps-to-other-systems/m-p/164171#M2679</guid>
      <dc:creator>butzowj</dc:creator>
      <dc:date>2015-10-02T15:11:33Z</dc:date>
    </item>
  </channel>
</rss>

