From robdb, 1 Year ago, written in MySQL.
Embed
  1. MariaDB [librenms]> select id from alert_rules;
  2. +----+
  3. | id |
  4. +----+
  5. | 19 |
  6. | 27 |
  7. | 25 |
  8. | 13 |
  9. | 15 |
  10. | 26 |
  11. | 21 |
  12. | 20 |
  13. | 31 |
  14. | 32 |
  15. | 33 |
  16. | 34 |
  17. +----+
  18. 12 rows in set (0.000 sec)
  19.  
  20. MariaDB [librenms]> select id,name from alert_templates;
  21. +----+-------------------------------+
  22. | id | name                          |
  23. +----+-------------------------------+
  24. |  4 | HL Default Template           |
  25. |  5 | Device Rebooted               |
  26. |  6 | Devices up/down               |
  27. |  7 | Interface speed low           |
  28. |  8 | AirFiber link capacity low    |
  29. |  9 | Default Alert Template        |
  30. | 10 | BGP Session                   |
  31. | 12 | WatchDog Temp/Humidity Sensor |
  32. +----+-------------------------------+
  33. 8 rows in set (0.000 sec)
  34.  
  35. MariaDB [librenms]> select * from alert_template_map;
  36. +-----+--------------------+---------------+
  37. | id  | alert_templates_id | alert_rule_id |
  38. +-----+--------------------+---------------+
  39. | 159 |                  4 |            20 |
  40. | 158 |                  4 |            21 |
  41. | 157 |                  4 |            26 |
  42. | 165 |                  5 |            25 |
  43. | 166 |                  6 |            13 |
  44. |  94 |                  7 |            15 |
  45. |  29 |                  8 |            19 |
  46. | 164 |                  9 |             0 |
  47. |  92 |                 10 |            27 |
  48. | 149 |                 12 |            31 |
  49. | 150 |                 12 |            32 |
  50. | 151 |                 12 |            33 |
  51. | 152 |                 12 |            34 |
  52. +-----+--------------------+---------------+
  53. 13 rows in set (0.000 sec)
  54.