Re: [icinga-users] Icinga2: using services with hosts

2014-09-29 Thread Tomasz Chmielewski
Nevermind, I've confused "apply" and "assign" (vs Object service) - I have it working now, thanks for the hint! -- Tomasz Chmielewski http://www.sslrack.com On 2014-09-29 17:15 (Mon), Tomasz Chmielewski wrote: And, if I comment out host_name, it refuses to start wi

Re: [icinga-users] Icinga2: using services with hosts

2014-09-29 Thread Tomasz Chmielewski
_name' [2014-09-29 15:11:36 +] critical/config: 1 errors, 0 warnings. So it looks it's not possible to use "apply" keyword to assign services to selected hosts? Or, how it is done? -- Tomasz Chmielewski http://www.sslrack.com On 2014-09-29 17:08 (Mon), Tomasz Chmi

Re: [icinga-users] Icinga2: using services with hosts

2014-09-29 Thread Tomasz Chmielewski
nf.d/hosts/server1.example.com/disk.conf(9): Config error: [2014-09-29 14:58:22 +] critical/config: 1 errors, 0 warnings. The error goes away if I remove the "assign" line added to service definition. What am I doing wrong? -- Tomasz Chmielewski http://www.sslrack.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

[icinga-users] Icinga2: using services with hosts

2014-09-28 Thread Tomasz Chmielewski
inga2/conf.d/hosts/server1.example.com/ - it can be quite a lot of changes, error-prone, if edited manually What are better approaches to achieve the same effect? Say, is it possible to just copy a directory with service definitions in /etc/icinga2/conf.d/hosts/server1.example.com/ for ever

Re: [icinga-users] icinga2: how do I set command parameters?

2014-09-28 Thread Tomasz Chmielewski
1 check_command check_http_cmd!-I $HOSTADDRESS$ -H www.example.com -s "2014 Example Inc" -t 10 } And with a few lines, I was able to: a) monitor several hosts at once (web1, web2, web3) b) use custom check_http parameters for any other hosts Now, I'm

[icinga-users] icinga2: how do I set command parameters?

2014-09-27 Thread Tomasz Chmielewski
t;$http_expect$" } vars.http_address = "$address$" vars.http_ssl = false vars.http_sni = false } Now, how do I modify /etc/icinga2/conf.d/hosts/localhost/http.conf so that it contains several other parameters available from /usr/lib/nagios/plugins/check_http command? For example, I would like /etc/icinga2/conf.d/hosts/localhost/http.conf check to contain -H and -s parameters. -- Tomasz Chmielewski http://www.sslrack.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users