Move Jinja templates to files

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2020-11-26 08:59:14 +01:00
parent 690b0db332
commit 38c14b940c
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
4 changed files with 25 additions and 22 deletions

7
templates/host.md.j2 Normal file
View file

@ -0,0 +1,7 @@
\*\*\*\*\* Nagios \*\*\*\*\*
*Notification Type:* {{notification_type}}
*Host:* {{host_name}}
*State:* {{host_state}}
*Address:* {{host_address}}
*Info:* {{host_output}}
*Date/Time:* {{long_date_time}}

9
templates/service.md.j2 Normal file
View file

@ -0,0 +1,9 @@
\*\*\*\*\* Nagios \*\*\*\*\*
*Notification Type:* {{notification_type}}
*Service:* {{service_desc}}
*Host:* {{host_alias}}
*Address:* {{host_address}}
*State:* {{service_state}}
*Date/Time:* {{long_date_time}}
*Additional Info:*
{{service_output}}