<?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 Splunk scripted alert not taking the arguments/variables in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65385#M904</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;
Am trying to configure scripted alerts from Splunk. But Splunk is not taking the arguments that are being passed. seeing the below error in the log files.&lt;/P&gt;

&lt;P&gt;Cannot find script at /usr/Splunk/bin/scripts/sendtobmc.sh $5 $0 $1 $2 $3&lt;/P&gt;

&lt;P&gt;If i remove the arguments that are being passed ($5 $0 ...) to the script its running the script fine with no issues&lt;/P&gt;

&lt;P&gt;Please let me know if am missing anything here.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Ajay.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2013 15:08:38 GMT</pubDate>
    <dc:creator>ajaybguthi</dc:creator>
    <dc:date>2013-06-17T15:08:38Z</dc:date>
    <item>
      <title>Splunk scripted alert not taking the arguments/variables</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65385#M904</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
Am trying to configure scripted alerts from Splunk. But Splunk is not taking the arguments that are being passed. seeing the below error in the log files.&lt;/P&gt;

&lt;P&gt;Cannot find script at /usr/Splunk/bin/scripts/sendtobmc.sh $5 $0 $1 $2 $3&lt;/P&gt;

&lt;P&gt;If i remove the arguments that are being passed ($5 $0 ...) to the script its running the script fine with no issues&lt;/P&gt;

&lt;P&gt;Please let me know if am missing anything here.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Ajay.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65385#M904</guid>
      <dc:creator>ajaybguthi</dc:creator>
      <dc:date>2013-06-17T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk scripted alert not taking the arguments/variables</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65386#M905</link>
      <description>&lt;P&gt;That's because the variables for the arguments are not defined. Is your scripts expecting the 5 arguments ? Post your script.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 16:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65386#M905</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2013-06-17T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk scripted alert not taking the arguments/variables</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65387#M906</link>
      <description>&lt;P&gt;When you specify the script to run via SplunkWeb, you do not need to extropolate which variables are to be passed. Instead, the script can act as wrapper to handle ALL variables.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled500_1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;At this point, your script has the ability to use the variables.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# sendtobmc.sh
#! /bin/sh

bmcExec=/usr/bin/bmc/myBMCExec.sh
$bmcExec "$5" "$0" "$1" "$2" "$3"

# end of sendtobmc.sh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In essence the script is a handler or a wrapper to handle the output passed by the alert.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;gc&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 16:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-scripted-alert-not-taking-the-arguments-variables/m-p/65387#M906</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2013-06-17T16:29:57Z</dc:date>
    </item>
  </channel>
</rss>

