<?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 wlsCollectJmxDataMinute.py Error in log in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102336#M7136</link>
    <description>&lt;P&gt;I used Splunk for weblogic monitor.&lt;BR /&gt;
When I test wlsCollectJmxDataMinute.py, I got some error.&lt;/P&gt;

&lt;P&gt;1.env can not be found&lt;BR /&gt;
Then I solve it. &lt;BR /&gt;
Add --sys.registry.setProperty( "python.os", "nt" )-- in .py file&lt;/P&gt;

&lt;P&gt;2.wlsCollectJmxDataMinute.py can not logging.&lt;BR /&gt;
The .py script can be run to generate log files, but there is no content.&lt;BR /&gt;
So I run .py in WLST manually.&lt;BR /&gt;
There is no error and no content in log.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;wls:/medrec/domainRuntime&amp;gt; if (len(servers) &amp;gt; 0):&lt;BR /&gt;
...     for server in servers:&lt;BR /&gt;
...             cd ('/ServerRuntimes/' + server.getName() )&lt;BR /&gt;
...             serverDataStr = "domain=%s|server=%s|server_state=%s|server_health=%s" % ( domainRuntime.getName(), server.getName(), str(cmo.getState()), str(cmo.getHealthState()) )&lt;BR /&gt;
...             writeServerData(serverDataStr)&lt;BR /&gt;
...&lt;BR /&gt;
wls:/medrec/domainRuntime/ServerRuntimes/MedRecServer&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I can print serverDataStr as blow:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;wls:/medrec/domainRuntime&amp;gt; print serverDataStr&lt;BR /&gt;
domain=medrec|server=MedRecServer|server_state=RUNNING|server_health=Component:ServerRuntime,State:HEALTH_OK,MBean:MedRecServer,ReasonCode:[]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The log Security Permissions, I give it "Everyone" with "All control".&lt;BR /&gt;
How can I do for the log error?&lt;/P&gt;

&lt;P&gt;My env.:&lt;BR /&gt;
weblogic:10.3.0.0&lt;BR /&gt;
os:windows server 2008 x64&lt;BR /&gt;
jdk:sun jdk 1.6 x64&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:24:19 GMT</pubDate>
    <dc:creator>xuanyun</dc:creator>
    <dc:date>2020-09-28T14:24:19Z</dc:date>
    <item>
      <title>wlsCollectJmxDataMinute.py Error in log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102336#M7136</link>
      <description>&lt;P&gt;I used Splunk for weblogic monitor.&lt;BR /&gt;
When I test wlsCollectJmxDataMinute.py, I got some error.&lt;/P&gt;

&lt;P&gt;1.env can not be found&lt;BR /&gt;
Then I solve it. &lt;BR /&gt;
Add --sys.registry.setProperty( "python.os", "nt" )-- in .py file&lt;/P&gt;

&lt;P&gt;2.wlsCollectJmxDataMinute.py can not logging.&lt;BR /&gt;
The .py script can be run to generate log files, but there is no content.&lt;BR /&gt;
So I run .py in WLST manually.&lt;BR /&gt;
There is no error and no content in log.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;wls:/medrec/domainRuntime&amp;gt; if (len(servers) &amp;gt; 0):&lt;BR /&gt;
...     for server in servers:&lt;BR /&gt;
...             cd ('/ServerRuntimes/' + server.getName() )&lt;BR /&gt;
...             serverDataStr = "domain=%s|server=%s|server_state=%s|server_health=%s" % ( domainRuntime.getName(), server.getName(), str(cmo.getState()), str(cmo.getHealthState()) )&lt;BR /&gt;
...             writeServerData(serverDataStr)&lt;BR /&gt;
...&lt;BR /&gt;
wls:/medrec/domainRuntime/ServerRuntimes/MedRecServer&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I can print serverDataStr as blow:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;wls:/medrec/domainRuntime&amp;gt; print serverDataStr&lt;BR /&gt;
domain=medrec|server=MedRecServer|server_state=RUNNING|server_health=Component:ServerRuntime,State:HEALTH_OK,MBean:MedRecServer,ReasonCode:[]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The log Security Permissions, I give it "Everyone" with "All control".&lt;BR /&gt;
How can I do for the log error?&lt;/P&gt;

&lt;P&gt;My env.:&lt;BR /&gt;
weblogic:10.3.0.0&lt;BR /&gt;
os:windows server 2008 x64&lt;BR /&gt;
jdk:sun jdk 1.6 x64&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102336#M7136</guid>
      <dc:creator>xuanyun</dc:creator>
      <dc:date>2020-09-28T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: wlsCollectJmxDataMinute.py Error in log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102337#M7137</link>
      <description>&lt;P&gt;It looks like "serverDataStr" can be generated, but cannot be exported.&lt;BR /&gt;
Could anyone help me to solve it?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2013 09:41:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102337#M7137</guid>
      <dc:creator>xuanyun</dc:creator>
      <dc:date>2013-07-22T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: wlsCollectJmxDataMinute.py Error in log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102338#M7138</link>
      <description>&lt;P&gt;Hi Xuanyun,&lt;/P&gt;

&lt;P&gt;Can you provide the contents of your setWlstEnv.cmd script?  The jython scripts are not set up to run standalone.  Splunk should be invoking the 'runWlstScriptsMinute.cmd' script which in turn runs that jython script.&lt;/P&gt;

&lt;P&gt;thanks,&lt;/P&gt;

&lt;P&gt;Vasanth&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.function1.com"&gt;Function1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102338#M7138</guid>
      <dc:creator>vmaniku</dc:creator>
      <dc:date>2013-07-23T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: wlsCollectJmxDataMinute.py Error in log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102339#M7139</link>
      <description>&lt;P&gt;I solved it.It missed a code in "wlsCollectJmxDataMinute.py" which is "logFile.close()" at the end of this ".py".&lt;/P&gt;

&lt;P&gt;There is a new error.&lt;BR /&gt;
At chapter "Troubleshooting the Technology Add-on" in the "WLS_App_TA_install_instructions.pdf"documentation, it told me " Verify the forwarders output configuration."&lt;BR /&gt;
But I can not find "outputs.conf". When I create "outputs.conf", I don't known what to write format.&lt;BR /&gt;
Where I can find the example of "outputs.conf"?&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102339#M7139</guid>
      <dc:creator>xuanyun</dc:creator>
      <dc:date>2020-09-28T14:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: wlsCollectJmxDataMinute.py Error in log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102340#M7140</link>
      <description>&lt;P&gt;I found these errors in search.log at "Machines--%CPU load" with "No results found. Inspect ..."&lt;/P&gt;

&lt;P&gt;07-25-2013 12:43:32.018 INFO  LookupOperator - Disabling automatic lookup of table 'wls_messages' for conf 'wls_managedserver' because the output fields are not referenced.&lt;BR /&gt;
07-25-2013 12:43:32.018 INFO  LookupOperator - Disabling automatic lookup of table 'wls_messages' for conf 'wls_managedserver_out' because the output fields are not referenced.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/wlsCollectJmxDataMinute-py-Error-in-log/m-p/102340#M7140</guid>
      <dc:creator>xuanyun</dc:creator>
      <dc:date>2020-09-28T14:25:38Z</dc:date>
    </item>
  </channel>
</rss>

