<?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: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94068#M6384</link>
    <description>&lt;P&gt;Hi Luke I am currently having the same issue and I have followed this same idea of replacing src_host="syd1rtr01" to src_host="a known host from your nagios" I have even went to the extend of removing the  src_host="syd1rtr01" completely and test and this also failed. I have made entries in input.conf to reflect index = nagios.  I have sent you an email to this issue a while back and also published the Dashboard issue on this forum where the auto population seems not to work. If we replace the state of src_host="syd1rtr01 with a known server from our nagios then are we not setting the default value for the src_host as the named server. secondly is src_host not a variable of which the value it holds is subject to change?. The reason why I am asking this questions is base on the simple fact that we already has a Splunk head on-site that holds the default settings as src_host="syd1rtr01" and it display the auto populate but for the alert Dashboard as an example, you can not do "select a Hostname" cos there are no hosts in the pulldown menu. &lt;BR /&gt;
Although I am not sure but this seems to be a bug in SplunkForNagios. Something I have also noticed in the SplunkForNagios is whilst there is manual for installation only there seems not to be manual for SplunkForNagios how can we find a manual.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:37:22 GMT</pubDate>
    <dc:creator>babs101</dc:creator>
    <dc:date>2020-09-28T11:37:22Z</dc:date>
    <item>
      <title>Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94057#M6373</link>
      <description>&lt;P&gt;I was trying to configure mklivestatus to work with Splunk For Nagios and discovered what I think is some kind of odd behaviour with the &lt;CODE&gt;splunk.Intersplunk.getOrganizedResults(&lt;/CODE&gt;) method.&lt;/P&gt;

&lt;P&gt;I have mklivestatus working on the Nagios server and can see the data when using unixcat, I can also get data when using netcat on both the Nagios server and the Splunk server, I can also see the data if I write a simple Python script that grabs data from the mklivestatus instance (running via xinetd) with no problems.&lt;/P&gt;

&lt;P&gt;However when trying to run any of the "live*.py" files within SplunkForNagios/bin they never are successful, and yes I have configured them to use the correct IP and port that mklivestatus is on.&lt;/P&gt;

&lt;P&gt;I am also making sure to run the scripts with $SPLUNK_HOME/bin/python rather than the system Python binary.&lt;/P&gt;

&lt;P&gt;After some digging I found that it is actually the call to &lt;CODE&gt;splunk.Intersplunk.getOrganizedResults()&lt;/CODE&gt; that seems to cause the issue, it never returns a value.&lt;/P&gt;

&lt;P&gt;It appears to be an issue with the while True loop within the Intersplunk module and method &lt;CODE&gt;readResults(&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;Not quite sure exactly what is wrong, I've noticed the Python version that ships with Splunk does not have readline compiled in and yet the first line within the while loop calls &lt;CODE&gt;input_buf.readline()&lt;/CODE&gt;, not quite sure how that is going to work without readline compiled in, but I also tried using a Python version with readline (copying the splunk modules out to it for testing) but this didn't help either.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2011 22:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94057#M6373</guid>
      <dc:creator>kuramanga</dc:creator>
      <dc:date>2011-10-18T22:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94058#M6374</link>
      <description>&lt;P&gt;The python scripts that are included in Splunk for Nagios will only work from within the app, ie. they won't work from the command line. &lt;/P&gt;

&lt;P&gt;Is the "Livestatus Dashboard" working? If not, you must edit NagiosLivestatus.xml and change the "src_host" name to a relevant device name in nagios.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2011 23:58:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94058#M6374</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2011-10-18T23:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94059#M6375</link>
      <description>&lt;P&gt;NagiosLivestatus.xml and change the &lt;STRONG&gt;"src_host" name to a relevant device name in nagios.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;What do you mean by &lt;STRONG&gt;relevant device name in nagios&lt;/STRONG&gt;. I have tried to setup but LiveStatus is not working for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 17:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94059#M6375</guid>
      <dc:creator>vishalprofessio</dc:creator>
      <dc:date>2011-11-19T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94060#M6376</link>
      <description>&lt;P&gt;Change the device name to any hostname in your nagios configuration. I would recommend that you choose the name of a host/device that is always up, eg. router/switch/server.&lt;/P&gt;

&lt;P&gt;All the best,&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2011 23:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94060#M6376</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2011-11-20T23:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94061#M6377</link>
      <description>&lt;P&gt;Thanks Luke. I have very small setup of Nagios with 25 servers. My understanding Livestatus Dashboard will show "Total UP/Down (Total current Up, Down, &amp;amp; Unreachable hosts)". As you suggested&lt;BR /&gt;
@NagiosLivestatus.xml File -  I have removed all entries for src_host="syd1rtr01" to src_host="Hostname of one of my server which i am monitoring from Nagios ". &lt;STRONG&gt;Look like it start working&lt;/STRONG&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; :). But i don't understand the requirement of src_host? can we put any hostname ? and it will monitor all UP/Down host status ? &lt;/P&gt;

&lt;P&gt;Can you please correct me if my understanding is wrong.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Vishal&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94061#M6377</guid>
      <dc:creator>vishalprofessio</dc:creator>
      <dc:date>2020-09-28T10:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94062#M6378</link>
      <description>&lt;P&gt;Hi Vishal &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Glad you got the dashboard working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;It is ok to use any valid hostname from your nagios configuration as the underlying lookup scripts require that the search result contains a field called src_host before performing the relevant MK Livestatus lookups. &lt;/P&gt;

&lt;P&gt;ie. the dashboard is populated by 8 different python lookup scripts and each of them are executed after a successfully completed splunk search that contains src_host in the results.&lt;/P&gt;

&lt;P&gt;So as long as you use a src_host that exists in the nagios logs which are indexed by splunk, the lookup scripts will perform their specific job.&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 21:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94062#M6378</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2011-11-21T21:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94063#M6379</link>
      <description>&lt;P&gt;Thanks Luke. one more help ;). &lt;/P&gt;

&lt;P&gt;In Livestatus Dashboard some of hosts are showing &lt;STRONG&gt;Down&lt;/STRONG&gt; but @nagios Dashboard all are UP. (Actually I am monitoring some host where ping is disable and i have configure passive check for those hosts into Nagios).&lt;/P&gt;

&lt;P&gt;You have any idea what is the cause ? Is i have to change the logic @splunk side ?&lt;/P&gt;

&lt;P&gt;Thanks as always &lt;/P&gt;

&lt;P&gt;-Vishal&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 06:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94063#M6379</guid>
      <dc:creator>vishalprofessio</dc:creator>
      <dc:date>2011-11-22T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94064#M6380</link>
      <description>&lt;P&gt;Hey Luke- No need to investigate &lt;/P&gt;

&lt;P&gt;I have changed the logic for "check-host-alive" into nagios and enable the active check for all the hosts . Now all status is UP into Splunk Livestatus Dashboard &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thank you very much for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;

&lt;P&gt;Vishal &lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 07:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94064#M6380</guid>
      <dc:creator>vishalprofessio</dc:creator>
      <dc:date>2011-11-22T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94065#M6381</link>
      <description>&lt;P&gt;That is good news Vishal, and you're welcome.&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 21:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94065#M6381</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2011-11-22T21:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94066#M6382</link>
      <description>&lt;P&gt;Hi Luke, along the same lines as this... we have made the appropriate changes to the python scripts and replaced the src_host with a valid host in nagios with all results showing 0 - where else should we look for problems?  Is there a log somewhere that we can look at to troubleshoot?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 23:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94066#M6382</guid>
      <dc:creator>rjyetter</dc:creator>
      <dc:date>2011-11-30T23:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94067#M6383</link>
      <description>&lt;P&gt;Please ensure that your Splunk server can talk to MK Livestatus by executing a simple netcat command, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@homer:/opt/splunk/etc/apps/SplunkForNagios/bin# nc 10.10.10.10 6557 &amp;lt; nagios-hosts
name,address,alias,hard_state
bart,10.10.10.101,web server,0
lisa,10.10.10.102,database server,0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: replace 10.10.10.10 with the ip address of your nagios server running MK Livestatus&lt;/P&gt;

&lt;P&gt;If you don't get a result using netcat then you should look at MK Livestatus - ensure that the ip address of your splunk server is listed next to "only_from" in /etc/xinetd.d/livestatus on your nagios server.&lt;/P&gt;

&lt;P&gt;It is possible to update a python script to log errors, please refer to the following splunk answers for assistance:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/30535/any-advice-for-troubleshooting-scripted-lookups"&gt;http://splunk-base.splunk.com/answers/30535/any-advice-for-troubleshooting-scripted-lookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/10283/python-scripted-lookup-doesnt-produce-any-results"&gt;http://splunk-base.splunk.com/answers/10283/python-scripted-lookup-doesnt-produce-any-results&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;All the best,&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 00:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94067#M6383</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2011-12-01T00:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with livestatus - splunk.Intersplunk.getOrganizedResults() never returns a value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94068#M6384</link>
      <description>&lt;P&gt;Hi Luke I am currently having the same issue and I have followed this same idea of replacing src_host="syd1rtr01" to src_host="a known host from your nagios" I have even went to the extend of removing the  src_host="syd1rtr01" completely and test and this also failed. I have made entries in input.conf to reflect index = nagios.  I have sent you an email to this issue a while back and also published the Dashboard issue on this forum where the auto population seems not to work. If we replace the state of src_host="syd1rtr01 with a known server from our nagios then are we not setting the default value for the src_host as the named server. secondly is src_host not a variable of which the value it holds is subject to change?. The reason why I am asking this questions is base on the simple fact that we already has a Splunk head on-site that holds the default settings as src_host="syd1rtr01" and it display the auto populate but for the alert Dashboard as an example, you can not do "select a Hostname" cos there are no hosts in the pulldown menu. &lt;BR /&gt;
Although I am not sure but this seems to be a bug in SplunkForNagios. Something I have also noticed in the SplunkForNagios is whilst there is manual for installation only there seems not to be manual for SplunkForNagios how can we find a manual.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-livestatus-splunk-Intersplunk-getOrganizedResults/m-p/94068#M6384</guid>
      <dc:creator>babs101</dc:creator>
      <dc:date>2020-09-28T11:37:22Z</dc:date>
    </item>
  </channel>
</rss>

