No scripts and agent settings!
I did it using Zabbix v5.2 and this template https://github.com/y-u-r/nextcloud-zabbix/blob/master/README.md
- Go to your Nexcloud administrator account settings.
- Create application key on Security tab.
- Import this template into Zabbix server and assign it to your Nextcloud host.
- Change values of inherited macroses using Nextcloud login and application key
If everything is good you can view monitoring XML with url like:
https://NEXCLOUDADMIN:NEXTCLOUDKEY@NEXTCLOUDHOST/ocs/v2.php/apps/serverinfo/api/v1/info
Log off Nextcloud before testing or use another browser or curl -s urlabove.
If you use reverse proxy and experience:
- About 30 seconds delay with curl
- Nextcloud shows warning about too many wrong login attempts on the login page
- You get 997 error with curl or redirected to login page in browser.
Check that you've added your reverse proxy ip to confg.php like:
'trusted_proxies' => ['172.18.0.1']
If you use docker type 'ifconfig' and your proxy ip will be like 172.17.0.1 for default network or 172.XX.0.1 for custom.