From ade5c78a9e37109490a8789da89976c0c8491067 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Mon, 31 Jan 2022 12:46:59 +0100 Subject: [PATCH] Update README.md Added interval for check_mk agent --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6dffcee..76c7c56 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ Multiple instances or checks inside docker containers are supported. Install it into /usr/lib/check_mk_agent/local/ your Nextcloud Host ``` -wget -O /usr/lib/check_mk_agent/local/check-nextcloud https://raw.githubusercontent.com/bashclub/check-nextcloud/main/check-nextcloud -chmod +x /usr/lib/check_mk_agent/local/check-nextcloud -/usr/lib/check_mk_agent/local/check-nextcloud +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 ``` After running once, the script will create the config file `/etc/check_mk/nextcoud.conf` with default settings (JSON Format):