report:zabbix:customindicators

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
report:zabbix:customindicators [2026/02/07 16:10] – [Creating the measurements] adminreport:zabbix:customindicators [2026/02/07 17:10] (Version actuelle) – [Creating the measurements] admin
Ligne 41: Ligne 41:
 {{ :report:zabbix:custom_measurement_form_2.jpg?800 |}} {{ :report:zabbix:custom_measurement_form_2.jpg?800 |}}
  
-**Context:** (experimental). System context will send a unique value based on query.+**Context:** System context will send a unique value based on query. Other contexts will send **as many** values as context instances in the context level. This will generate discoverable keys of the form: ''moodle.custom.<contextlevel>.<instanceid>.<itemname>''. These keys match the "discorevering" model of Zabbix. 
 + 
 +e.g. : ''moodle.custom.course.<id>.sectioncount'' 
 + 
 +In case you run a custom measurement on a discoverable context level, your SQL statement SHOULD use the '':instanceid'' placeholder to focus the query to the appropriate instance. 
 + 
 +//IMPORTANT NOTE: At the moment, individual instances for a scanned context will generate one SQL query per instance, wich must result as **very costfull process** when targeting f.e. users, or many courses. In case this features finds interested people, we will drop in roadmap an optimisation taskforce to do it better.//  
  
 **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 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.
Ligne 63: Ligne 69:
    - Run the appropriate Zabbix sending task    - Run the appropriate Zabbix sending task
    - Check you can see the sending trace line in output.    - Check you can see the sending trace line in output.
 +
 +====Example of check====
 +
 +{{ :report:zabbix:failing_measure.jpg?1000 |}}
 +
 +The above measure fails because of misuse of the ''STR_REPLACE()'' macro rather than ''REPLACE()'' function. The scheduled task crashes and will not run any more measurements of the weekly emission.
 +
 +{{ :report:zabbix:correct_measure.jpg?1000 |}}
 +
 +Once fixed, the measure is sending the proper way.
  
 ---- ----
report/zabbix/customindicators.1770480603.txt.gz · Dernière modification : de admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki