Created
January 5, 2015 13:40
-
-
Save lazyfrosch/51299c416656fe76209f to your computer and use it in GitHub Desktop.
Icinga 2 Command Endpoint example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template Host "generic-agent" { | |
import "generic-host" | |
object Endpoint __name { | |
host = "$host.address$" | |
} | |
object Zone __name { | |
parent = "master" | |
endpoints = [ __name ] | |
} | |
} | |
object Host "web123" { | |
import "generic-agent" | |
address = "1.2.3.4" | |
} | |
apply Service "disk" { | |
import "generic-service" | |
command = "disks" | |
vars.disk_path = "/" | |
command_endpoint = "$host.name$" | |
assign where host.os == "Linux" | |
} | |
#--------------------------------------------------- | |
include <itl> | |
object Endpoint NodeName ... | |
object Zone NodeName ... | |
parent = "master" | |
object Endpoint "icinga-master1" ... | |
object Zone "master" ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment