i have a question maybe you can help me with
i have for example :
2 hosts (host1,host2)
1 group (group1 - host1 and host2 are in the group)
1 service (serivce1 - is in the group1)
i want to use different args on different host in the service
lets say :
alert me when cpu is over 80 in host1
alert me when cpu is over 90 in host2
BUT on the same service1
Is it possible to do it without exclude one host and create a new service with the same command ( in a real world example it is very hard to maintain ) ?
If so what can i do ?
Thanks .
Example conf files:
Code: Select all
define host{
use generic-device
host_name host1
address 127.0.0.1
display_name Servers
hostgroups group1
}
define host{
use generic-device
host_name host2
address 127.0.0.2
display_name Servers
hostgroups group1
}
define hostgroup{
hostgroup_name group1
alias group1
}
define service{
use generic-service
hostgroup_name group1
service_description serivce1
check_command check_something!80!90
}