Re: [icinga-users] (no subject)
Thanks, I failed to see that. PS: Sorry for the forgetting the subject on the message. I didn't notice until it was too late. -- Marcelus Trojahn On Tue, Oct 4, 2016 at 8:01 PM, Barry Quielwrote: > For an initial query to sync up just query the objects tree. The objects > include the state. If you wanted to have a smaller query assume that all > objects are OK/UP and do a filtered query for all non-ok states. > > > On 10/4/2016 7:47 AM, Marcelus Trojahn wrote: > > Hello, > > I've been using the stream API for /v1/events so I can update in realtime > a map of hosts. This is working as intended. However, I wonder if I can get > an initial state of the current events being displayed in Icinga, not just > the stream. The stream is useful to update the map, but I need to keep the > map opened for several minutes until it is "synchronized" with Icinga, > because it needs to wait for the hosts being re-checked so the events go to > the stream. > > Is there a API that I could just extract the current problems for hosts > and services so my map initial state would the same as opening Icinga's > "all problems" view? > > Thanks in advance. > > -- > M. Trojahn > > > ___ > icinga-users mailing > listicinga-users@lists.icinga.orghttps://lists.icinga.org/mailman/listinfo/icinga-users > > > > ___ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users > > ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
[icinga-users] how to ignore a Host
Is there a way to tell Icinga2 not to monitor a particular Host object? To completely ignore it. Does putting it into Downtime achieve this, or is there another way? Thanks for your help! -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
[icinga-users] apply notification question
Hi, I'm converting an old nagios installation, and I am trying to make things a bit more meta[1], and I'm a bit stuck... I have this: apply Notification "mail-host" to Host { import "host-notification" command = "mail-host-notification" user_groups = host.vars.notification.groups assign where host.vars.notification.groups } The problem is that not all users have email addresses, for example, some only have phone numbers to receive texts, some have some other notification services... Anyway, with this, it creates notifications for all the users, and I can't seem to find a way to limit it to "only users with emails". I tried a few things,but I can't seem to be able to do something like "ignore where !user.email"... What I am doing now is in the mail-host-notification script "[ -z "${USEREMAIL}" ] && exit". But it feels silly, and I'd rather find some other way that does not involve creating a notification that will be dropped. Any ideas would be welcome :-) 1) I even added a meta host-parent definition to the doc: https://github.com/Icinga/icinga2/commit/8e63643d8bea7ffa25fca8fe4f6a07453f16861f -- Mathieu Arnold signature.asc Description: OpenPGP digital signature ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users