Hello , I have oid dict shown below i would like to include in same service check, i would like to iterate over each interface list and check for each interface all oid's dict created
My question is it possible to nest "for loops" ?, if yes can someone post an example please Thanks *Snmp OID Dict* > > 1. vars.oids["ifInBroadcastPkts"] = "1.3.6.1.2.1.31.1.1.1.3" > 2. vars.oids["ifOutBroadcastPkts"] = "1.3.6.1.2.1.31.1.1.1.5" > > *Service INTERFACE CHECK* > apply Service "if-" for (interface_name in host.vars.monitorInterfaces) { > import "generic-service" > name = "eth-" + interface_name > check_command = "snmp" > enable_notifications = true > enable_perfdata = true > vars.snmp_community = "$host.vars.snmp_community$" > vars.iface_name = interface_name > assign where host.vars.vendor_type == "procurve" > } > -- Tal Bar-or
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users