本文整理汇总了PHP中enable_rrd_graphing函数的典型用法代码示例。如果您正苦于以下问题:PHP enable_rrd_graphing函数的具体用法?PHP enable_rrd_graphing怎么用?PHP enable_rrd_graphing使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了enable_rrd_graphing函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: interface_configure
interface_configure($ifapply, true);
} else {
interface_bring_down($ifapply, true, $ifcfgo);
if (isset($config['dhcpd'][$ifapply]['enable']) || isset($config['dhcpdv6'][$ifapply]['enable'])) {
services_dhcpd_configure();
}
}
}
}
/* restart snmp so that it binds to correct address */
services_snmpd_configure();
/* sync filter configuration */
setup_gateways_monitor();
clear_subsystem_dirty('interfaces');
filter_configure();
enable_rrd_graphing();
if (is_subsystem_dirty('staticroutes') && system_routing_configure() == 0) {
clear_subsystem_dirty('staticroutes');
}
}
@unlink("{$g['tmp_path']}/.interfaces.apply");
header("Location: interfaces.php?if={$if}");
exit;
} else {
if ($_POST && $_POST['enable'] != "yes") {
unset($wancfg['enable']);
if (isset($wancfg['wireless'])) {
interface_sync_wireless_clones($wancfg, false);
}
write_config("Interface {$_POST['descr']}({$if}) is now disabled.");
mark_subsystem_dirty('interfaces');
开发者ID:simudream,项目名称:pfsense,代码行数:31,代码来源:interfaces.php
示例2: enable_rrd_graphing
enable_rrd_graphing();
setup_gateways_monitor();
$savemsg = "RRD data has been cleared. New RRD files have been generated.";
} elseif ($_POST) {
unset($input_errors);
$pconfig = $_POST;
/* input validation */
/* none */
if (!$input_errors) {
$config['rrd']['enable'] = $_POST['enable'] ? true : false;
$config['rrd']['category'] = $_POST['category'];
$config['rrd']['style'] = $_POST['style'];
$config['rrd']['period'] = $_POST['period'];
write_config();
$retval = 0;
$retval = enable_rrd_graphing();
$savemsg = get_std_save_message();
}
}
$rrddbpath = "/var/db/rrd/";
chdir($rrddbpath);
$databases = glob("*.rrd");
foreach ($databases as $database) {
if (stristr($database, "wireless")) {
$wireless = true;
}
if (stristr($database, "-cellular") && !empty($config['ppps'])) {
$cellular = true;
}
if (stristr($database, "-vpnusers")) {
$vpnusers = true;
开发者ID:nasaa0528,项目名称:core,代码行数:31,代码来源:status_rrd_graph_settings.php
注:本文中的enable_rrd_graphing函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论