| t | Here is the trigger for <a href="/tbwiki/Site_UP-chart">Site UP-chart</a>: | t | |
| <p> | | |
| <ul><div style="background-color:#aae0ff; padding:5px; border-style: solid solid solid solid; border-width: 1px 1px 1px 1px;"> | | |
| <b>Trigger UP-trigger:up_chart</b><BR> | | |
| <ul> | | |
| <li><b>type</b>: periodic</li> | | |
| <li><b>period</b>: hourly</li> | | |
| <li><b>start</b>: 2:15</li> | | |
| <li><b>action</b>: load Site_UP-chart:birdcloud_s1</li> | | |
| <li><b>last_triggered</b>: 2026-10-07_18:10:03</li> | | |
| <li><b>last_status</b>: OK : load executed OK</li> | | |
| <ul> | | |
| </div></ul> | | |
| | | |
| <p> | | |
| <h1><a name="Explanation">Explanation</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/UP-trigger?action=edit§ion=Explanation">edit section</a>]</font></span> | | |
| </h1> | | |
| 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 <a href="/tbwiki/Site_UP-chart">Site_UP-chart</a>. | | |
| <p> | | |
| 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. | | |
| <p> | | |
| From there a chart is made of the results. | | |
| <p> | | |
| <h1><a name="Bugs">Bugs</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/UP-trigger?action=edit§ion=Bugs">edit section</a>]</font></span> | | |
| </h1> | | |
| <ul><li>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. | | |
| <li>There is no chart | | |
| <li>The trigger was not firing to gather the data every hour | | |
| <ul><li>previously, the item name was incorrect, using just the block name 's1' | | |
| instead of birdcloud_s1. This was fixed on Sep 12. | | |
| </ul> | | |
| </ul> | | |
| <p> | | |
| Trigger help: <a href="/tbwiki/UP-trigger?action=Trigger.help">Trigger help</a> | | |
| <p> | | |
| | | |
| <div style="background-color:f0f0f0; padding:5px; border-style: solid solid solid solid; border-width: 1px 1px 1px 1px;"> | | |
| Categories: <a href="/tbwiki/Category:Features">Features</a>|<a href="/tbwiki/Category:Trigger">Trigger</a> | | |
| </div> | | |