<?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: Why Splunk triggered alert is not working for my script and getting error &amp;quot;'OPENSSL_1.0.0' not found (required by ssh)&amp;quot;? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197348#M3426</link>
    <description>&lt;P&gt;FYI, here is a self-adjusting wrapper script that is based off of the name so no hardcoding is necessary:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
# You need this wrapper script if you are getting an error like this:
#    'OPENSSL_1.0.0' not found (required by /usr/bin/ssh)
# This is all the background that I could find on it:
# &lt;A href="http://answers.splunk.com/answers/185635/why-splunk-triggered-alert-is-not-working-for-my-s.html" target="test_blank"&gt;http://answers.splunk.com/answers/185635/why-splunk-triggered-alert-is-not-working-for-my-s.html&lt;/A&gt;
unset LD_LIBRARY_PATH
MYPATH=$( cd $(dirname ${BASH_SOURCE[0]}) ; pwd -P )
MYNAME=$(basename ${BASH_SOURCE[0]})
MYBASE=${MYNAME%.*}
MYLOG="${MYPATH}/${MYBASE}.log"

#echo "0=&amp;lt;$0&amp;gt;" &amp;gt; $MYLOG
#echo "MYPATH=&amp;lt;$MYPATH&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "MYNAME=&amp;lt;$MYNAME&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "MYBASE=&amp;lt;$MYBASE&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "*=&amp;lt;$*&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "1=&amp;lt;${1}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "2=&amp;lt;${2}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "3=&amp;lt;${3}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "4=&amp;lt;${4}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "5=&amp;lt;${5}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "6=&amp;lt;${6}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "7=&amp;lt;${7}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "8=&amp;lt;${8}&amp;gt;" &amp;gt;&amp;gt; $MYLOG

${MYPATH}/${MYBASE}_real.sh "${1}" "${2}" "${3}" "${4}" "${5}" "${6}" "${7}" "${8}"
#echo "rc=$?" &amp;gt;&amp;gt; $MYLOG
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Jan 2017 19:15:58 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-01-06T19:15:58Z</dc:date>
    <item>
      <title>Why Splunk triggered alert is not working for my script and getting error "'OPENSSL_1.0.0' not found (required by ssh)"?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197346#M3424</link>
      <description>&lt;P&gt;I am able to run my script resetmcvpn.sh with no issues from the ubuntu command line. The code below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/usr/bin/expect -f
spawn ssh admin@10.2.1.59
expect "assword:"
send "thepassword\r"
expect "#"
send "config vdom\r"
expect "#"
send "edit root\r"
expect "#"
send "diagnose vpn tunnel reset 'my tunnel'\r"
expect "#"
send "exit\r"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The splunk triggered alert is not working for this. When I run:&lt;BR /&gt;
/opt/splunk/bin/splunk cmd /opt/splunk/bin/scripts/resetmcvpn.sh &lt;/P&gt;

&lt;P&gt;I get the error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ssh: /opt/splunk/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by ssh)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried the solutions posted in other answers, but they require bash where I believe I am using expect? (I only know linux from what I can get from google)&lt;/P&gt;

&lt;P&gt;Any help is MUCH apprectiated.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 20:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197346#M3424</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2014-11-06T20:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk triggered alert is not working for my script and getting error "'OPENSSL_1.0.0' not found (required by ssh)"?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197347#M3425</link>
      <description>&lt;P&gt;Much googling and trial and error got me to a solution. Hopefully someone hits this answer in the future and doesn't have to go through what I did.&lt;/P&gt;

&lt;P&gt;To get the script above to work I had to call it with another script. I called it kickoffresetmcvpn.sh and the contents are:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
unset LD_LIBRARY_PATH
/opt/splunk/bin/scripts/resetmcvpn.sh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure you enter the full path to the script you want this script to run. That caused me an hour of problems when I was running this in the same directory from the CLI, but it wasn't working from the triggered alert.&lt;/P&gt;

&lt;P&gt;From the CLI I verified but entering /opt/splunk/bin/splunk cmd /opt/splunk/bin/scripts/kickoffresetmcvpn.sh&lt;/P&gt;

&lt;P&gt;The end result of script kicking off the other script is that I can set a triggered alert to login to the firewall and reset a tunnel when the ping monitor shows the VPN status as down.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 19:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197347#M3425</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2014-11-07T19:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk triggered alert is not working for my script and getting error "'OPENSSL_1.0.0' not found (required by ssh)"?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197348#M3426</link>
      <description>&lt;P&gt;FYI, here is a self-adjusting wrapper script that is based off of the name so no hardcoding is necessary:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
# You need this wrapper script if you are getting an error like this:
#    'OPENSSL_1.0.0' not found (required by /usr/bin/ssh)
# This is all the background that I could find on it:
# &lt;A href="http://answers.splunk.com/answers/185635/why-splunk-triggered-alert-is-not-working-for-my-s.html" target="test_blank"&gt;http://answers.splunk.com/answers/185635/why-splunk-triggered-alert-is-not-working-for-my-s.html&lt;/A&gt;
unset LD_LIBRARY_PATH
MYPATH=$( cd $(dirname ${BASH_SOURCE[0]}) ; pwd -P )
MYNAME=$(basename ${BASH_SOURCE[0]})
MYBASE=${MYNAME%.*}
MYLOG="${MYPATH}/${MYBASE}.log"

#echo "0=&amp;lt;$0&amp;gt;" &amp;gt; $MYLOG
#echo "MYPATH=&amp;lt;$MYPATH&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "MYNAME=&amp;lt;$MYNAME&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "MYBASE=&amp;lt;$MYBASE&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "*=&amp;lt;$*&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "1=&amp;lt;${1}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "2=&amp;lt;${2}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "3=&amp;lt;${3}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "4=&amp;lt;${4}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "5=&amp;lt;${5}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "6=&amp;lt;${6}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "7=&amp;lt;${7}&amp;gt;" &amp;gt;&amp;gt; $MYLOG
#echo "8=&amp;lt;${8}&amp;gt;" &amp;gt;&amp;gt; $MYLOG

${MYPATH}/${MYBASE}_real.sh "${1}" "${2}" "${3}" "${4}" "${5}" "${6}" "${7}" "${8}"
#echo "rc=$?" &amp;gt;&amp;gt; $MYLOG
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2017 19:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-Splunk-triggered-alert-is-not-working-for-my-script-and/m-p/197348#M3426</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-01-06T19:15:58Z</dc:date>
    </item>
  </channel>
</rss>

