Commit Graph

543 Commits

Author SHA1 Message Date
Jeremy Gardais 3b016ae797
Set clear status if SMART is not supported 2020-02-20 11:18:18 +01:00
Jeremy Gardais 26d6b06c86
Add a function to test SMART support on a disk 2020-02-19 18:33:15 +01:00
Jeremy Gardais cbf0d8afb0
Comment and small fixes 2020-02-19 16:00:36 +01:00
Jeremy Gardais fcf945748b
Fix useless use of cat
https://github.com/koalaman/shellcheck/wiki/SC2002
https://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat
See also : https://github.com/koalaman/shellcheck/wiki/SC2189
2020-02-19 15:24:41 +01:00
Jeremy Gardais a210b7bb38
Fix $/${} is unnecessary on arithmetic variables
https://github.com/koalaman/shellcheck/wiki/SC2004
2020-02-19 15:23:28 +01:00
Jeremy Gardais 19afed7c2e
Fix Use $(...) notation instead of legacy backticked
https://github.com/koalaman/shellcheck/wiki/SC2006
2020-02-19 15:22:09 +01:00
Jeremy Gardais 393f9996d2
Get disk list from smartctl scan 2020-02-19 11:18:25 +01:00
Jeremy Gardais 681d1ee0c3
Init smart plugin from xymon.com
https://www.xymon.com/xymon-cgi/viewconf.sh?smart
2020-02-19 09:52:32 +01:00
Jeremy Gardais 3c6e0ad5ed
Uncomment the find commands… 2020-01-08 10:55:33 +01:00
Jeremy Gardais ee6bd3a194
Also give number of files for error message 2020-01-08 10:53:05 +01:00
Jeremy Gardais 525826f0d0
Create an archive only if files are found 2020-01-08 10:51:14 +01:00
Jeremy Gardais dea26fe311
Prefix messages with DEBUG or ERROR 2020-01-07 16:13:46 +01:00
Jeremy Gardais 86ef4f31d3
Check if the archive already exist and exit 2020-01-07 16:10:29 +01:00
Jeremy Gardais 71b1392dce
Add specific colors for debug messages 2020-01-07 16:10:01 +01:00
Jeremy Gardais a7ce5f7b42
Add info about histlogs subdirectories as well 2020-01-07 14:29:55 +01:00
Jeremy Gardais feb6615e57
Add xz compress level in tar filename 2020-01-07 10:50:17 +01:00
Jeremy Gardais 20e39439e4
Compress then remove files 2020-01-07 10:49:27 +01:00
Jeremy Gardais 7f2030edbb
Xymon: New script to archive client logfiles 2020-01-06 16:07:54 +01:00
Jeremy Gardais 5bf935198b
Now manage mumble-server service 2019-12-30 11:35:24 +01:00
Jeremy Gardais 0a20005056
Restart Nslcd service if require 2019-12-21 08:47:45 +01:00
Jeremy Gardais 7d2d6a7aef
All Nextcloud version are prefixed with a "v"… 2019-12-11 15:48:54 +01:00
Jeremy Gardais d6aff5233d
Exit when found the new OSD ID 2019-11-26 10:45:36 +01:00
Jeremy Gardais 4d1a881339
Use vars for color definition 2019-11-26 10:40:50 +01:00
Jeremy Gardais 778231eff5
Add a function to get osd's host 2019-11-26 10:32:46 +01:00
Jeremy Gardais 3bdaa0e451
Directly check exit code 2019-11-26 09:55:26 +01:00
Jeremy Gardais a1f811540f
New script to get the next OSD ID 2019-11-26 09:53:30 +01:00
Jeremy Gardais c8affaf63b
Update link to Stretch 9.11.0 ISOs 2019-11-18 10:49:24 +01:00
Jeremy Gardais bb93af354c
Add Buster's links 2019-11-17 15:58:03 +01:00
Jeremy Gardais 0e5a6b061c
Disable DEBUG 2019-10-22 18:34:59 +02:00
Jeremy Gardais 0a794fdd96
Create a script to backup all data of Docker CT 2019-10-22 18:34:15 +02:00
Jeremy Gardais b7ac722068
Clean the old backups of the container's data 2019-10-19 19:18:29 +02:00
Jeremy Gardais d187a5d568
WIP: Restart the container service 2019-10-18 21:04:08 +02:00
Jeremy Gardais 3ad60f6f39
WIP: Add debug messages 2019-10-18 19:26:42 +02:00
Jeremy Gardais 9c88629696
Create an archive of container's data 2019-10-18 19:20:52 +02:00
Jeremy Gardais 3d6dda4f9a
WIP: Stop the systemd unit for the container or docker 2019-10-17 18:49:58 +02:00
Jeremy Gardais 917bf83c59
WIP: Take full path to container data as first arg
The maximum number of args is now : 2
2019-10-17 18:49:03 +02:00
Jeremy Gardais 379e29c5b7
WIP: Determine the service name to use 2019-10-17 16:15:47 +02:00
Jeremy Gardais 5e66b3f93c
WIP: Check if directories exists 2019-10-17 16:15:42 +02:00
Jeremy Gardais 72b4db9a20
WIP: Script to backup Docker container data 2019-10-17 15:26:31 +02:00
Jeremy Gardais 7b3c343ee7
Check Nextcloud's apps upgrade 2019-10-16 16:55:42 +02:00
Jeremy Gardais 91f963774d
Avoid dev and release candidate version 2019-10-15 14:25:30 +02:00
Jeremy Gardais 23eba7fd51
Xymon: Add sample message for files probe 2019-10-10 11:52:45 +02:00
Jeremy Gardais 54615dd161
Disable debug and enable restart commands 2019-10-10 11:48:58 +02:00
Jeremy Gardais 7a0506fc50
Start by restarting rsyslog service 2019-10-10 11:46:53 +02:00
Jeremy Gardais fedd213ff4
Set a pattern for unmodified files 2019-10-10 11:43:11 +02:00
Jeremy Gardais 3720b3cc11
Add a script to manage files probe
Only files that exceeds the modification time.
2019-10-09 10:32:48 +02:00
Jeremy Gardais 4e31c4ffa8
Prepare for a new script for files probe 2019-10-09 10:10:31 +02:00
Jeremy Gardais 8ea0830cda
Use Configuration.php file to get current version
Cause index.php don't display minor version.
2019-10-05 08:56:56 +02:00
Jeremy Gardais 211b1894a4
Script to monitor new version of Nextcloud 2019-08-29 16:33:34 +02:00
Jeremy Gardais 84f7420ba2
Support php-fpm7.3 service 2019-08-28 11:29:30 +02:00