Commit Graph

244 Commits

Author SHA1 Message Date
Jeremy Gardais 15ae72554b
New Proxmox vzdump script for Buster LXC template 2020-04-09 11:41:49 +02:00
Jeremy Gardais 77bca840f5
Update to Debian Buster 2020-04-09 11:29:46 +02:00
Jeremy Gardais 98434092ab
Update to Debian latest version 2020-03-30 09:11:12 +02:00
Jeremy Gardais 27d25a355b
Increase the nb of displayed tests to see a week 2020-03-28 09:46:14 +01:00
Jeremy Gardais 6945c0e867
Add type in support filename to avoid conflict 2020-03-28 09:41:44 +01:00
Jeremy Gardais 3fe298f961
Add a pattern for unsupported logging of self-test 2020-03-16 17:55:20 +01:00
Jeremy Gardais 48d61ec8a7
Set xymon as owner for logfiles 2020-03-11 14:14:16 +01:00
Jeremy Gardais 81cb710ec4
Fix comments about cleaning logfiles 2020-03-11 12:01:46 +01:00
Jeremy Gardais 30eb210111
Regenerate disk informations if too old 2020-03-11 11:31:43 +01:00
Jeremy Gardais 83f4d52260
Regenerate drivedb's compatible list only if old
And add a disk to that list only if not already present.
2020-03-11 11:25:06 +01:00
Jeremy Gardais 5c8a9f9bb5
Regenerate list of SMART disk only if too old 2020-03-11 11:20:26 +01:00
Jeremy Gardais d49b19bdc4
New function to regenerate a file if too old 2020-03-11 10:52:44 +01:00
Jacek Tomasiak af5c5d4ef4
- smart: fixed overall health color - smart: added WHEN_FAILED checking 2020-03-10 16:19:38 +01:00
Jeremy Gardais b5678dffe2
Remove temp file only if no upgrade detected 2020-03-09 11:47:36 +01:00
Jeremy Gardais 451cd0b01a
Add a script to monitor new version of Shaarli 2020-03-08 00:32:37 +01:00
Jeremy Gardais d6befb67e2
Move _smarctl_support_result file to XYMONTMP dir 2020-03-04 11:00:34 +01:00
Jeremy Gardais ac0d619cd7
Build a list of device known from smartmontools DB
And compatible with selftest logging.
This file can next be used by an advanced script.
2020-03-04 10:56:36 +01:00
Jeremy Gardais 60217f1eec
Rename logfiles and keep them between each run 2020-03-04 09:57:20 +01:00
Jeremy Gardais 087ccf5068
Use Xymon tmp dir 2020-03-03 14:20:18 +01:00
Jeremy Gardais ff84243229
Manage files with variables... 2020-02-28 15:14:36 +01:00
Jeremy Gardais 4d90168df5
Store files to Xymon's tmp dir (with var XYMONTMP) 2020-02-28 14:36:00 +01:00
Jeremy Gardais e55b2d990f
Regenerate disk_list file if too old 2020-02-28 14:22:32 +01:00
Jeremy Gardais a9d76dd030
Put disk_list file content to disks array 2020-02-28 13:58:33 +01:00
Jeremy Gardais ddd9191af9
Create a file with the list of disks to test 2020-02-28 09:56:36 +01:00
Jeremy Gardais c954b608b6
Init smart plugin from Jacek Tomasiak
From: https://github.com/skazi0/xymon-plugins/blob/master/client/ext/smart
2020-02-28 09:53:47 +01:00
Jeremy Gardais 489983bedb
Run smartctl command to launch test 2020-02-27 16:36:52 +01:00
Jeremy Gardais a1bfb78037
Fix comments 2020-02-27 16:09:19 +01:00
Jeremy Gardais cf12d2bcd9
Ensure arguments have expected values 2020-02-27 16:04:49 +01:00
Jeremy Gardais fafd2cfc20
Get the test to run 2020-02-27 15:59:30 +01:00
Jeremy Gardais d14839762a
Display help message 2020-02-27 15:53:07 +01:00
Jeremy Gardais e7300d63f1
Choose the correct type to use with smartctl 2020-02-27 15:15:47 +01:00
Jeremy Gardais 17734c77a1
Get disk path and type for each result 2020-02-27 14:01:18 +01:00
Jeremy Gardais ff57404836
Init smart.run.test.sh script 2020-02-27 13:33:19 +01:00
Jeremy Gardais 4bca7327b5
Add state and message if logging aren't supported 2020-02-26 11:43:15 +01:00
Jeremy Gardais 094c1d0f93
Set new foldmarker (for Ansible compatibility) 2020-02-25 17:36:34 +01:00
Jeremy Gardais 3e52ecdd31
Fix ddc0d42 with basename to get script name... 2020-02-24 14:31:04 +01:00
Jeremy Gardais 128865f877
Rename smart to smartoverall 2020-02-24 13:59:39 +01:00
Jeremy Gardais ddc0d42eed
Use script name to detect plugin name on server 2020-02-24 13:32:00 +01:00
Jeremy Gardais 8efe91c0e8
Add description and information about the script 2020-02-21 17:53:58 +01:00
Jeremy Gardais 1bd4079a4e
Check if a selftests are recorded
Then display the last 3 or put this disk in error state.
2020-02-21 17:30:25 +01:00
Jeremy Gardais 2e114b4179
Only display smart DB message for supported device 2020-02-21 11:04:10 +01:00
Jeremy Gardais aa0a2359a5
Add message if the model is known in smart DB 2020-02-21 10:26:05 +01:00
Jeremy Gardais f433389f0e
Try to display info even for unsupported device 2020-02-21 08:50:07 +01:00
Jeremy Gardais beee18371c
Display additionnal device info in detail 2020-02-20 18:43:23 +01:00
Jeremy Gardais 8a3c0de8e4
Add comment 2020-02-20 16:32:25 +01:00
Jeremy Gardais b6c1913065
Create or empty previous files and fix redirection 2020-02-20 16:02:05 +01:00
Jeremy Gardais 5ec0d0c8ee
Manage case of scan doesn't return any result 2020-02-20 15:55:29 +01:00
Jeremy Gardais 3258881a0f
Add info if the type/device isn't supported 2020-02-20 15:37:50 +01:00
Jeremy Gardais b589528e03
Fix individual redirection with { cmd1; cmd2; }
Consider using { cmd1; cmd2; } >> file instead of individual redirects.
See : https://github.com/koalaman/shellcheck/wiki/SC2129
2020-02-20 15:35:33 +01:00
Jeremy Gardais b05d10771c
Manage case of an empty file with smartctl results 2020-02-20 14:47:33 +01:00