In the service description, you can specify ‘host = *’ to wildcard everything… For example, in my ‘ping’ service, I say, check * or everything. But what if I want to check everything EXCEPT 1 host? Is it possible to say ‘host = * !unpingable-host’ or something like that?
Thanks!
Loose
August 13, 2008, 8:34am
2
sorry; I don’t think you can do it (I’m basing this statement on the nagios docs; I haven’t found a way to do that :))
maybe someone will come up with the solution ^^
host_name *,!some_host_name
I have:
define service{
use generic-service
host_name *,!exchange
service_description test
check_command check_services
}
And it works as expected
indeed, thanks As there is a group of things that I don’t want to ping, I’ve done such:
define service{
use generic-service
service_description ping
process_perf_data 1
normal_check_interval 2
notification_period 24x7
notification_options u,c,r
check_command check_icmp!250.0,20%!500.0,60%
hostgroup_name *, !public-mailservers
}
now if we could get that posted in the documentation… … …
thanks for all your help! i didn’t expect such a quick & effective reply.