Alert Templates

Hi,

When trying to convert a HTML Alert Template from a legacy template I removed all the existing attached rules to that template and saved it to work on later. Now when trying to attach rules to the Default Alert Template or any other template I can’t as it says that the rule is used in template “undefined”.

validate:

Component Version
LibreNMS 1.48.1-62-gfcb0b67
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
MySQL 10.0.38-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

I can’t see anyway to attach a template to the rules now as it won’t let me.

Many thanks,

David

1 Like

Having the same problem here with 1.49, are you solving your problem yet?

Im not sure how you both ended with that but I think the only way to fix is to manually edit the database table to remove all template maps

Dont remove templates or rules, just the mapping!!

I managed to fix it by editing the alert_template_map table in phpmyadmin.

Thanks,

David