[icinga-users] Non-trivial configuration examples (non-ICMP www host)

Warren Block wblock at wonkity.com
Mon Aug 29 15:56:50 CEST 2016


On Mon, 29 Aug 2016, Thomas Gelf wrote:

> Hi,
>
>> Is there somewhere with a large collection of non-trivial configuration
>> examples?  The docs tell what variables do but mostly do not demonstrate
>> even trivial usage.
>
> Not that I'm aware of. Well, there are usage examples, but quite
> distributed over various places. There are attempts going on to add more
> "Best practices"-like examples to the documentation, recently a lot of
> effort has been invested in doing so for the HA/Clustering documentation.
>
> However, if I didn't misunderstand what you're asking for, this should
> be pretty easy to accomplish once reading the basic introduction:
>
> http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics
>
> (plus eventually the migration hint in case you have an Icinga 1.x or
> Nagios background)
>
> With that basic knowledge it should be fairly easy to interpret the
> options provided by the "http" check command:
>
> http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/plugin-check-commands#plugin-check-command-http
>
> So, one solution to your example could be as simple as:
>
> template Host "Hosts reachable only via HTTP" {
>  check_command = "http"
> }
>
> object Host "www.example.com" {
>  import "Hosts reachable only via HTTP"
>
>  address = "172.31.31.170"
> }

This appears to be exactly what I tried, which did not work, but I will 
try again.


More information about the icinga-users mailing list