Commit graph

468 commits

Author SHA1 Message Date
Jérémy Lecour 29363bcc23 Preliminary support for Debian 11 « Bullseye » 2021-07-07 15:14:53 +02:00
Jérémy Dubois d10acee88e Merge pull request 'Ignore VRRP interfaces in IS_AUTOIF, as they are virtuals interfaces' (#133) from is_autoif-ignore_vrrp into master
Reviewed-on: evolix/evocheck#133
2021-05-25 14:19:56 +02:00
Brice Waegeneire bea0bfb4e5 IS_APTGETBAK: more explicit error message 2021-05-17 15:00:39 +02:00
Jérémy Dubois 6c14daefca Ignore VRRP interfaces in IS_AUTOIF, as they are virtuals interfaces 2021-05-17 11:47:58 +02:00
Ludovic Poujol 47984e7f92 Add new check IS_LXC_CONTAINER_RESOLV_CONF
Will ensure that every container has a resolv.conf file
and that all nameservers configured in the host resolv.conf file are present
in the container's resolv.conf
2021-04-19 11:01:49 +02:00
Eric Morino 2aa1c26c34 Fix for EVOLIX_USER account name begin by evolix, don't match testevolix for example 2021-01-18 11:20:42 +01:00
Jérémy Lecour 7d4e92a5e3 Release 20.12 2020-12-08 10:44:33 +01:00
Jérémy Lecour 44b09ef850 support multiple values for SQL_BACKUP_PATH and POSTGRES_BACKUP_PATH 2020-12-08 10:43:10 +01:00
Jérémy Lecour 83fa22a72a IS_VARTMPFS: use findmnt if available 2020-09-04 15:36:51 +02:00
Jérémy Lecour 6993e8f8b3 fix quoting error 2020-09-04 12:01:15 +02:00
Jérémy Lecour 3f65cdafc6 IS_POSTGRES_BACKUP: look for compressed backup too 2020-09-04 11:56:00 +02:00
Benoît S. eea3e4b36e Merge branch 'master' into IS_DUPLICATE_FS_LABEL-blkid-fix 2020-06-26 08:50:58 +02:00
Benoît S. 652fcdbe44 IS_DUPLICATE_FS_LABEL: blkid has a cache that can provoke false positive
Disable the cache by using `-c /dev/null`.

Example of false positive:

```
/dev/mapper/HDD0-swap2: LABEL="SWAP2" UUID="5540a49e-3e7b-4528-9c4e-49fb5f8d7f3d" TYPE="swap"
/dev/dm-0: LABEL="SWAP2" UUID="5540a49e-3e7b-4528-9c4e-49fb5f8d7f3d" TYPE="swap"
```

`dm-0` may have been cached during boot time, if you don't use a cache,
it doesn't appear any more.
2020-06-26 15:49:30 +09:00
Jérémy Lecour 98caca3592 Remove PROGDIR variable
The "realpath -m" command is not compatible with old versions of Debian.
The PROGDIR variable is unused.
2020-06-17 22:52:17 +02:00
Jérémy Lecour 5e4b60e61b IS_EVOBACKUP_EXCLUDE_MOUNT: exclude disabled backup scripts 2020-05-11 17:18:04 +02:00
Jérémy Lecour 3d0e632dec Don't search /etc/nginx if it doesn't exist 2020-04-28 15:58:08 +02:00
Jérémy Lecour d95275a23a Release 20.04.3 2020-04-24 11:25:36 +02:00
Jérémy Lecour e72de02c96 IS_EVOBACKUP_INCS: also look for the new command 2020-04-24 11:24:11 +02:00
Jérémy Lecour 490d351aca shellcheck fixes 2020-04-22 14:03:55 +02:00
Jérémy Lecour dad08d7c3d IS_NGINX_LETSENCRYPT_UPTODATE: new check
verify that the letsencrypt snippet is compatible with the current 
version of Nginx
2020-04-16 12:17:45 +02:00
Jérémy Lecour 985a57412f Release 20.04.2 2020-04-15 18:00:01 +02:00
Jérémy Lecour 40ada4de70 IS_CHROOTED_BINARY_NOT_UPTODATE: new check
Verify that chrooted processes run up-to-date binaries
2020-04-15 10:46:25 +02:00
Jérémy Lecour 95c9f1f99b Release 20.04.1 2020-04-12 22:27:14 +02:00
Jérémy Lecour 084348548b IS_EVOBACKUP_EXCLUDE_MOUNT : verify that mount points are excluded in evobackup scripts 2020-04-12 20:01:50 +02:00
Jérémy Lecour 9158f4e0be Release 20.02.1 2020-02-27 11:35:34 +01:00
Jérémy Lecour 7961d599a3 IS_EVOLINUXSUDOGROUP : improve sudoer directive detection 2020-02-27 11:35:23 +01:00
Jérémy Lecour 21e0c79570 it was a bad idea
the backup dir should stay conventional, in /home/backup.
we should deal with "system files moved elsewhere" in a different way
2019-11-07 13:28:32 +01:00
Jérémy Lecour ff10ae4ad4 Release 19.11.2 2019-11-07 10:36:53 +01:00
Jérémy Lecour eb4b03f8b1 IS_BACKUPUPTODATE : check backup dates in the correct directory 2019-11-07 10:25:12 +01:00
Jérémy Lecour ae30d6555c IS_EVOMAINTENANCE_FW only if HOOK_DB is enabled 2019-11-07 09:41:28 +01:00
Jérémy Lecour 349d77a2df Release 19.11.1 2019-11-06 07:45:48 +01:00
Jérémy Lecour 5bce944979 improve grep in IS_USRRO 2019-11-06 07:44:24 +01:00
Jérémy Lecour 905ef88c49 fix grep in IS_TMPNOEXEC 2019-11-06 07:43:43 +01:00
Jérémy Lecour fc3b411506 Release 19.11 2019-11-05 16:17:46 +01:00
Jérémy Lecour 4faeb8063f typo 2019-11-04 13:30:05 +01:00
Jérémy Lecour e5b110631a IS_MELTDOWN_SPECTRE=0 with cron mode 2019-11-04 13:15:30 +01:00
Jérémy Lecour c1961fa610 check_tmpnoexec: use findmnt if available 2019-10-29 09:58:55 +01:00
Jérémy Lecour 280c904240 check_tune2fs_m5: use findmnt to display the mount point 2019-10-29 09:58:35 +01:00
Jérémy Lecour 96a41a16c0 Release 19.10 2019-10-25 13:15:08 +02:00
Jérémy Lecour b08184683f Disable some tests by default by not removing them completely 2019-10-24 11:31:04 +02:00
Gregory Colpart a281750040 disable spoilt checks (TODO: fix them and re-enabled them) 2019-10-03 15:09:41 +02:00
Jérémy Lecour 15b2fc6139 Release 19.09 2019-09-22 22:39:44 +02:00
Jérémy Lecour d82bc8c170 squid: search "http_port" at beginning of line 2019-09-22 22:38:58 +02:00
Jérémy Lecour 6d63b62804 Release 19.08 2019-08-30 14:22:07 +02:00
Jérémy Lecour 47e3fc841a better error messages for missing commands 2019-08-30 08:46:59 +02:00
Benoît S. 82a53ce0f7 Fixed errors while fixing merge conflicts 2019-07-16 12:03:17 +02:00
Benoît S. 25274bfabd Merge branch 'buster-support' 2019-07-16 11:59:36 +02:00
Benoît S. 2779afbbe3 Merge remote-tracking branch 'origin/master' 2019-07-16 11:46:43 +02:00
Benoît S. e7d2d5ccbb Merge branch 'verbose-for-all-checks' of evolix/evocheck into master 2019-07-16 11:46:14 +02:00
Benoît S. c0ef3027dd Merge branch 'no-check-valid-until' 2019-07-16 11:45:23 +02:00
Benoît S. e9641cda1c Merge branch 'ELASTIC_BACKUP-new-path' of evolix/evocheck into master 2019-07-16 11:41:56 +02:00
Benoît S. 7e04cbec61 phpevolinuxconf: Handle php 7.3 for buster 2019-07-05 15:27:59 +02:00
Benoît S. abd63fe248 All stretch checks must be enabled for buster too 2019-07-05 15:22:30 +02:00
Benoît S. 09e7bbaead Verbose messages for all checks! 2019-07-05 14:43:12 +02:00
Benoît S. b493a13438 log2mailapache: Handle buster case 2019-07-05 10:43:57 +02:00
Benoît S. b5d4f19200 squid: Handle buster case 2019-07-05 10:42:37 +02:00
Benoît S. a11e6f9877 apachemunin: Handle buster case 2019-07-05 10:40:19 +02:00
Benoît S. c094828aff alert5minifw: Handle buster case 2019-07-05 10:37:14 +02:00
Benoît S. bb2a5b5121 alert5boot: Handle buster case 2019-07-05 10:31:46 +02:00
Benoît S. ea005c273b listchangesconf: Handle buster case 2019-07-05 10:24:53 +02:00
Benoît S. bed8d9d59a check_sshpermitrootno: same check for buster as stretch 2019-07-05 10:22:38 +02:00
Benoît S. e7bf343048 Add is_debian_buster function 2019-07-05 10:12:24 +02:00
Benoît S. af04555ae6 Add IS_APT_VALID_UNTIL
If you use archive.debian.org in sources.list you'll need
`Acquire::Check-Valid-Until no;` set in apt config file, otherwise you'll have
errors like:

```
E: Release file for
http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired
(invalid since 44d 11h 3min 25s). Updates for this repository will not be
applied.
```
2019-06-27 15:16:07 +02:00
Benoît S. 84005b8d60 Implement #77 Check that jessie use backports from archive 2019-06-27 14:49:07 +02:00
Benoît S. c0b6e3d474 IS_ELASTIC_BACKUP: New path
According to latest zzz_evobackup, path is /home/backup-elasticsearch
2019-06-21 15:44:39 +02:00
Benoît S. 8702da330d Bump VERSION 2019-06-21 14:31:23 +02:00
Benoît S. 144ae5f7a5 Merge branch 'fix-mysqlnrpe' of evolix/evocheck into master 2019-06-21 14:00:37 +02:00
Benoît S. eb70a0e85f Merge branch 'evomaintenance-api-not-yet-in-production' of evolix/evocheck into master 2019-06-21 11:22:12 +02:00
Benoît S. afb6099f88 We can use multiple packages in is_installed 2019-06-21 11:13:46 +02:00
Benoît S. c4d407417a Rewording, say the package name in verbose mode 2019-06-21 11:02:46 +02:00
Benoît S. 2c8fc41c01 Closes #97. Implement IS_OSPROBER 2019-06-21 10:59:59 +02:00
Jérémy Lecour 6ea7e2ad7c Simplify the check
The original issue is fixed by removing the uotes (qhich fixes the 
expansion).
Then we check only that a check_mysql is configured, without matching 
the whole line.
2019-06-18 16:39:12 +02:00
Jérémy Lecour 3c92290917 fix check_mysqlnrpe
the shell doesn't expand "~nagios", which makes the first test fail.
the grep wasn't looking for the nrpe config file :/
2019-06-07 14:54:47 +02:00
Benoît S. 8b2d789830 Merge branch 'apachesymlink-verbose' 2019-06-06 16:36:04 +02:00
Benoît S. 27350990c5 Merge branch 'diskperf-disabled-for-now' of evolix/evocheck into master 2019-06-06 16:27:29 +02:00
Benoît S. ab92abd3ea EVOMAINTENANCE: API not yet in production!
Remove API check for now.
Revert it when evomaintenance's API will be in production.
2019-06-04 18:01:15 +02:00
Benoît S. 982db855aa APACHE_SYMLINK: Add verbose mode and replace stat by find 2019-06-04 17:48:19 +02:00
Benoît S. 7d5080d496 Closes #91. DISKPERF check is not used anymore
Could be re-added in the future.
2019-06-04 17:05:48 +02:00
Benoît S. cad468af62 apache2.2-common is not installed on Jessie nor Stretch
5 checks were not checked because apache2.2-common was not in dpkg -l output!
Replaced apache2.2-common by apache2.

ii  apache2
2019-06-04 16:57:54 +02:00
Jérémy Lecour d310af3b5c fix shellcheck warnings 2019-04-25 14:10:28 +02:00
Jérémy Lecour a76565dd2d Version 19.04 2019-04-25 13:22:29 +02:00
Nicolas Roman d7bf71a6a1 added API_ENDPOINT and API_KEY fields for the evomaintenance check config 2019-04-25 12:05:07 +02:00
Jérémy Lecour cd4ea09ac6 Add IS_EVOBACKUP_INCS check 2019-04-25 11:55:55 +02:00
Jérémy Lecour 7ec807b3b4 fix return value for minifirewall_file function 2019-04-05 21:35:08 +02:00
Jérémy Lecour 5c055b681b move comments above functions 2019-04-05 15:45:36 +02:00
Jérémy Lecour c93939c306 extract minifirewall_file function 2019-04-05 15:45:36 +02:00
Jérémy Lecour 5160d5a56c Extract functions 2019-04-05 15:45:36 +02:00
Jérémy Lecour 9e50962b17 do not print warnings in quiet mode 2019-04-04 20:52:13 +02:00
Jérémy Lecour 53b86b991f add a break 2019-04-04 18:32:43 +02:00
Jérémy Lecour 4d952b1013 limit Samba check to lenny 2019-04-04 18:30:46 +02:00
Jérémy Lecour 0fa12b0cfd use octal representation of permissions 2019-04-04 18:28:49 +02:00
Jérémy Lecour 7dab67e303 fix typo 2019-04-04 18:25:10 +02:00
Jérémy Lecour e9cee7c4c0 report if blkid is missing 2019-03-25 10:04:40 +01:00
Jérémy Lecour decb3fbb0c bump version 2019-03-24 21:56:20 +01:00
Jérémy Lecour 4547705b45 skip test if munin is not setup in cron mode 2019-03-24 21:52:32 +01:00
Jérémy Lecour 3838f07c3b awstats must be installed to check its configuration 2019-03-24 21:50:51 +01:00
Jérémy Lecour f4b1c96be0 verbose mode for AUTOIF 2019-03-24 21:35:28 +01:00
Jérémy Lecour 809146de52 systemd network configuration is not supported yet 2019-03-24 21:27:16 +01:00
Jérémy Lecour a7abd80f93 Use awk to have a rounded percentage
python is slow
bash supports only integer arithmetics
"bc" can't round to the ceiling
2019-03-24 21:10:47 +01:00
Jérémy Lecour 4136b310c1 fallback to python if bc(1) is missing 2019-03-23 21:09:36 +01:00