Commit Graph

395 Commits

Author SHA1 Message Date
Jeremy Gardais 7bef77a04e
Github-ceph: Move file to monitor to /srv/
It's better to keep "update file" even after a reboot cause Ceph is not
necessarily automatically upgrade when a new version is release. It's
better to wait few days to avoid possibles regressions.
2021-03-24 10:07:55 +01:00
Jeremy Gardais ea792f4d43
Ceph: Fix the Debian version comparison 2021-03-24 06:38:36 +01:00
Jeremy Gardais ba359c4f75
Exit if sge_qmaster host is not reachable 2021-03-11 14:50:25 +01:00
Jeremy Gardais b4220d218a
Replace "." to "_" in cronjob path
Cron jobs with a dot in the path won't work.
2021-02-24 13:57:11 +01:00
Jeremy Gardais 10aed6c7f1
Script to verify Ceph version 2021-02-24 13:49:37 +01:00
Jeremy Gardais fd63db37d2
No longer remove benchmarks! 2021-02-15 12:06:16 +01:00
Jeremy Gardais 3126864255
Use `find … -delete` to remove file with pattern 2021-01-28 11:27:19 +01:00
Jeremy Gardais 9617abc968
Test is_sge_host earlier 2021-01-26 20:02:22 +01:00
Jeremy Gardais 259fbd8531
Exit if SGE isn't available on a host 2021-01-26 18:23:01 +01:00
Jeremy Gardais cd8f4db423
unknown macostatus = red alert
Because the SGE queue require this parameter to be re-enable.
2021-01-15 21:17:06 +01:00
Jeremy Gardais 20e4713e56
PLUGIN_* files are recreated at each run
Only MACO_VERSION_RESULT needs to be kept for ~10 hours (to avoid to
mount store.ipr everytime!).
2021-01-14 12:07:16 +01:00
Jeremy Gardais f92520577f
Rename get_maco_update to check_maco_version 2021-01-14 12:04:36 +01:00
Jeremy Gardais 3b29544775
Empty TEMP_MACO_UPDATE file if too old 2021-01-14 11:59:44 +01:00
Jeremy Gardais 7b33a5947d
Red color is reserved for failed update 2021-01-13 16:08:31 +01:00
Jeremy Gardais c6c1fd2bd0
Manage case if file isn't readable or unknown status 2021-01-13 15:43:37 +01:00
Jeremy Gardais bff4b528fa
Display MacoStatus information in Xymon Maco test 2021-01-13 15:18:08 +01:00
Jeremy Gardais e10658b1e5
Ensure to get main color 2021-01-13 13:48:33 +01:00
Jeremy Gardais c2519ebc5c
Redirect header to PLUGIN_RESULT file… 2021-01-13 13:11:02 +01:00
Jeremy Gardais 88c0b2766f
Add title with add_header func 2021-01-13 13:02:32 +01:00
Jeremy Gardais 176835f599
Check if urgent update is pending 2021-01-13 12:57:40 +01:00
Jeremy Gardais d8ecdc01e1
Check if normal update is pending 2021-01-13 12:40:03 +01:00
Jeremy Gardais cc83325ed9
Check maco_update if any file is empty 2021-01-13 12:16:37 +01:00
Jeremy Gardais 19c1756bef
COLOR is added to PLUGIN_RESULT line if expected 2021-01-13 12:06:55 +01:00
Jeremy Gardais b6eb13621d
Rename get_maco_status to get_maco_update 2021-01-13 11:21:23 +01:00
Jeremy Gardais 9fa3f4b908
Edit testing message 2021-01-13 11:05:11 +01:00
Jeremy Gardais 7013e9019c
Be sure to have version sorted! 2021-01-11 10:45:07 +01:00
Jeremy Gardais e02b666049
Test if MACO_TMP_FILE exists… 2021-01-06 13:35:52 +01:00
Jeremy Gardais d8c34f6fcc
Clean temp files before run maco_upgrade 2021-01-06 12:12:55 +01:00
Jeremy Gardais 5222bdf3e5
Maco upgrade temp file is now stored in /opt/maco 2021-01-06 12:07:31 +01:00
Jeremy Gardais 85c4950d6b
Check maco status before re-enable SGE queue 2021-01-06 11:52:24 +01:00
Jeremy Gardais 3795fcbeea
Reboot after successful upgrade 2021-01-06 11:46:19 +01:00
Jeremy Gardais c7093dd177
Re-add APT_TMP_FILE…
Due to a previous unwanted remove…
Otherwise the SGE queue is re-enable in the hour.
2020-12-29 11:40:13 +01:00
Jeremy Gardais 1595b625cd
Let Maco reboot the host with atd 2020-12-22 15:42:16 +01:00
Jeremy Gardais 036975b8fc
Fix EMPTY_ONLY_MODE definition 2020-12-04 08:36:04 +01:00
Jeremy Gardais 4e87760e43
Add EMPTY_ONLY_MODE (exit if slots not empty) 2020-12-03 12:49:55 +01:00
Jeremy Gardais 06f7dadcd8
Remove too complicated tests (attempts, % used slots) 2020-12-03 12:38:50 +01:00
Jeremy Gardais fc37812f7b
Correct size of one line in temp file 2020-11-30 17:50:27 +01:00
Jeremy Gardais db0b6fcde9
Deal with non requested reboot (restart SGE earlier)
Check running processes earlier to restart SGE even after a non
requested reboot (power outage, system crash,…).
2020-11-30 16:17:19 +01:00
Jeremy Gardais ab742e8295
Add possibility to check for urgent upgrade only 2020-11-30 15:48:25 +01:00
Jeremy Gardais 2036f081fe
Allow to manage max_attempts with argument (-a,-t)
With -a, --attempt, --attempts, -t or --tries.
2020-11-30 15:31:02 +01:00
Jeremy Gardais fbe10bda8f
Rename days to attempts
If we run X times the script with available upgrade, the SGE queue will
be disabled.
2020-11-30 14:45:23 +01:00
Jeremy Gardais a18bd2cb96
Ensure to enable maco.service before maco's upgrade 2020-11-23 17:31:50 +01:00
Jeremy Gardais dcbe6c7459
Exclude beta version from shaarli monitored release 2020-09-25 15:39:54 +02:00
Jeremy Gardais 62128c89bb
Test apt upgrade before all sub-tests 2020-09-25 15:08:51 +02:00
Jeremy Gardais 7c2edce71d
If no test succeed, just add content to temp file 2020-09-25 13:42:59 +02:00
Jeremy Gardais fed34bae66
Move some vars def to define_vars function 2020-09-25 13:39:27 +02:00
Jeremy Gardais 7f8947dac9
Disable queue if pending upgrade for more than 3 days 2020-09-25 13:24:20 +02:00
Jeremy Gardais d79c9fe833
Disable SGE queue if used slots is EMPTY 2020-09-25 11:36:12 +02:00
Jeremy Gardais d9beee6e27
Disable queue if used slots reach a percentage 2020-09-25 10:03:24 +02:00
Jeremy Gardais 8b7a32ccfb
Allow some basics options (-h and -d) 2020-09-24 15:18:09 +02:00