Commit graph

19 commits

Author SHA1 Message Date
847f4ab742
Fix report CPU_TYPE in hardware.sh for RPIs
Changes:

* For CPU_TYPE in hardware.sh, report something if /proc/cpuinfo does not
  contain processor model information
2025-02-19 11:35:40 -05:00
17d6163514
Merge in Splunk Add-On for Unix and Linux version 10.0.0 2025-02-05 17:18:14 -05:00
ce9dada330
Fix alignment and fix packages for Arch Linux
Changes:

* Align columns with "column -t"
* Add Arch Linux support in packages.sh
2025-02-03 18:08:38 -05:00
f3e4386480
Add Version to update.sh for Darwin
Changes:

* Add version to update.sh for Darwin
2025-01-25 15:30:25 -05:00
653ee79a67
Fix Darwin Scripts and Document Sudo
Changes:

* Use sudo in service.sh for Darwin to find user services if not running as root
* Fix parsing the output of softwareupdate command on Darwin in update.sh
* Better document usage of sudo in docs/Sudo.md
2025-01-25 15:11:30 -05:00
a24e4c8ee5
Fix OpenBSD Support and Other Bugs
Changes:

* Fix OpenBSD cpu.sh output to match others
* Fix OpenBSD df.sh output (no need for %% here)
* Do not use sudo or doas when running as root
* Use #!/usr/bin/env bash to support OpenBSD in run_nix_ta_commands
* Fix rsyslog example to trim whitespace in run_nix_ta_commands
* Add /usr/local/sbin:/usr/local/bin to PATH in run_nix_ta_commands
* Fix getting hour and minute for OpenBSD in run_nix_ta_commands
  "08" shows up to printf as octal
* Support difference in OpenBSD logger command:
  Requires modifying /etc/syslog.conf and setting facility in /etc/nix_ta.conf
2025-01-25 13:41:20 -05:00
8c02cbc5cc
Support OpenBSD
Add OpenBSD support to the scripts
Fix sysctl usage for FreeBSD in a couple places
2025-01-25 02:07:17 -05:00
24f6e18ef8
Fix df.sh and df_metric.sh
Fix Linux when df outputs a "-"
Exclude efivars partitions for Linux
Fix the output on Darwin to match Linux output
2025-01-23 18:19:40 -05:00
718a9f787c
Fix run_nix_ta_commands script
* Make run_nix_ta_commands (in extra) use /etc/nix_ta.conf for its settings
  instead of hard-coding them in the script
2025-01-20 15:59:46 -05:00
e5e03ea464
Fix docker script and props
* Fix output for docker script (handle lines that didn't have values)
* Fix props.conf LINE_BREAKER for docker
2025-01-17 11:44:24 -05:00
5551b8973d
Add script for docker events/metrics and support running TA outside of Splunk
* Add docker.sh and docker_metric.sh for collecting docker events/metrics
* Add helper script to extra/ to run the TA commands on systems without
  a Splunk forwarder. The commands can be sent to a syslog server.
  This script is useful for systems with small or read-only filesystems that
  cannot support a Universal Forwarder.
* Add syslog_inputs_nix_ta app to extra/ for ingesting the data from syslog
2025-01-11 23:28:44 -05:00
5e766d84d5
Make distro_name work everywhere
* For MacOS, print MacOS for distro_name
* For others, print $KERNEL for distro_name
2025-01-11 15:07:24 -05:00
cb7f7785c8
Fix bug in 9.2.0.2
* Add code I forgot for machine_arch for Linux
* Add Makefile to make making releases easier
2025-01-11 14:45:28 -05:00
53e0e8b8f0
improve Makefile 2025-01-11 14:27:35 -05:00
b4d814d90d
add Makefile for building releases 2025-01-11 14:22:51 -05:00
c2893d577b
Improvements for version.sh 2025-01-11 14:02:23 -05:00
7b0b703510
Fix other Splunk Add-on references
Replace all references to Splunk Add-on with Technical Add-on
Replace URLs
Remove splunkbase stuff
Add copyright
2025-01-09 17:55:11 -05:00
07122cafad
Use ip command to determine IP address ('hostname -I' does not work on all Linux systems)
Filter out multiple listing of the same btrfs volume
Use mktemp for temp files (for times when the TA may be run outside of Splunk)
If running rlog.sh outside of Splunk, use $HOME to store seek file
Debian also uses apt
Arch Linux uses pacman
Add use of sudo -n for 'apt update' and 'pacman -Syy'
vmstat uses "K paged out"
Replace the use of 'sar' with netstat and vm_stat for MacOS
2025-01-08 18:21:51 -05:00
92ac2630a1
Import Splunk Add-On for Unix and Linux version 9.2.0 2024-12-24 23:51:57 -05:00