Re: [icinga-users] how to ignore a Host
I would like to ignore them as if they didn't exist, as if Icinga did not care to check their status. The reason is because my list of host objects is imported automatically and it's a very large list. There's a subset of hosts we don't want icinga to monitor, and it would be easier for me to tell Icinga not to monitor them (if possible) rather than modify the software that's generating this list of objects. I'll look into the check_period = "never" option you mentioned. Thanks. On Tue, Oct 18, 2016 at 6:00 AM, Kai Nothdurftwrote: > Hi Michael, > > so what do you mean with ignore? If it's showing OK, you can ignore the > host, don't you? If you don't use a check_command, what should be shown > in the Web-interface? Or do you want the hosts be hidden from the > Webinterface? How do you want to hide them? If from the GUI, how would > you reenable the host? Or do you want to "disable" the hosts(s) > programmatically? Would be a reload of Icinga2 a problem then? > > Though I don't really understand, what you are trying to achieve, you > may play around with parameter "check_period" and create a timeperiod > "never". > > brgds > Kai > > On 18.10.2016 at 03:17, Michael Martinez wrote: >> Hi Kai, >> >> Yes, I understand that. But a dummy check that always returns OK is >> misleading. The hosts themselves may be Up, may be Down, but for a >> particular subset of hosts we don't want to know either way. We > would >> rather ignore them. >> >> On Fri, Oct 7, 2016 at 5:04 AM, Kai Nothdurft > >> wrote: >>> Hi Michael, >>> >>> I know, you wrote, that you don't want to assign a dummy check - > but >>> why not? You could use the built-in "dummy"-check for this: >>> >>> >>> object Host "unchecked-host" { >>> import "generic-host" >>> >>> check_command = "dummy" >>> >>> vars.dummy_state = 0 >>> vars.dummy_text = "This host will never be checked and > shows >>> always OK" >>> >>> } >>> >>> hth >>> Kai>>> On 06.10.2016 at 19:18, Michael Martinez >>> wrote: Hi Hasan, thanks for your reply. I should be more clear: I am >>> actually looking to ignore the Host check itself. What you've written works >>> for service checks only. On Wed, Oct 5, 2016 at 10:26 AM, hasan akgöz > >>> wrote: > Hello Michael, > > if you hostname or ip adress whatever is static you can use > ignore >>> keyword > follow like ; > > apply Service "Service Name" { > ... > > assign where match("web*.example.org", host.name) > ignore where host.name > } > > > > 2016-10-05 19:51 GMT+03:00 Michael Martinez : >> >> we need to exclude certain hosts based on AWS >> attributes (VpcId > > > > > > > ___ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users > -- --- 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 mailing list >>> icinga-users@lists.icinga.org >>> https://lists.icinga.org/mailman/listinfo/icinga-users >> >> >> >> -- >> --- >> 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 mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Re: [icinga-users] how to ignore a Host
Hi Michael, so what do you mean with ignore? If it's showing OK, you can ignore the host, don't you? If you don't use a check_command, what should be shown in the Web-interface? Or do you want the hosts be hidden from the Webinterface? How do you want to hide them? If from the GUI, how would you reenable the host? Or do you want to "disable" the hosts(s) programmatically? Would be a reload of Icinga2 a problem then? Though I don't really understand, what you are trying to achieve, you may play around with parameter "check_period" and create a timeperiod "never". brgds Kai >>> On 18.10.2016 at 03:17, Michael Martinezwrote: > Hi Kai, > > Yes, I understand that. But a dummy check that always returns OK is > misleading. The hosts themselves may be Up, may be Down, but for a > particular subset of hosts we don't want to know either way. We would > rather ignore them. > > On Fri, Oct 7, 2016 at 5:04 AM, Kai Nothdurft > wrote: >> Hi Michael, >> >> I know, you wrote, that you don't want to assign a dummy check - but >> why not? You could use the built-in "dummy"-check for this: >> >> >> object Host "unchecked-host" { >> import "generic-host" >> >> check_command = "dummy" >> >> vars.dummy_state = 0 >> vars.dummy_text = "This host will never be checked and shows >> always OK" >> >> } >> >> hth >> Kai>>> On 06.10.2016 at 19:18, Michael Martinez >> wrote: >>> Hi Hasan, thanks for your reply. I should be more clear: I am >> actually >>> looking to ignore the Host check itself. What you've written works >> for >>> service checks only. >>> >>> On Wed, Oct 5, 2016 at 10:26 AM, hasan akgöz >> wrote: Hello Michael, if you hostname or ip adress whatever is static you can use ignore >> keyword follow like ; apply Service "Service Name" { ... assign where match("web*.example.org", host.name) ignore where host.name } 2016-10-05 19:51 GMT+03:00 Michael Martinez : > > we need to exclude certain hosts based on AWS > attributes (VpcId ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users >>> >>> >>> >>> -- >>> --- >>> 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 mailing list >> icinga-users@lists.icinga.org >> https://lists.icinga.org/mailman/listinfo/icinga-users > > > > -- > --- > 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 mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Re: [icinga-users] how to ignore a Host
Hi Kai, Yes, I understand that. But a dummy check that always returns OK is misleading. The hosts themselves may be Up, may be Down, but for a particular subset of hosts we don't want to know either way. We would rather ignore them. On Fri, Oct 7, 2016 at 5:04 AM, Kai Nothdurftwrote: > Hi Michael, > > I know, you wrote, that you don't want to assign a dummy check - but > why not? You could use the built-in "dummy"-check for this: > > > object Host "unchecked-host" { > import "generic-host" > > check_command = "dummy" > > vars.dummy_state = 0 > vars.dummy_text = "This host will never be checked and shows > always OK" > > } > > hth > Kai>>> On 06.10.2016 at 19:18, Michael Martinez > wrote: >> Hi Hasan, thanks for your reply. I should be more clear: I am > actually >> looking to ignore the Host check itself. What you've written works > for >> service checks only. >> >> On Wed, Oct 5, 2016 at 10:26 AM, hasan akgöz > wrote: >>> Hello Michael, >>> >>> if you hostname or ip adress whatever is static you can use ignore > keyword >>> follow like ; >>> >>> apply Service "Service Name" { >>> ... >>> >>> assign where match("web*.example.org", host.name) >>> ignore where host.name >>> } >>> >>> >>> >>> 2016-10-05 19:51 GMT+03:00 Michael Martinez : we need to exclude certain hosts based on AWS attributes (VpcId >>> >>> >>> >>> >>> >>> >>> ___ >>> icinga-users mailing list >>> icinga-users@lists.icinga.org >>> https://lists.icinga.org/mailman/listinfo/icinga-users >>> >> >> >> >> -- >> --- >> 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 mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Re: [icinga-users] how to ignore a Host
Hi Hasan, thanks for your reply. I should be more clear: I am actually looking to ignore the Host check itself. What you've written works for service checks only. On Wed, Oct 5, 2016 at 10:26 AM, hasan akgözwrote: > Hello Michael, > > if you hostname or ip adress whatever is static you can use ignore keyword > follow like ; > > apply Service "Service Name" { > ... > > assign where match("web*.example.org", host.name) > ignore where host.name > } > > > > 2016-10-05 19:51 GMT+03:00 Michael Martinez : >> >> we need to exclude certain hosts based on AWS >> attributes (VpcId > > > > > > > ___ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users > -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Re: [icinga-users] how to ignore a Host
Hello Michael, if you hostname or ip adress whatever is static you can use ignore keyword follow like ; apply Service "Service Name" { ... assign where match("web*.example.org", host.name) ignore where host.name } 2016-10-05 19:51 GMT+03:00 Michael Martinez: > we need to exclude certain hosts based on AWS > attributes (VpcId > ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Re: [icinga-users] how to ignore a Host
Any ideas? The reason I need this is that I have a script which generates a list of "object Host" for our EC2 instances. This happens automatically and we need to exclude certain hosts based on AWS attributes (VpcId). However, I am unable to modify the script, so I need a way to do this in Icinga2. Ideally I would like to *ignore* the host objects rather than assign a dummy check to them. Any ideas are appreciated. On Tue, Oct 4, 2016 at 11:51 AM, Michael Martinezwrote: > 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 -- --- 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] 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