All Apps and Add-ons

Splunk App for Unix and Linux: After configuring hosts, why are some hosts not showing up for these 3 sourcetypes?

dbcase
Motivator

Hi,

I have about a dozen hosts that I'm working on getting configured using the Splunk App for Unix and Linux. I've configured other hosts before and those work great, but these hosts are acting a bit weird.

When I use sourcetype=df, 11 out of the 12 hosts show up and work fine
When I use sourcetype=cpu, only 3 out of the 12 hosts show up and one of the three is the missing host from above
When I use sourcetype=vmstat, only 3 out of the 12 hosts show up and one of the three is the missing host from above

I've restarted, rebuilt, and still no luck. Thoughts?

0 Karma
1 Solution

renjith_nair
Legend

Hello @dbcase,

  • Check the splunkd logs on the hosts which haven't turned up. You should be able to find hints for your problem
  • Try to execute the script manually from the hosts and see if it's throwing any error. Most probably the basic package which is used by the scripts might be missing from the hosts, for eg: sysstat
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

Hello @dbcase,

  • Check the splunkd logs on the hosts which haven't turned up. You should be able to find hints for your problem
  • Try to execute the script manually from the hosts and see if it's throwing any error. Most probably the basic package which is used by the scripts might be missing from the hosts, for eg: sysstat
---
What goes around comes around. If it helps, hit it with Karma 🙂

dbcase
Motivator

Thanks Renjith!!! Your hints set me in the right direction. Turns out sysstat wasn't installed on most of the machines. Once it was installed everything is humming along just fine.

The first one (the df one), the problem host is a Darwin host and it reports the disk partitions differently. Just had to adjust the query to include that and presto! It works!

Thank you!!!

dbcase
Motivator

Oh.... and I've checked inputs.conf in Splunk_TA_nix/local and it is identical across all 12 servers.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...