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:
parent
e5e03ea464
commit
718a9f787c
5 changed files with 18 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue