KodoGit / nextcloud-zabbix-monitoring

Nextcloud monitoring using Zabbix http agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zabbix template for Nextcloud monitoring.

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

Install

  1. Go to your Nexcloud administrator account settings.
  2. Create application key on Security tab.
  3. Import this template into Zabbix server and assign it to your Nextcloud host.
  4. Change values of inherited macroses using Nextcloud login and application key

Manual test

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.

Troubleshoot

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.


https://github.com/KodoGit/nextcloud-zabbix-monitoring

About

Nextcloud monitoring using Zabbix http agent