Git Product home page Git Product logo

nextcloud-zabbix's Introduction

nextcloud-zabbix

With this template you can monitor a nextcloud via xml file

  1. Import "zbx_export_templates.xml" to your zabbix templates
  2. change domain in nextcloud.conf file copy it to /etc/zabbix/zabbix_agentd.d/nextcloud.conf
  3. add line 'Include=/etc/zabbix/zabbix_agentd.d/nextcloud.conf' to zabbix_agentd.conf file
  4. add additional macro to your nextcloud host called "{$NCPW}" and add your api user password as value

nextcloud-zabbix's People

Contributors

y-u-r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nextcloud-zabbix's Issues

Wrong API URL (at least for NC 13)

To work with Nextcloud 13 the API URL string in nextcloud.conf should be:
https://"$2"@domain.tld/ocs/v2.php/apps/serverinfo/api/v1/info
Login credentials are subltituted from the MACRO and should be given as user:password
Thanks for your idea!

An update of installation steps

In new versions of zabbix-agent there is no need to modify /etc/zabbix/zabbix_agentd.conf. Default configuration already have following line
Include=/etc/zabbix/zabbix_agentd.d/*.conf
So if you add line Include=/etc/zabbix/zabbix_agentd.d/nextcloud.conf - the service zabbix-agent wouldn't start due to error: cannot add user parameter [...] key "nextcloud" already exists

Security proposal

It'd be better to set username and password in /etc/zabbix/zabbix_agentd.conf.d/nextcloud.conf Because if you set them as an argument for macro and create a trigger, this credentials will be diclosed in every notification.

Описание подробней

ВЫ можете сделать описание более подробным я 3 дня пытаюсь настроить мониторинг

Active users element?

Hi, I'm using this nextcloud-zabbix template, it's fine. And I was wondering if I could see something like number of currently active users, and found that the information is returned by nextcloud.serverinfo:

  <activeUsers>
   <last5minutes>6</last5minutes>
   <last1hour>8</last1hour>
   <last24hours>9</last24hours>
  </activeUsers>

But I could not find any item in the template on the zabbix server related to this data...

So, I'm trying to implement it, I mean create a new item, cloned from "Nextcloud Storage Users" but I'm afraid I'm missing some clues...

Via the zabbix configuration of NC items I did:

  1. clone the "Nextcloud Storage Users" item to a newly named "Nextcloud Active Users last 5 minutes" ;
  2. replaced the key with "nextcloud.activeusers.last5minutes" ;
  3. in the preprocessing tab, replaced the parameters for XLM XPath to number(/ocs/data/nextcloud/activeUsers/last5minutes) ;
  4. activated this item for the monitored agent.

I can see the newly created item in the widget, but no value for it...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.