Re: [icinga-users] Using check_multi with Icinga2

2016-07-14 Thread Michael Friedrich
> On 14 Jul 2016, at 00:17, Michael Martinez wrote: > > Hi, thanks for replying. > > Actually, I made a mistake typing this. I really mean "check_cluster", > and I was able to figure it out. It basically takes an argument like > this, which is passed back to the command: > > vars.cluster_data = {

Re: [icinga-users] Icinga - service dependency does not work properly

2016-07-14 Thread Szabó Gergő
Hi Michael! Sorry, but I can't publish these config files due to company's privacy. :( There are no any special configuration, Till I didn't expand configuration with service dependency, we got a lot of notifications from monitored devices, but now the problem is that we don't get if is necessary.

Re: [icinga-users] Icinga - service dependency does not work properly

2016-07-14 Thread Brian O'Neill
You say the host went down...do you have a host check as well? If the host check fails, a service check won't notify, at least in the default configuration I believe. You should get a host down notification (if configured) and that's it. On 7/14/2016 8:27 AM, Szabó Gergő wrote: Hi Michael!

Re: [icinga-users] Icinga - service dependency does not work properly

2016-07-14 Thread Szabó Gergő
Yes, of course, I configured host check for each device too. By the way, since I have configured dependencies, don't come any host alert notification (up or down), but host dependencies doesn't include parts, that can cause this behaviour. For example, there is myHost, and two related dependencies

Re: [icinga-users] Icinga - service dependency does not work properly

2016-07-14 Thread Brian O'Neill
I'm not talking about the host dependency, but the host check itself. Did you receive a host down notification? Are you configured to receive one if the host is down? Did the logs show that the host is down? Did the pingv4 check reach a HARD state? How it is working on my systems is that if

Re: [icinga-users] Icinga - service dependency does not work properly

2016-07-14 Thread Szabó Gergő
Hi Brian! 2016-07-14 15:14 GMT+02:00 Brian O'Neill : > I'm not talking about the host dependency, but the host check itself. > I know. :) > Did you receive a host down notification? Are you configured to receive > one if the host is down? > Yes, previously I have no problem with it. > Did t

[icinga-users] Exclude notifying contacts for specific hostgroups

2016-07-14 Thread Matt Shields
Is there a way to send notifications to all contacts in two groups, but for some host groups exclude one of the groups? I have around 1000 hosts divided up into a number of hostgroups (db, app, web, etc), I also have two hostgroups for if they are development or production. For the production ser

Re: [icinga-users] Icinga - service dependency does not work properly

2016-07-14 Thread Szabó Gergő
So, it seems that I found the answer. :) As you have written: "if the host is down the service checks are suppressed". This would be the correct working situation, if is everything OK with the configuration. But, there is an excellent topic about this case: http://sites.box293.com/nagios/guides/c

Re: [icinga-users] Exclude notifying contacts for specific hostgroups

2016-07-14 Thread Antony Stone
On Thursday 14 July 2016 at 17:07:38, Matt Shields wrote: > Is there a way to send notifications to all contacts in two groups, but for > some host groups exclude one of the groups? I do not believe this is possible. I think you need to think about inclusion rather than exclusion. > I have arou

Re: [icinga-users] Using check_multi with Icinga2

2016-07-14 Thread Michael Martinez
On Thu, Jul 14, 2016 at 12:48 AM, Michael Friedrich wrote: > var hg_name = “myhostgroup" > var data = [] > for (h in get_objects(Host)) { > if (hg_name in h.groups) { > data.add(h.name) > } > } Ok, thanks for the tip. Now another question: let's say I have an array or dictionary that con