zabbixproxy
Services: Zabbix Proxy
Monitoring
1.0
Zabbix Proxy has been created/modified.
Zabbix Proxy has been deleted.
/usr/local/etc/rc.d/zabbix_proxy.sh restart
zabbix-proxy
zabbix-proxy.sh
zabbix_proxy
Settings
/pkg_edit.php?xml=zabbix-proxy.xml&id=0
Server
server
List of comma delimited IP addresses (or hostnames) of ZABBIX servers
127.0.0.1
input
60
true
Server Port
serverport
Server port (generally 10051)
10051
input
60
true
Hostname
hostname
Unique, case-sensitive proxy name. Make sure the proxy name is known to the server
localhost
input
60
true
"zabbix_proxy.sh",
"start" => "{$start}",
"restart" => "$stop\n" . "sleep 5\n" . "{$start}",
"stop" => "$stop"
)
);
conf_mount_ro();
]]>
'2097152',
'kern.ipc.shmmax' => '2147483648',
'kern.ipc.semmsl' => '250'
);
$sysctls = array();
if (file_exists("/etc/sysctl.conf")) {
$sc = file_get_contents("/etc/sysctl.conf");
$sc = explode("\n", $sc);
foreach ($sc as $num => $line) {
list($sysctl, $val) = explode("=", $line, 2);
if (array_key_exists($sysctl, $want_sysctls) || empty($sysctl))
unset($sc[$num]);
}
}
foreach ($want_sysctls as $ws => $wv) {
$sc[] = "{$ws}={$wv}";
exec("/sbin/sysctl {$ws}={$wv}");
}
file_put_contents("/etc/sysctl.conf", implode("\n", $sc) . "\n");
$want_tunables = array(
'kern.ipc.semopm' => '100',
'kern.ipc.semmni' => '128',
'kern.ipc.semmns' => '32000',
'kern.ipc.shmmni' => '4096'
);
$tunables = array();
if (file_exists("/boot/loader.conf")) {
$lt = file_get_contents("/boot/loader.conf");
$lt = explode("\n", $lt);
foreach ($lt as $num => $line) {
list($tunable, $val) = explode("=", $line, 2);
if (array_key_exists($tunable, $want_tunables) || empty($tunable))
unset($lt[$num]);
}
}
foreach ($want_tunables as $wt => $wv) {
$lt[] = "{$wt}={$wv}";
}
file_put_contents("/boot/loader.conf", implode("\n", $lt) . "\n");
conf_mount_ro();
]]>