Skip to content
Snippets Groups Projects
Verified Commit e4d7e766 authored by David Hoese's avatar David Hoese
Browse files

Fix checkmk script for daily directories

parent b9776739
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,9 @@ base_raw_dir="/data1/raw/aoss/ceilo"
now_seconds=$(date +%s)
if [ $now_seconds -lt $threshold_seconds ]; then
# we're just after midnight, check yesterday's directory
data_file_suffix=$(date -d yesterday +%Y/%m/aoss_ceilo.%Y-%m-%d.ascii)
data_file_suffix=$(date -d yesterday +%Y/%m/%d/aoss_ceilo.%Y-%m-%d.ascii)
else
data_file_suffix=$(date +%Y/%m/aoss_ceilo.%Y-%m-%d.ascii)
data_file_suffix=$(date +%Y/%m/%d/aoss_ceilo.%Y-%m-%d.ascii)
fi
if [ ! -f ${base_raw_dir}/${data_file_suffix} ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment