Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Monitoring
netbox-icinga-config-generator
Commits
7e850ebe
Verified
Commit
7e850ebe
authored
Feb 19, 2022
by
Adrian Schollmeyer
Browse files
template/generic-host: Correct email notification variable
parent
9ac9f260
Changes
1
Hide whitespace changes
Inline
Side-by-side
netbox_icinga_generator/templates/generic-host.j2
View file @
7e850ebe
...
...
@@ -6,7 +6,7 @@ object Host "{{ vars.name }}" {
{% if vars.address6 is defined %}address6 = "{{ vars.address6 }}"{% endif %}
// === NOTIFICATIONS AND WEBACCESS ===
vars.notification.
e
mail = []
vars.notification.mail = []
vars.notification.xmpp = []
vars.notification.sms = []
vars.notification.webaccess = []
...
...
@@ -14,7 +14,7 @@ object Host "{{ vars.name }}" {
// Contacts from NetBox inventory
// Additional contacts may be added manually in -post
{%- for contact in vars.email_notifications %}
vars.notification.
e
mail += [ "{{ contact }}" ]{% endfor %}
vars.notification.mail += [ "{{ contact }}" ]{% endfor %}
{%- for contact in vars.xmpp_notifications %}
vars.notification.xmpp += [ "{{ contact }}" ]{% endfor %}
{%- for contact in vars.webaccess %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment