All Apps and Add-ons

no data for cpu.sh *NIX app

rainhailrob
Path Finder

Running Splunk TA on SLES 11 SP1. I ran cpu.sh manually and did not receive any errors. I verified the script is enabled in inputs.conf. There is no data for sourcetype=cpu.

Shows stats per CPU (useful for SMP machines)

[script://./bin/cpu.sh]
sourcetype = cpu
source = cpu
interval = 300
index = os
disabled = 0

0 Karma
1 Solution

rainhailrob
Path Finder

I was logged in as root.

It looks like my problem was that the sysstat package wasn't installed, although I thought I had verified that the paackage was installed and ran the cpu.sh.

I was missing the sar application.

View solution in original post

rainhailrob
Path Finder

I was logged in as root.

It looks like my problem was that the sysstat package wasn't installed, although I thought I had verified that the paackage was installed and ran the cpu.sh.

I was missing the sar application.

araitz
Splunk Employee
Splunk Employee

Yes, if you can run it manually then it might be related to permissions. What happens if you run $SPLUNK_HOME/bin/splunk cmd $SPLUNK_HOME/etc/apps/unix/bin/cpu.sh? Also, do you see anything if you search for index=_internal sourcetype=splunkd execprocessor or just searching for 'error' OR 'cpu.sh' in the splunkd sourcetype?

rturk
Builder

What user are you running Splunk as? If you try running cpu.sh as that user does it work?

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...