Commit Graph

359 Commits

Author SHA1 Message Date
Jeremy Gardais 60c307b933
Fix: Ensure to grep at least one "-" 2020-06-22 18:23:22 +02:00
Jeremy Gardais 4535850b3a
Add --force option to force to enable a queue 2020-06-22 17:12:14 +02:00
Jeremy Gardais 2ac0de9343
Add --hostname option 2020-06-22 14:20:45 +02:00
Jeremy Gardais 04946977d9
Add message on stdout and quiet mode 2020-06-22 14:04:57 +02:00
Jeremy Gardais baab6c28a4
Add options list in help message 2020-06-22 13:48:37 +02:00
Jeremy Gardais 2e493e086f
Add options management 2020-06-22 13:48:26 +02:00
Jeremy Gardais 3d01cb8487
(re)enable SGE queue only if disable by a script
Test if /etc/.sge.${QUEUE_NAME}.disable exist
2020-06-22 13:25:34 +02:00
Jeremy Gardais 138aecfb47
Exit if pending upgrades 2020-06-22 12:32:31 +02:00
Jeremy Gardais 270c1eb3fb
New script to enable host's SGE queue(s) 2020-06-22 11:33:31 +02:00
Jeremy Gardais 05bc7ac54e
Rename sge disable queue script 2020-06-22 11:25:11 +02:00
Jeremy Gardais 14fc3ac684
Reboot after a successful upgrade 2020-06-22 11:23:20 +02:00
Jeremy Gardais 78be3391b0
Prepare the host before upgrade (forbid SSH,…) 2020-06-22 11:13:03 +02:00
Jeremy Gardais 872bb98950
Clean temp files after successful upgrade 2020-06-22 11:08:02 +02:00
Jeremy Gardais 17e8e0027d
Launch maco upgrade 2020-06-22 11:00:24 +02:00
Jeremy Gardais 2257ab7742
Ensure to don't have any SGE queue enable 2020-06-19 10:43:10 +02:00
Jeremy Gardais 0505db5082
Exit if any APT processes runs 2020-06-19 10:30:13 +02:00
Jeremy Gardais e522d78cb0
Prepare a script to apply Maco upgrade 2020-06-19 10:19:03 +02:00
Jeremy Gardais 23325d2060
Finish by rebooting the system 2020-06-19 10:10:13 +02:00
Jeremy Gardais 6af24258ad
Clean temp data if upgrade succeed 2020-06-19 09:28:12 +02:00
Jeremy Gardais d133af4fed
Exit with code 50 if upgrade fail 2020-06-18 17:03:57 +02:00
Jeremy Gardais 8daa80803d
Check if any Maco upgrade is present
To allow the upgrade before applying any required reboot,…
2020-06-18 17:02:39 +02:00
Jeremy Gardais c3cd76960c
Upgrade system 2020-06-18 16:39:14 +02:00
Jeremy Gardais 04b4befbc6
Check slots_used on all SGE queues 2020-06-18 12:23:17 +02:00
Jeremy Gardais 35b9846c80
Use RED color for found procs
Also remove non-breaking space character.
2020-06-18 12:14:45 +02:00
Jeremy Gardais 27ef7256a0
Watch for temp APT file if APT upgrade is available 2020-06-18 11:51:48 +02:00
Jeremy Gardais 6a84224f8a
Create a temp file if APT upgrade is available 2020-06-18 08:45:28 +02:00
Jeremy Gardais 448f71d4cc
Prepare script to apply APT upgrades 2020-06-17 16:35:11 +02:00
Jeremy Gardais ee91922764
Manage a temp file if upgrade is required 2020-06-17 16:01:25 +02:00
Jeremy Gardais 965fc3dd0e
Remove non-breaking space character 2020-06-16 10:04:01 +02:00
Jeremy Gardais 3a9bcb6979
Add detailed informations for maco probe 2020-06-15 17:48:26 +02:00
Jeremy Gardais 5cdfcd7751
New Xymon probe for Maco 2020-06-15 15:48:09 +02:00
Jeremy Gardais 06b03ea27c
Exit with success if everything was ok 2020-06-15 13:49:25 +02:00
Jeremy Gardais 03178436a9
Add simulation mode without any modifications 2020-06-15 13:48:52 +02:00
Jeremy Gardais d7dd9bd592
Check for empty vars 2020-06-15 09:23:50 +02:00
Jeremy Gardais 9adce8cb1e
Prepare host if an upgrade is required 2020-06-12 17:24:34 +02:00
Jeremy Gardais 85ded81370
Order functions (most common first) to exit 0 asap 2020-06-12 16:21:20 +02:00
Jeremy Gardais 842543d62f
Add information messages and silent mode 2020-06-12 15:23:28 +02:00
Jeremy Gardais 19dcf6a96e
Manage options outside of a function 2020-06-12 15:13:53 +02:00
Jeremy Gardais f51f207890
New script to check maco's upgrade 2020-06-12 12:34:23 +02:00
Jeremy Gardais 1b2148eceb
Display more informations after queue state 2020-06-10 16:15:29 +02:00
Jeremy Gardais 4baaabd346
More readable while loop 2020-06-10 16:11:17 +02:00
Jeremy Gardais 2dd8aa2ecc
Order alert status to get global color 2020-06-10 15:57:38 +02:00
Jeremy Gardais 8377f3ddce
Protect MACHINEDOTS var 2020-06-09 11:59:33 +02:00
Jeremy Gardais 1e315eedeb
Update comments 2020-06-09 11:57:57 +02:00
Jeremy Gardais 43fc733929
Fix xymon server var name (XYMSRV) 2020-06-09 11:47:53 +02:00
Jeremy Gardais b4ac01caf7
Fix useless call to `cat` 2020-06-09 11:47:26 +02:00
Jeremy Gardais 2db4453a76
Use direct shell commands instead of $VAR 2020-06-05 15:49:21 +02:00
Jeremy Gardais 6b20157c56
Replace `` with $() 2020-06-05 15:30:53 +02:00
Jeremy Gardais a4a6ba597f
Fix old SGE and BB vars 2020-06-05 15:24:51 +02:00
Jeremy Gardais fa02d6d485
New sge.sh Xymon's script
From https://wiki.xymonton.org/doku.php/monitors:sge
2020-06-05 14:58:13 +02:00