<?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: Send trap NSMP to an external system in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208499#M3685</link>
    <description>&lt;P&gt;Thank you bmacias84,&lt;BR /&gt;
I did something like you suggested:&lt;BR /&gt;
in my script I take the tgz file containing results, I explode it and I send results in the 8th field.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 15:35:35 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-11-15T15:35:35Z</dc:date>
    <item>
      <title>Send trap NSMP to an external system</title>
      <link>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208496#M3682</link>
      <description>&lt;P&gt;Hi at all,&lt;BR /&gt;
I have a (probably) very stupid question: I have to send alerts to an external system (IBM NetCool) using SNMP traps.&lt;BR /&gt;
I configured an alert to run a perl script to do this and runs.&lt;BR /&gt;
My question is: Splunk passes to the script eight parameters:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;$ARGV[0]; # $1 - Number of events returned &lt;/LI&gt;
&lt;LI&gt;$ARGV[1]; # $2 - Search terms&lt;/LI&gt;
&lt;LI&gt;$ARGV[2]; # $3 - Fully qualified query string &lt;/LI&gt;
&lt;LI&gt;$ARGV[3]; # $4 - Name of savedsearch &lt;/LI&gt;
&lt;LI&gt;$ARGV[4]; # $5 - Reason saved search triggered &lt;/LI&gt;
&lt;LI&gt;$ARGV[5]; # $6 - URL/Permalink of saved search&lt;/LI&gt;
&lt;LI&gt;$ARGV[6]; # $7 - Always empty as of  4.1 &lt;/LI&gt;
&lt;LI&gt;$ARGV[7]; # $8 - Path to raw saved results in Splunk instance (advanced)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;but I don't see the search results (events that triggered my alert).&lt;/P&gt;

&lt;P&gt;How can I pass to NetCool these results?&lt;BR /&gt;
Maybe NetCool must connect to Splunk to the link of $ARGV[7] ?&lt;BR /&gt;
It isn't so functional! probably there is another way!&lt;/P&gt;

&lt;P&gt;In addition I see that parameters $ARGV[2] and $ARGV[3] give the same value (alert search).&lt;/P&gt;

&lt;P&gt;Bye.&lt;/P&gt;

&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 11:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208496#M3682</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-03T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Send trap NSMP to an external system</title>
      <link>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208497#M3683</link>
      <description>&lt;P&gt;Hello @cusello,&lt;/P&gt;

&lt;P&gt;Why not just have your script read the $ARGV[5] and send the results?  I would also suggest building this as an alert action similar to &lt;A href="https://github.com/httpstergeek/splunk-add-on-jira-alerts/tree/master/bin"&gt;splunk-add-on-jira-alerts&lt;/A&gt; which does things similarly.  Also alert actions are first class citizens in Splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 14:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208497#M3683</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2016-11-03T14:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Send trap NSMP to an external system</title>
      <link>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208498#M3684</link>
      <description>&lt;P&gt;Did you see the SNMP-ma app?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 22:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208498#M3684</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-11-03T22:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Send trap NSMP to an external system</title>
      <link>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208499#M3685</link>
      <description>&lt;P&gt;Thank you bmacias84,&lt;BR /&gt;
I did something like you suggested:&lt;BR /&gt;
in my script I take the tgz file containing results, I explode it and I send results in the 8th field.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-trap-NSMP-to-an-external-system/m-p/208499#M3685</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-15T15:35:35Z</dc:date>
    </item>
  </channel>
</rss>

