Am 29.05.2017 um 13:01 schrieb Jayapandian Ponraj:
I do understand that the initial loading can be huge but i have seen
director get unresponsive
even after the inital load, like when defining sync properties.

I would like to have atleast the basic hostalive check across all boxes.
In order to achieve this
do we have a way to just import nodes without facts and classes.

I'd strongly suggest to create a custom defined type in Puppet, like this:

monitor/manifests/host.pp:
define monitor::host($fqdn = $title, $display_name, $ip, $vars) {
  # no body required
}


For every host, eventually based on conditions:
monitor::host { $::fqdn:
  display_name => $::hostname,
  ip => $::ipaddress,
  vars => {
    os => $::osfamily,
    # ...
  }
}

And then collect monitor::host with the puppetdb module. Quick & dirty,
but should perfectly do the job.

In a way the feature am asking for is filtering at source, which I guess
is not available for puppetdb.

For now please do so using conditionals in your Puppet manifest, like:

if ($::environment == "production") {
  monitor::host { ... }
}

That's it. Filtering at source would be a nice feature, currently it
isn't scheduled.

Can you give some examples of what works, like which fields can be used
for filters in a typical icinga::object::host object.

I would strongly suggest to opt for custom defined types as shown above.
It's easy to handle and avoids some layers of abstraction.

Cheers,
Thomas

-- 
Thomas Gelf
Principal Consultant

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]

** OSMC 2017 - November - osmc.de **
** OSBconf 2017 - September - osbconf.org **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to