Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
GitLab

Michael Friedrich dnsmichi

🦊
GitLab
View GitHub Profile
@dnsmichi
dnsmichi / icinga2-apply-for-in-dictionary
Last active Jun 25, 2019
Using icinga2 2.2 features with apply for in dictionary and attribute assignment
View icinga2-apply-for-in-dictionary
# cat 7560.conf
object Host "7560-server" {
import "test-generic-host"
address = "127.0.0.1"
check_command = "hostalive"
vars.interfaces["eth0"] = {
//vars.interfaces.eth0 = {
"2dcoord" = "3,5"
port = 1