Hi, I am integrating SNMP traps to icinga2 using snmptrapd and snmptt. It's working perfectly fine for one host.
Icinga2 configuration files look as below: ======commands.conf file content======== object Service "cmc_traps" { import "generic-service" host_name = "10.206.41.16" check_command = "dummy" check_command ="passive" enable_notifications = 1 enable_active_checks = 1 enable_passive_checks = 1 enable_flapping = 0 volatile = 1 max_check_attempts = 1 check_interval = 87000 enable_perfdata = 0 vars.sla = "24x7" vars.dummy_state = 2 vars.dummy_text = "No passive check result received." } ================================ =======hosts.conf file content======= object Host "10.206.41.16"{ import "generic-host" address="10.206.41.16" vars.os="Linux" vars.notification["mail"]={groups =[ "icingaadmins" ]} } =============================== But I want to apply the same service to multiple hosts. Icinga2 configuration checks throwing error if "host_name =" entry is commented. Please can anyone suggest here. Thanks & Regards Shantala
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users