2022-01-30 16:23:38 +01:00
|
|
|
# check-nextcloud
|
2022-01-22 22:29:00 +01:00
|
|
|
CheckMK local check plugin to check Nextcloud installations
|
|
|
|
|
|
|
|
Install it into /usr/lib/check_mk_agent/local/ your Nextcloud Host
|
|
|
|
```
|
2022-01-30 16:23:38 +01:00
|
|
|
wget -O /usr/lib/check_mk_agent/local/check-nextcloud https://raw.githubusercontent.com/bashclub/check-nextcloud/main/check-nextcloud
|
2022-01-30 22:54:36 +01:00
|
|
|
chmod +x /usr/lib/check_mk_agent/local/check-nextcloud
|
2022-01-30 16:23:38 +01:00
|
|
|
/usr/lib/check_mk_agent/local/check-nextcloud
|
2022-01-22 22:29:00 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
After running once, the script will create the config file `/etc/check_mk/nextcoud.conf` with default settings (JSON Format):
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"nextcloud.zmb.rocks": {
|
|
|
|
"nc_path": "/nextcloud/server",
|
|
|
|
"nc_php_version": "7.4",
|
|
|
|
"nc_www_user": "www-data"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
Please adjust the settings to your needs.
|
|
|
|
You can also add multiple instances.
|
2022-01-30 23:19:51 +01:00
|
|
|
|
|
|
|
Example config with multiple instances (e.g. on ISPconfig):
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"nextcloud.zmb.rocks": {
|
|
|
|
"nc_path": "/var/www/nextcloud.zmb.rocks",
|
|
|
|
"nc_php_version": "7.4",
|
|
|
|
"nc_www_user": "web001"
|
|
|
|
},
|
|
|
|
"nextcloud.bashclub.org": {
|
|
|
|
"nc_path": "/var/www/nextcloud.bashclub.org",
|
|
|
|
"nc_php_version": "8.0",
|
|
|
|
"nc_www_user": "web001"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|