if you have trouble to get the checkmk exchange nextcloud plugin running, this content may be helpful for you.

plugin / mkp package:
https://exchange.checkmk.com/p/nextcloud

[ version: [special_nextcloud_data] Version: 25.0.2.3 ]
[ checkmk version: 2.0.0p12 ]

>> we had no success in getting the data out from nextcloud by configuring the plugin using the checkmk webfrontend, so we made some deep dive on the console:

OMD[yoursite]:~local/share/
OMD[yoursite]:~/local/share$ ./check_mk/agents/special/agent_nextcloud_data -u yourUsername -p yourPassword nextcloud.yourdomain.com

now we got the following error message:
-------------------------------------------------------------------
Traceback (most recent call last):
File "./check_mk/agents/special/agent_nextcloud_data", line 116, in <module>
data = response.json()
File "/omd/sites/rvm/lib/python3/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/omd/sites/rvm/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/omd/sites/rvm/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/omd/sites/rvm/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-------------------------------------------------------------------

>>> by debugging the script, we found out that the problem was a special character in the password, we used a § and a $ sign.
Without this characters - with only a ! as special character the plugin is working

computer2know :: thank you for your visit :: have a nice day :: © 2024