public bool IsReportZabbixInfo(string item_name) { DataCollectionSetting setting = dataCollectionDao.getDataCollectionItemByMethodAndItemName(scApp, item_name); if (setting == null) { return(false); } return(setting.IsReport); }
public Tuple <string, int> getZabbixServerIPAndPort() { DataCollectionSetting setting = dataCollectionDao.getDataCollectionFirstItem(scApp); string ip = setting.IP; var remoteipAdr = System.Net.Dns.GetHostAddresses(setting.IP); if (remoteipAdr != null && remoteipAdr.Count() != 0) { ip = remoteipAdr[0].ToString(); } return(new Tuple <string, int>(ip, setting.Port)); }