tim >> DocImages >> kernel_doc_buglist >> _bug005 >> UP-trigger 

TB Wiki

Login

UP-trigger

Here is the trigger for Site UP-chart:

    Trigger UP-trigger:up_chart
    • type: periodic
    • period: hourly
    • start: 2:15
    • action: load Site_UP-chart:birdcloud_s1
    • last_triggered: 2026-09-16_05:10:02
    • last_status: OK : load executed OK

Explanation [edit section]

A cron job on bird.org runs 'triggerd' periodically. That program checks all the pages in the wiki for trigger definitions, and runs all the expired ones. In this case, it causes a load of a particular block on a page: block 'birdcloud_s1' on page Site_UP-chart.

This is a snapshot definition block, and it, in turn loads the value of the block: birdcloud_status, and puts the resulting value into birdcloud_status_table.

From there a chart is made of the results.

Bugs [edit section]

  • The SiteStatus macro sometimes gets exceptions, and puts those into the table, instead of the value 0. It is missing a try/except clause somewhere.
  • There is no chart
  • The trigger was not firing to gather the data every hour
    • previously, the item name was incorrect, using just the block name 's1' instead of birdcloud_s1. This was fixed on Sep 12.

Trigger help: Trigger help

Categories: Features|Trigger
TBWiki engine 2.0.1 by Tim Bird