本文整理匯總了PHP中Asset_host::set_threshold_a方法的典型用法代碼示例。如果您正苦於以下問題:PHP Asset_host::set_threshold_a方法的具體用法?PHP Asset_host::set_threshold_a怎麽用?PHP Asset_host::set_threshold_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Asset_host
的用法示例。
在下文中一共展示了Asset_host::set_threshold_a方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
foreach ($aux_ips as $ip) {
$ips[$ip] = array('ip' => $ip, 'mac' => NULL);
}
$host->set_ips($ips);
}
}
$host->set_descr($descr);
if ($icon != '') {
$host->set_icon($icon);
}
$host->set_fqdns($fqdns);
$host->set_external($external);
$host->set_location($latitude, $longitude, $zoom);
$host->set_asset_value($asset_value);
$host->set_threshold_c($threshold_c);
$host->set_threshold_a($threshold_a);
$host->set_devices($devices);
$host->set_sensors($sensors);
$host->save_in_db($conn);
Asset_host_scan::delete_plugin_from_db($conn, $id, 2007);
if (!empty($nagios)) {
Asset_host_scan::save_plugin_in_db($conn, $id, 2007);
}
$data['status'] = 'OK';
$data['data'] = _('Host saved successfully');
$db->close();
} else {
$data['status'] = 'error';
$data['data'] = array('no_create_asset' => _("Sorry, you don't have permissions to create assets"));
}
} catch (Exception $e) {