Check maco_update if any file is empty
This commit is contained in:
parent
19c1756bef
commit
cc83325ed9
|
@ -181,15 +181,13 @@ main() { # {{{
|
||||||
regenerate_if_too_old "${PLUGIN_RESULT}"
|
regenerate_if_too_old "${PLUGIN_RESULT}"
|
||||||
regenerate_if_too_old "${PLUGIN_STATE}"
|
regenerate_if_too_old "${PLUGIN_STATE}"
|
||||||
|
|
||||||
# If previous result is empty
|
## If any previous file is empty
|
||||||
## Re-check Maco update
|
if is_file_empty "${PLUGIN_RESULT}" || is_file_empty "${PLUGIN_STATE}"; then
|
||||||
is_file_empty "${PLUGIN_RESULT}" \
|
## (re)check Maco update
|
||||||
&& get_maco_update
|
get_maco_update
|
||||||
|
## Analyze Maco update result (add color,…)
|
||||||
# If previous state is empty
|
analyze_maco_update
|
||||||
## analyze Maco's result
|
fi
|
||||||
is_file_empty "${PLUGIN_STATE}" \
|
|
||||||
&& analyze_maco_update
|
|
||||||
|
|
||||||
# Send data to Xymon server
|
# Send data to Xymon server
|
||||||
## and exit
|
## and exit
|
||||||
|
|
Loading…
Reference in New Issue