<?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: OSSECNotConfiguredError after upgrade in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155713#M14211</link>
    <description>&lt;P&gt;Hi Abhi,&lt;/P&gt;

&lt;P&gt;I suggest you first follow the steps in this answer.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/42717/how-do-i-enable-remote-agent-management-in-splunk-for-ossec"&gt;http://answers.splunk.com/answers/42717/how-do-i-enable-remote-agent-management-in-splunk-for-ossec&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Afterwards you have to apply the above fixes.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
Thomas&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2014 15:06:27 GMT</pubDate>
    <dc:creator>rivy4321</dc:creator>
    <dc:date>2014-05-09T15:06:27Z</dc:date>
    <item>
      <title>OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155708#M14206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We recently upgraded our Splunk instances to latest version (6.1.0). Now, whenever I do "List Agents" from OSSEC App in Splunk, following message is displayed.&lt;/P&gt;

&lt;P&gt;OSSECNotConfiguredError This OSSEC Server is not configured for agent management.   Error&lt;/P&gt;

&lt;P&gt;I tried to initialize and re-built OSSEC lookup table but that doesn't fix it. We are using multiple splunk instances and I noticed this issue on all.(Each upgraded to 6.1.0)&lt;/P&gt;

&lt;P&gt;Please Advise.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 15:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155708#M14206</guid>
      <dc:creator>att35</dc:creator>
      <dc:date>2014-05-07T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155709#M14207</link>
      <description>&lt;P&gt;Hi Abhi,&lt;/P&gt;

&lt;P&gt;I fixed it like this.&lt;/P&gt;

&lt;P&gt;-&amp;gt;1. Change the following lines in /opt/splunk/etc/apps/ossec/bin/pyOSSEC.py&lt;/P&gt;

&lt;P&gt;Original:&lt;BR /&gt;
    &lt;CODE&gt;cfg = parse_config_file('../local/ossec_servers.conf', cfg)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
New:&lt;BR /&gt;
    &lt;CODE&gt;cfg = parse_config_file(os.environ['SPLUNK_HOME'] + '/etc/apps/ossec/local&lt;/CODE&gt;/ossec_servers.conf')&lt;/P&gt;

&lt;P&gt;-&amp;gt;2. Create a file /opt/splunk/etc/apps/ossec/bin/sshwrap&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
#!/bin/sh&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH&lt;BR /&gt;
export LD_LIBRARY_PATH&lt;/P&gt;

&lt;P&gt;/usr/bin/ssh "$@"&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;And make is executable :&lt;BR /&gt;
&lt;CODE&gt;chmod 755 /opt/splunk/etc/apps/ossec/bin/sshwrap&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;-&amp;gt;3. Adapt the ssh executable in /opt/splunk/etc/apps/ossec/local/ossec_servers.conf to point to the wrappers script.&lt;/P&gt;

&lt;P&gt;Old:&lt;BR /&gt;
&lt;CODE&gt;AGENT_CONTROL = ssh ossec -t -l splunk sudo /var/ossec/bin/agent_control -l&lt;BR /&gt;
MANAGE_AGENTS = ssh ossec -t -l splunk sudo /var/ossec/bin/manage_agents&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;New:&lt;BR /&gt;
&lt;CODE&gt;AGENT_CONTROL = /opt/splunk/etc/apps/ossec/bin/sshwrap ossec -t -l splunk sudo /var/ossec/bin/agent_control -l&lt;BR /&gt;
MANAGE_AGENTS = /opt/splunk/etc/apps/ossec/bin/sshwrap ossec -t -l splunk sudo /var/ossec/bin/manage_agents&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That did the trick for me.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
Thomas Elsen&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 17:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155709#M14207</guid>
      <dc:creator>rivy4321</dc:creator>
      <dc:date>2014-05-08T17:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155710#M14208</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;

&lt;P&gt;Thanks for replying.&lt;/P&gt;

&lt;P&gt;I tried these steps but it is still showing OSSEC not configured. I did notice few differences in the configuration I have.&lt;BR /&gt;
Steps 1 &amp;amp; 2 done exactly as mentioned in your response.&lt;/P&gt;

&lt;P&gt;On Step 3, ossec_servers.conf is under /opt/splunk/etc/apps/ossec/default. "local" directory is not present.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 14:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155710#M14208</guid>
      <dc:creator>att35</dc:creator>
      <dc:date>2014-05-09T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155711#M14209</link>
      <description>&lt;P&gt;Now, in this file, instead of &lt;BR /&gt;
AGENT_CONTROL = ssh ossec -t -l splunk sudo /var/ossec/bin/agent_control -l&lt;BR /&gt;
MANAGE_AGENTS = ssh ossec -t -l splunk sudo /var/ossec/bin/manage_agents&lt;/P&gt;

&lt;P&gt;It had:&lt;/P&gt;

&lt;P&gt;[_local]&lt;BR /&gt;
AGENT_CONTROL = sudo /var/ossec/bin/agent_control -l&lt;BR /&gt;
MANAGE_AGENTS = sudo /var/ossec/bin/manage_agents&lt;/P&gt;

&lt;P&gt;Could it be because both OSSEC and Splunk are on the same server?&lt;/P&gt;

&lt;P&gt;I appended the above lines with the sshwrap entry as you mentioned but that did not help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155711#M14209</guid>
      <dc:creator>att35</dc:creator>
      <dc:date>2020-09-28T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155712#M14210</link>
      <description>&lt;P&gt;Then I changed both entries to exactly as they worked for you, i.e. &lt;/P&gt;

&lt;P&gt;[_local]&lt;BR /&gt;
AGENT_CONTROL = /opt/splunk/etc/apps/ossec/bin/sshwrap ossec -t -l splunk sudo /var/ossec/bin/agent_control -l&lt;BR /&gt;
MANAGE_AGENTS = /opt/splunk/etc/apps/ossec/bin/sshwrap ossec -t -l splunk sudo /var/ossec/bin/manage_agents&lt;/P&gt;

&lt;P&gt;Still no change. Restarted Splunk but OSSEC app still comes not configured.&lt;/P&gt;

&lt;P&gt;Did I do any step incorrectly?&lt;/P&gt;

&lt;P&gt;Many Thanks,&lt;/P&gt;

&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155712#M14210</guid>
      <dc:creator>att35</dc:creator>
      <dc:date>2020-09-28T16:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155713#M14211</link>
      <description>&lt;P&gt;Hi Abhi,&lt;/P&gt;

&lt;P&gt;I suggest you first follow the steps in this answer.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/42717/how-do-i-enable-remote-agent-management-in-splunk-for-ossec"&gt;http://answers.splunk.com/answers/42717/how-do-i-enable-remote-agent-management-in-splunk-for-ossec&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Afterwards you have to apply the above fixes.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 15:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155713#M14211</guid>
      <dc:creator>rivy4321</dc:creator>
      <dc:date>2014-05-09T15:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155714#M14212</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;

&lt;P&gt;It's working fine now.&lt;/P&gt;

&lt;P&gt;In my case, Step 1  fixes the issue. I had to add the line you mentioned so that Splunk uses the correct ossec_servers.conf file.&lt;/P&gt;

&lt;P&gt;Thanks again for all the help.&lt;/P&gt;

&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 15:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155714#M14212</guid>
      <dc:creator>att35</dc:creator>
      <dc:date>2014-05-09T15:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155715#M14213</link>
      <description>&lt;P&gt;Step 1 also fixed the issues I was having with it erroring out on the List Agents button with v6.01 and 1.189 version of the app. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 22:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155715#M14213</guid>
      <dc:creator>bkcarter</dc:creator>
      <dc:date>2014-08-21T22:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: OSSECNotConfiguredError after upgrade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155716#M14214</link>
      <description>&lt;P&gt;A thousand times.... THANK YOU. Followed your steps and the OSSEC agent Management piece is working again now!!!!!&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2015 00:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/OSSECNotConfiguredError-after-upgrade/m-p/155716#M14214</guid>
      <dc:creator>Bloodnite</dc:creator>
      <dc:date>2015-05-09T00:24:39Z</dc:date>
    </item>
  </channel>
</rss>

