Am 30.04.2015 um 14:49 schrieb John Nguyen:
Hi
So what I've found was that there are many ways to organize your objects.
There's some hints on the documentation.
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2-first-steps#configuration-best-practice
Feel free to help enhance the documentation by sending patches.
https://wiki.icinga.org/display/community/Update+the+Icinga+2+documentation
That is both very powerful and a little frustrating. For my network I have both pingable and
non-pingable hosts. So I created a "non-standard" template with check command =
"dummy".
But that's my environment. I suggest you try different configurations.
v/r
John
On Apr 30, 2015, at 7:24 AM, Daniel Bossert <[email protected]> wrote:
Hi John
Am 30.04.15 um 12:37 schrieb John Nguyen:
I'm pretty new too, but what I've found is the "generic-host" template uses a host alive
check that includes the ping. If you don't want to use the ping check you need to use something
other than "generic-host"
Can I omit this line or do I always have to specify a check_command?
Which ones are other import-templates?
Kind regards
Daniel
Yours John
I added such a file:
object Host "host1" {
import "generic-host"
display_name = "Host 1"
address = "a.b.c.d"
check_command = "dummy"
}
object Host "host2" {
import "generic-host"
display_name = "Host 2"
address = "d.c.b.a"
check_command = "dummy"
}
apply Service "httpverw" {
import "generic-service"
check_command = "http"
assign where host.name == "Host 1"
}
--
PGP Key: 0x3C54FCDF
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users
--
Michael Friedrich, DI (FH)
Application Developer
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]
** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users