Hello again folks,
I added some hosts through the director where I only want to check if they’re Email is blacklisted. These Hosts do not accept ICMP notifications hence why I can not make an ping-check to them. So I made a template for them where they should only do the Email-Check. Yet they also do a ping4-check and I couldn’t figure out how to turn that off.
What I tried so far was modifying the services.conf on my master:
apply Service "ping4" {
import "generic-service"
check_command = "ping4"
ignore where host.vars.ping == "no"
assign where host.address
}
Where I added the ignore line because it was recommended in this short article. I know it’s german sorry about that. Does anyone has another solution for this?
Some facts about my setup:
- the Email hosts don’t run Icinga (only need the adress basically)
- the Email-Template does not Import any other template
- the Command for the Email-Check is self-defined (does not have a ping-check though :D)
- as an extra I defined a Service-Set with only one service (the Email-Check) for these Hosts
- working on a Debian