<?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: Core count on Ubuntu 12.04.4 LTS in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141476#M12216</link>
    <description>&lt;P&gt;We're running into the same problem here. Splunk Add-on for *nix 5.2.3 and Splunk Universal Forwarder 6.5.2. I have 12 forwarder clients all running Ubuntu 14.04 and a third of them an incorrect value in the CPU field.&lt;/P&gt;

&lt;P&gt;I checked the output of cpu.sh on two systems and they both output the CPU core number in the first column. However once this output is ingested into Splunk, only one of them has a valid number (or "all") in the CPU field. The other one has something like "48.0" in the CPU field, which appears to be a load average.&lt;/P&gt;

&lt;P&gt;This makes us unable to compare CPU usage across hosts.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 23:22:58 GMT</pubDate>
    <dc:creator>tessalau</dc:creator>
    <dc:date>2017-03-27T23:22:58Z</dc:date>
    <item>
      <title>Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141467#M12207</link>
      <description>&lt;P&gt;In Splunk App for Unix and Linux cpu cores are shown in "hosts".&lt;BR /&gt;
The core count is not correct.&lt;/P&gt;

&lt;P&gt;As I can see, the count is made from this macro search:&lt;BR /&gt;
apps/splunk_app_for_nix/install/SA-nix/default/macros.conf&lt;/P&gt;

&lt;P&gt;[unix_nodes_detail_specs_cpu_by_host(1)]&lt;BR /&gt;
args = host&lt;BR /&gt;
definition = &lt;CODE&gt;os_index&lt;/CODE&gt; &lt;CODE&gt;cpu_sourcetype&lt;/CODE&gt; host=$host$ NOT cpu="all" | append [stats count | eval _raw="no results"] | head 100 | eval name="CPU:" | stats first(name) as name max(CPU) as cpus | eval cpus=if(isnum(cpus), tostring(cpus + 1) + " cores", "unknown - is cpu.sh enabled?")&lt;/P&gt;

&lt;P&gt;I cannot find any information on this as a known problem anywhere. Can you help me out a bit here?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141467#M12207</guid>
      <dc:creator>gunzola</dc:creator>
      <dc:date>2020-09-28T16:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141468#M12208</link>
      <description>&lt;P&gt;Hi gunzola,&lt;/P&gt;

&lt;P&gt;how is the count not correct? Is it showing no result at all or a wrong count like 4 instead of 8 CPU's? What is the result if you run the cpu.sh directly on this host like this (maybe the path needs some tweaking, take it out of my head):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; $SPLUNK_HOME/bin/splunk cmd /$SPLUNK_HOME/etc/apps/SA-unix/bin/cpu.sh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;does this show the correct count?&lt;BR /&gt;
Some *inx systems need to install &lt;CODE&gt;sysinfo&lt;/CODE&gt; utilities to get &lt;CODE&gt;cpu.sh&lt;/CODE&gt; running.&lt;/P&gt;

&lt;P&gt;hope this helps to get you going ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 08:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141468#M12208</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-24T08:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141469#M12209</link>
      <description>&lt;P&gt;As a most basic check, you could run this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cat /proc/cpuinfo | fgrep -c processor
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Apr 2014 11:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141469#M12209</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-24T11:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141470#M12210</link>
      <description>&lt;P&gt;Output of cpu.sh&lt;BR /&gt;
~/splunk/bin$ ./splunk cmd ../etc/apps/Splunk_TA_nix/bin/cpu.sh&lt;BR /&gt;
CPU    pctUser    pctNice  pctSystem  pctIowait    pctIdle&lt;BR /&gt;
1.01       0.00       1.01       1.01       0.00      96.97&lt;BR /&gt;
1.01       0.00       1.01       1.01       0.00      96.97&lt;/P&gt;

&lt;P&gt;cat /proc/cpuinfo | fgrep -c processor&lt;BR /&gt;
1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141470#M12210</guid>
      <dc:creator>gunzola</dc:creator>
      <dc:date>2020-09-28T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141471#M12211</link>
      <description>&lt;P&gt;Currently it states in Splunk For Unix-appn that my instance has "71.00 cores"&lt;BR /&gt;
just as this search also returns 71.00 cores:&lt;BR /&gt;
index=os source=cpu host=palle-virtual-machine NOT cpu="all" | append [stats count | eval _raw="no results"] | head 100 | eval name="CPU:" | stats first(name) as name max(CPU) as cpus | eval cpus=if(isnum(cpus), tostring(cpus + 1) + " cores", "unknown - is cpu.sh enabled?")&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 09:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141471#M12211</guid>
      <dc:creator>gunzola</dc:creator>
      <dc:date>2014-04-25T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141472#M12212</link>
      <description>&lt;P&gt;The cpu.sh output's first column should be this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CPU ...
all ...
0 ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Instead, yours appears to be showing one of the pctNice or pctSystem columns... interesting. Run one of these two, the one present on your system is the input for cpu.sh:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sar -P ALL 1 1
mpstat -P ALL 1 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What version of the app are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 09:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141472#M12212</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-25T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141473#M12213</link>
      <description>&lt;P&gt;Splunk App for Unix 5.0.1&lt;BR /&gt;
Splunk Add-on for *nix 5.0.2&lt;BR /&gt;
I also did a downgrade to the Add-on version 5.0.1 (which is the version supplied along with the App). Same results.&lt;BR /&gt;
We have a customer with the same issue - actually on CentOS-installation. I think I will ask Splunk Support for some assistance here.. and post any updates here of course.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 09:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141473#M12213</guid>
      <dc:creator>gunzola</dc:creator>
      <dc:date>2014-04-28T09:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141474#M12214</link>
      <description>&lt;P&gt;Adding &lt;CODE&gt;export LC_ALL="en_US.UTF-8&lt;/CODE&gt; to $SPLUNK_HOME/etc/apps/Splunk_TA_nix/bin/common.sh solved the issue.&lt;BR /&gt;
Output of cpu.sh is now like this:&lt;/P&gt;

&lt;P&gt;CPU    pctUser    pctNice  pctSystem  pctIowait    pctIdle&lt;/P&gt;

&lt;P&gt;all       4.04       0.00       1.01       0.00      94.95&lt;/P&gt;

&lt;P&gt;0         4.04       0.00       1.01       0.00      94.950&lt;/P&gt;

&lt;P&gt;..and the App seems to be working as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141474#M12214</guid>
      <dc:creator>gunzola</dc:creator>
      <dc:date>2020-09-28T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141475#M12215</link>
      <description>&lt;P&gt;Thanks, I'll file a bug for this.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 17:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141475#M12215</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-05-05T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Core count on Ubuntu 12.04.4 LTS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141476#M12216</link>
      <description>&lt;P&gt;We're running into the same problem here. Splunk Add-on for *nix 5.2.3 and Splunk Universal Forwarder 6.5.2. I have 12 forwarder clients all running Ubuntu 14.04 and a third of them an incorrect value in the CPU field.&lt;/P&gt;

&lt;P&gt;I checked the output of cpu.sh on two systems and they both output the CPU core number in the first column. However once this output is ingested into Splunk, only one of them has a valid number (or "all") in the CPU field. The other one has something like "48.0" in the CPU field, which appears to be a load average.&lt;/P&gt;

&lt;P&gt;This makes us unable to compare CPU usage across hosts.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 23:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Core-count-on-Ubuntu-12-04-4-LTS/m-p/141476#M12216</guid>
      <dc:creator>tessalau</dc:creator>
      <dc:date>2017-03-27T23:22:58Z</dc:date>
    </item>
  </channel>
</rss>

