From a67b748e2428950343488085c4a60021d83a43d5 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Mon, 11 Feb 2013 01:36:16 -0200 Subject: zabbix2 - split xml into xml and inc file. Use same inc dir and file for zabbix agent and client as both scripts are very similar --- config/zabbix2-proxy/zabbix2-proxy.xml | 273 --------------------------------- 1 file changed, 273 deletions(-) delete mode 100644 config/zabbix2-proxy/zabbix2-proxy.xml (limited to 'config/zabbix2-proxy/zabbix2-proxy.xml') diff --git a/config/zabbix2-proxy/zabbix2-proxy.xml b/config/zabbix2-proxy/zabbix2-proxy.xml deleted file mode 100644 index f4d05173..00000000 --- a/config/zabbix2-proxy/zabbix2-proxy.xml +++ /dev/null @@ -1,273 +0,0 @@ - - - zabbixproxy - Services: Zabbix-2 Proxy - Monitoring - 0.5 - Zabbix Proxy has been created/modified. - Zabbix Proxy has been deleted. - /usr/local/etc/rc.d/zabbix2_proxy.sh restart - - Zabbix-2 Proxy - Setup Zabbix Proxy specific settings -
Services
- /pkg_edit.php?xml=zabbix2-proxy.xml&id=0 -
- - zabbix-proxy - zabbix2_proxy.sh - zabbix_proxy - Zabbix proxy is a process which collects performance and availability data from one or more monitored devices and sends the information to a Zabbix server - - - - Settings - /pkg_edit.php?xml=zabbix2-proxy.xml&id=0 - - - - - - Server - server - List of comma delimited IP addresses (or hostnames) of ZABBIX servers - 127.0.0.1 - input - 100 - true - - - Server Port - serverport - Port of Zabbix trapper on Zabbix server. default value 10051 - 10051 - 10051 - input - 6 - true - - - Hostname - hostname - Unique, case-sensitive proxy name. Make sure the proxy name is known to the server - localhost - input - 100 - true - - - Active Mode - activemode - Check to run Zabbix proxy in active mode (default) - on - checkbox - true - - - Config Frequency - configfrequency - How often the proxy retrieves configuration data from the Zabbix server in seconds. Ignored if the proxy runs in passive mode. - 3600 - input - 10 - true - - - - "zabbix2_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"); - chmod("/var/log/zabbix2", 0755); - chmod("/var/run/zabbix2", 0755); - conf_mount_ro(); - - ]]> - - - - -
-- cgit v1.2.3