check-nextcloud/README.md

56 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2022-01-30 16:23:38 +01:00
# check-nextcloud
2022-01-31 00:06:18 +01:00
CheckMK local check plugin to check Nextcloud installations.
Multiple instances or checks inside docker containers are supported.
2022-01-22 22:29:00 +01:00
Install it into /usr/lib/check_mk_agent/local/ your Nextcloud Host
```
interval=3600
mkdir -p /usr/lib/check_mk_agent/local/$interval
wget -O /usr/lib/check_mk_agent/local/$interval/check-nextcloud https://raw.githubusercontent.com/bashclub/check-nextcloud/main/check-nextcloud
chmod +x /usr/lib/check_mk_agent/local/$interval/check-nextcloud
/usr/lib/check_mk_agent/local/$interval/check-nextcloud
2022-01-22 22:29:00 +01:00
```
2022-10-17 18:47:37 +02:00
After running once, the script will create the config file `/etc/check_mk/nextcloud.conf` with default settings (JSON Format):
2022-01-22 22:29:00 +01:00
```
{
"nextcloud.zmb.rocks": {
"nc_path": "/nextcloud/server",
"nc_php_version": "7.4",
"nc_www_user": "www-data"
}
}
```
2022-01-30 23:19:51 +01:00
2022-01-31 00:06:18 +01:00
### Multiple instances example
2022-01-30 23:19:51 +01:00
```
{
"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"
}
}
```
2022-01-31 00:06:18 +01:00
### Docker example:
```
{
"nextcloud.zmb.rocks": {
"nc_path": "/var/www/html",
"nc_php_version": "",
"nc_www_user": "www-data",
"docker_container": "composestack-nextcloud-fpm"
}
}
```
2023-03-14 15:48:37 +01:00
2023-03-14 15:48:48 +01:00
# Author
2023-03-14 15:48:37 +01:00
### Thorsten Spille
[<img src="https://storage.ko-fi.com/cdn/brandasset/kofi_s_tag_dark.png" rel="Support me on Ko-Fi">](https://ko-fi.com/thorakel)