<?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: Configuing remote OSSEC Agent Management in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65698#M96944</link>
    <description>&lt;P&gt;It's timing out waiting for the manage_agents prompt. Usually that means it's getting hung up on an SSH key or password prompt. It's strange though that you would have a successful connection when you tried it from the command-line. When you tested from the command line, did you by any chance have an SSH key agent running? I just uploaded an experimental build 1.1.76 - try that version and see if it helps. The new build has better handling of certain types of connection error.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2010 06:33:27 GMT</pubDate>
    <dc:creator>southeringtonp</dc:creator>
    <dc:date>2010-10-12T06:33:27Z</dc:date>
    <item>
      <title>Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65687#M96933</link>
      <description>&lt;P&gt;I am struggling to get the "OSSEC Agent Management" page to display my remote agents. Testing using the ossec_agent_status.py and ossecservers.py scripts shows expected results. The listagents.py script states that "...OSSEC Server is not configured for agent management...". Interestingly, if the MANAGE_AGENTS entry in the ossec_servers.conf file is outside a stanza (precedes the [_local]) the script returns expected results. Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 01:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65687#M96933</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2010-10-07T01:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65688#M96934</link>
      <description>&lt;P&gt;That functionality is pretty new, so it could be a bug, or it may be a case sensitivity issue.&lt;/P&gt;

&lt;P&gt;What build number of the OSSEC app are you using - have you already downloaded the latest release from SplunkBase?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Putting it outside of any stanza makes it a default value. To rule out an issue with the &lt;CODE&gt;_local&lt;/CODE&gt; macro,  enter the hostname in instead of using &lt;CODE&gt;_local&lt;/CODE&gt;.  Does that work correctly?&lt;/P&gt;

&lt;P&gt;Try this in &lt;CODE&gt;local/ossec_servers.conf&lt;/CODE&gt; and let me know if anything changes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[_local]
# Turn off default settings for local machine
MANAGE_AGENTS =
AGENT_CONTROL =

[yourservername]
# Explicitly configure for your system
MANAGE_AGENTS = &amp;lt;your command line here&amp;gt;
AGENT_CONTROL = &amp;lt;your command line here&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Don't forget to run &lt;CODE&gt;[OSSEC - Rebuild OSSEC Server Lookup Table]&lt;/CODE&gt; after making the change.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;If an error is occurring in the backend, it may be masked by the Agent Management screen. &lt;/P&gt;

&lt;P&gt;Go to Search, and issue the following command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| listagents ossec_server=yourhostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If we're hitting an error, you should see a backtrace here that would be hidden in the other view.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 03:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65688#M96934</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-07T03:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65689#M96935</link>
      <description>&lt;P&gt;The application, OSSEC, is currently at 1.1.74. The OSSEC server is remote to the server which is running the splunk software.  I have configured a remote server explicitly.  The use of a local server would be invalid in this configuration.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 19:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65689#M96935</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2010-10-08T19:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65690#M96936</link>
      <description>&lt;P&gt;After making the suggested modification to turn off the default settings, the behavior remains the same.  The listagent.py script returns the error stating that it is not configured.  The ossecserver.py and ossec_agent_status.py script return expected values. After executing the configuration changes and performing the [OSSEC - Rebuild OSSEC Server Lookup Table] function, the webapp is behaving a bit better.  The [OSSEC Agent Status] dashboard now lists the OSSEC Server, but returns no data.  It does not state that there was "no result" and its legend has "NULL" as its value.  The [OSSEC Agent Management] portion now has the OSSEC server listed in its OSSEC Server pulldown.  It does not return any data and shows "no results found" for the List Agents action.  Making progress.  Next thougths?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 19:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65690#M96936</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2010-10-08T19:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65691#M96937</link>
      <description>&lt;P&gt;It's possible that an error is occurring somewhere in the backend and the error message is being masked by that view. What happens if you call it directly?  (see edits above)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 22:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65691#M96937</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-08T22:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65692#M96938</link>
      <description>&lt;P&gt;There was a hidden error related to the ssh command not being found.  I reconfigured using the full path to ssh and executed the search you indicated and got the follow error.  (Posted separately).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 04:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65692#M96938</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2010-10-12T04:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65693#M96939</link>
      <description>&lt;P&gt;Error : Traceback: Traceback (most recent call last): File "/opt/splunk/etc/apps/ossec/bin/listagents.py", line 34, in &lt;MODULE&gt;  ossec.cache_agents() File "/opt/splunk/etc/apps/ossec/bin/pyOSSEC.py", line 342, in cache_agents self.connect() File "/opt/splunk/etc/apps/ossec/bin/pyOSSEC.py", line 331, in connect self.c.expect_exact('Choose your action:') File "../3rdparty/pexpect-2.3/pexpect.py", line 1343, in expect_exact return self.expect_loop(searcher_string(pattern_list), timeout, searchwindowsize) File "../3rdparty/pexpect-2.3/pexpect.py", line 1396, in expect_loop raise&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65693#M96939</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2020-09-28T09:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65694#M96940</link>
      <description>&lt;P&gt;EOF (str(e) + '\n' + str(self)) EOF: End Of File (EOF) in read_nonblocking(). Exception style platform. &lt;PEXPECT.SPAWN object="" at="" 0x3034a76c=""&gt; version: 2.3 ($Revision: 399 $) command: /usr/local/bin/ssh args: ['/usr/local/bin/ssh', '-xt', 'naadmp04', '/var/ossec/bin/manage_agents'] searcher: searcher_string: 0: "Choose your action:" buffer (last 100 chars): before (last 100 chars): ty/pexpect-2.3/pexpect.py"", line 545, in _spawn for i in range (3, max_fd):&lt;/PEXPECT.SPAWN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65694#M96940</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2020-09-28T09:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65695#M96941</link>
      <description>&lt;P&gt;MemoryError " after: &lt;CLASS&gt; match: None match_index: None exitstatus: None flag_eof: True pid: 348198 child_fd: 7 closed: False timeout: 5 delimiter: &lt;CLASS&gt; logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1&lt;/CLASS&gt;&lt;/CLASS&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65695#M96941</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2020-09-28T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65696#M96942</link>
      <description>&lt;P&gt;From within the /opt/splunk/etc/apps/ossec/local directory the following works (running as root).&lt;/P&gt;

&lt;H1&gt;../bin/listagents.py ossec_server=naadmp04&lt;/H1&gt;</description>
      <pubDate>Tue, 12 Oct 2010 04:23:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65696#M96942</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2010-10-12T04:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65697#M96943</link>
      <description>&lt;P&gt;I also noticed that in the traceback for the search line "| listagents ..." it shows that the MANAGE_AGENTS command line is being executed.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 04:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65697#M96943</guid>
      <dc:creator>wpz1599</dc:creator>
      <dc:date>2010-10-12T04:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65698#M96944</link>
      <description>&lt;P&gt;It's timing out waiting for the manage_agents prompt. Usually that means it's getting hung up on an SSH key or password prompt. It's strange though that you would have a successful connection when you tried it from the command-line. When you tested from the command line, did you by any chance have an SSH key agent running? I just uploaded an experimental build 1.1.76 - try that version and see if it helps. The new build has better handling of certain types of connection error.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 06:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65698#M96944</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-12T06:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Configuing remote OSSEC Agent Management</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65699#M96945</link>
      <description>&lt;P&gt;More detailed instructions are now in a separate Answers post.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/42717/how-do-i-enable-remote-agent-management-in-splunk-for-ossec"&gt;http://splunk-base.splunk.com/answers/42717/how-do-i-enable-remote-agent-management-in-splunk-for-ossec&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 01:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuing-remote-OSSEC-Agent-Management/m-p/65699#M96945</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2012-03-14T01:46:49Z</dc:date>
    </item>
  </channel>
</rss>

