report:zabbix:customindicators

Ceci est une ancienne révision du document !


Define custom measurements (Pro edition)

Zabbix Report

Overall Presentation

This extended feature allows Moodle administrator to add customized measurements to the sending stack without need of coding a new indicator class. It can be used to provide quickly a new value to Zabbix. the customized measurements are based on SQL queries as simple selects that returns a single “meas” output field.

The process to define a customized measurement is divided in two steps.

  1. Define the custom measurement in moodle.
  2. Go to your Zabbix server and add the appropriate item to the host definition that represents your moodle.

Related: https://www.zabbix.com/documentation/current/en/manual/config/items/item

Path : Site admin ⇒ reports ⇒ Custom Zabbix Measurements

Creating the measurements

First go to the custom Zabbix Measurement screen.

Than fill the measurment definition form:

Measurement name: Visible name for the measurment. Zabbix report usually name the measurements in Zabbix as “MOODLE <TOPIC> <ITEM> [<SUBITEM>] (f.e MOODLE ASSIGN DAILY SUBMISSIONS), but you are free to give any name. It is recommended to choose the name you will also setup as Zabbix Item name in Zabbix.

Measuremnet Key: This is the name of the item key in Zabbix. We use a dotted namespace for measurments, such as f.e. moodle.assign.dailysubmissions. Custom measurements are recommended adopting the moodle.custom.<itemname> namespace, but once again, you are free to choose any token, pursuant the Zabbic Item's key matches.

Active: Custom measurements can be disabled at any time, and so wil not be actualized if disabled.

Indicator SQL Query: Write a SQL query from moodle DB data. It must be a SELECT statement that returns a single value aliased to the field name meas.

Context: (experimental). System context will send a unique value based on query.

Context allowed instances: If some context other that System Context is choosed, filling this field wil only send indicator values for the listed instance ids. Give a comma separated list of DB ids of instances represented by the choosen context level. All instances are sent if empty.

Context excluded instances: If some context other that System Context is choosed, filling this field wil exclude for sending values for the listed instance ids. Give a comma separated list of DB ids of instances represented by the choosen context level. All instances are sent if empty.

Emission Rate: Choose the emission task rate for this indicator.


Back to Zabbix Report index - Back to plugin index - Back to catalog

report/zabbix/customindicators.1770480198.txt.gz · Dernière modification : de admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki