<?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: Splunk4JMX only works when I manually run poll_jmx.bat in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208393#M7814</link>
    <description>&lt;P&gt;You voted on my answer, if it solved the problem then please check it as the solution too.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2015 20:05:10 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2015-12-28T20:05:10Z</dc:date>
    <item>
      <title>Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208387#M7808</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
 I have a few servers with UniversalForwarder installed, and Splunk4JMX app on them. I have two servers that appear to have the forwarders setup the same, however; &lt;BR /&gt;
One server Splunk4JMX works great and jmx data gets sent to the indexers&lt;BR /&gt;
The other server nothing is sent over(no errors in the Splunk4JMX\log folder either). The only way I can get data to splunk indexers is by manually running:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Program Files\SplunkUniversalForwarder\bin&amp;gt;splunk cmd "C:\Program Files\SplunkUniversalForwarder\etc\apps\SPLUNK4JMX\bin\poll_jmx.bat" config.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both servers Spunk4JMX inputs.conf file is the same: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/poll_jmx.sh config.xml]
interval = 60
sourcetype = jmx
index = jmx
disabled = 1

[script://$SPLUNK_HOME\etc\apps\SPLUNK4JMX\bin\poll_jmx.bat config.xml ]
interval = 60
index = jmx 
disabled = 0
sourcetype = jmx

[monitor://$SPLUNK_HOME/etc/apps/SPLUNK4JMX/logs]
disabled = false
followTail = 0
index = jmx
sourcetype = jmx_errors
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both servers config.xml is basically the same, except different server values.&lt;/P&gt;

&lt;P&gt;According to the README file, Splunk4JMX is version 1.6&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;&lt;BR /&gt;
Is there another setting I am missing to check between these two servers? I assume that since I can manually run it on the broken server, it is not a port/network issue between the server and the indexer. A permissions issue with the user that splunk was installed on maybe?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt; &lt;BR /&gt;
From the splunkd log:&lt;BR /&gt;
+ 4 12-06-2015 14:18:29.139 +0000 ERROR ExecProcessor - message from ""C:Program FilesSplunkUniversalForwarderetcappsSPLUNK4JMXbinpoll_jmx.bat" config.xml" Access is denied.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 23:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208387#M7808</guid>
      <dc:creator>RecoMark0</dc:creator>
      <dc:date>2015-12-23T23:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208388#M7809</link>
      <description>&lt;P&gt;Check your splunkd log for any errors. Try running the script manually as "splunkm user" and see if it works. splunkd log should complain in case of permission issues&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 14:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208388#M7809</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-28T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208389#M7810</link>
      <description>&lt;P&gt;Are the permissions good on both servers?  Nope, you've since responded saying you found the access denied error.&lt;/P&gt;

&lt;P&gt;It appears you're having the issue with windows machines , and by default splunkuniversalforwarder installs as the system account. Which means it should have full access to everything on the server. Perhaps you've used a best practice and installed as a service account in your windows domain instead of the system account. It appears this is true  and that the service account user doesn't have execute permission on the batch file.&lt;/P&gt;

&lt;P&gt;Perhaps you can change it to run as system account or administrator, restart splunk and see if that fixes the issue.&lt;/P&gt;

&lt;P&gt;To find out what account it is running as, start -&amp;gt; run -&amp;gt; services.msc (click ok) look for splunkd service, right click go to properties, go to logo on tab, see/change what account it uses.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 15:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208389#M7810</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-28T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208390#M7811</link>
      <description>&lt;P&gt;looks like a permission issue may be right. From the splunkd log:&lt;BR /&gt;
+ 4 12-06-2015 14:18:29.139 +0000 ERROR ExecProcessor - message from ""C:\Program Files\SplunkUniversalForwarder\etc\apps\SPLUNK4JMX\bin\poll_jmx.bat" config.xml" Access is denied.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 18:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208390#M7811</guid>
      <dc:creator>RecoMark0</dc:creator>
      <dc:date>2015-12-28T18:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208391#M7812</link>
      <description>&lt;P&gt;So the permissions do not look good on the servers not working. What permissions does the splunk_service user(which runs splunkd) need in order to send the jmx data to the indexers? &lt;BR /&gt;
All other splunk data is reaching the indexers from these servers without issue. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 18:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208391#M7812</guid>
      <dc:creator>RecoMark0</dc:creator>
      <dc:date>2015-12-28T18:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208392#M7813</link>
      <description>&lt;P&gt;Oh sorry, I missed your new question.  It will need execute permission on the batch file.  might as well give it full access to the splunk directory and apply to sub directories &amp;amp; files  (child objects) via inheritance &lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 20:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208392#M7813</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-28T20:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208393#M7814</link>
      <description>&lt;P&gt;You voted on my answer, if it solved the problem then please check it as the solution too.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 20:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208393#M7814</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-28T20:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208394#M7815</link>
      <description>&lt;P&gt;Sorry, I thought I did. Thank you very much, this helped a lot to figure out that one server had a different user running splunk for some reason. I have updated which service user runs splunk on the broken ones, and they are now sending jmx data. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 20:36:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208394#M7815</guid>
      <dc:creator>RecoMark0</dc:creator>
      <dc:date>2015-12-28T20:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk4JMX only works when I manually run poll_jmx.bat</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208395#M7816</link>
      <description>&lt;P&gt;Thanks and no need to say sorry!  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 21:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk4JMX-only-works-when-I-manually-run-poll-jmx-bat/m-p/208395#M7816</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-28T21:04:16Z</dc:date>
    </item>
  </channel>
</rss>

