Where are alert templates located in files?

Does anyone know where to find the alert templates in the server? I don’t mean the default.blade.php. I have already found that but I still can’t find the individual alert templates so that I can edit them by using bash scripts. I have search them by grep but all I get is temp-like files in ~/storage/framework/views but it was all gibberish.

Hope someone can help me in this! Good luck and have a good day.

If you mean the templates you can create and edit using the GUI, then they are located in the SQL-database.

MariaDB [librenms]> desc alert_templates;
±----------±-----------------±-----±----±--------±---------------+
| Field | Type | Null | Key | Default | Extra |
±----------±-----------------±-----±----±--------±---------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | | NULL | |
| template | longtext | NO | | NULL | |
| title | varchar(255) | YES | | NULL | |
| title_rec | varchar(255) | YES | | NULL | |
±----------±-----------------±-----±----±--------±---------------+
5 rows in set (0.001 sec)

1 Like

Thank you! This is exactly what I needed.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.