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
This commit is contained in:
Michael Erdely 2025-01-20 15:59:46 -05:00
parent e5e03ea464
commit 718a9f787c
Signed by: mike
SSH key fingerprint: SHA256:ukbnfrRMaRYlBZXENtBTyO2jLnql5AA5m+SzZCfYQe0
5 changed files with 18 additions and 6 deletions

View file

@ -1,2 +1,2 @@
9.2.0.6
9.2.0.6
9.2.0.7
9.2.0.7

View file

@ -29,7 +29,7 @@
"id": {
"group": null,
"name": "TA-nix",
"version": "9.2.0.6"
"version": "9.2.0.7"
},
"license": {
"name": "Splunk Software License Agreement",

View file

@ -17,7 +17,7 @@ docs_section_override = AddOns:released
[launcher]
author = Michael Erdely
version = 9.2.0.6
version = 9.2.0.7
description = Technical Add-on for Unix and Linux
#[package]
@ -26,5 +26,5 @@ description = Technical Add-on for Unix and Linux
[id]
name = TA-unix
version = 9.2.0.6
version = 9.2.0.7

View file

@ -1,5 +1,14 @@
# Technical Add-on for Unix and Linux
## Version 9.2.0.7 (2025-01-20)
Fix run_nix_ta_commands script
Changes:
* Make run_nix_ta_commands (in extra) use /etc/nix_ta.conf for its settings
instead of hard-coding them in the script
## Version 9.2.0.6 (2025-01-17)
Fix docker script and props

View file

@ -21,7 +21,7 @@
# # End of sample rsyslog.conf
#
# To use:
# * Modify the variables below to fit your environment
# * Create a new file (/etc/nix_ta.conf) with the following settings in it
# * ta_home: The directory you copied the Technical Add-on for Unix and Linux files
# * tag_prefix: The events will be sent to syslog with ${tag_prefix}SCRIPTNAME as a tag
# * syslog_server: The UDP syslog server to send events to
@ -32,12 +32,15 @@
# Ensure the logger command is available
which logger > /dev/null 2>&1 || { echo "Error: The logger command is required for this script"; exit; }
# Example/default settings -- override in /etc/nix_ta.conf
ta_home=/srv/TA-unix
tag_prefix=nix_ta_
syslog_server=192.168.1.1
run_minute=2
run_hour=6
[ -r /etc/nix_ta.conf ] && . /etc/nix_ta.conf
# Get the current minute now to be consistent through the script run
minute=$(date +%_M | tr -d ' ')
# Get the current hour now to be consistent through the script run