|
| 1 | +# Upgrading Icinga DB Web |
| 2 | + |
| 3 | +Specific version upgrades are described below. Please note that version upgrades are incremental. |
| 4 | +If you are upgrading across multiple versions, make sure to follow the steps for each of them. |
| 5 | + |
| 6 | +## Upgrading to Icinga Notifications Web 0.2.0 |
| 7 | + |
| 8 | +With Icinga Notifications 0.2.0 we changed how event rule filters are configured and processed. |
| 9 | +Previously, event rules could be associated with specific objects by referencing their tags. |
| 10 | +This is no longer the case, and how event rules are associated with objects is now fully controlled |
| 11 | +by the source bound to the event rule. This means each event rule must now be bound to a specific |
| 12 | +source, which is responsible for evaluating which objects the event rule applies to. By following |
| 13 | +the upgrading steps of Icinga Notifications 0.2.0, all your event rules have automatically been |
| 14 | +migrated and are now bound to the Icinga 2 source that is already configured. If you have filters |
| 15 | +configured for event rules, they need to be migrated manually though. You need to access the database |
| 16 | +directly for this and update it accordingly. |
| 17 | + |
| 18 | +Review the currently configured event rules and their filters: |
| 19 | + |
| 20 | +```sql |
| 21 | +SELECT name, object_filter FROM rule; |
| 22 | +``` |
| 23 | + |
| 24 | +Take note of the `object_filter` values for each event rule. Store them somewhere. If you want to |
| 25 | +migrate them, you can do this only in the UI. In the case of Icinga 2, the supported filter syntax is |
| 26 | +the same as in Icinga DB Web and supports the same columns as restrictions do there. `hostgroup/…` |
| 27 | +becomes `hostgroup.name=…` and `servicegroup/…` becomes `servicegroup.name=…`. |
| 28 | + |
| 29 | +To migrate the filters in the UI, you need to update the table first: |
| 30 | + |
| 31 | +```sql |
| 32 | +UPDATE rule SET object_filter = NULL; |
| 33 | +``` |
| 34 | + |
| 35 | +Now, you can re-apply the filters in the UI. |
0 commit comments