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-agent/zabbix2-agent.xml | 336 --------------------------------- 1 file changed, 336 deletions(-) delete mode 100644 config/zabbix2-agent/zabbix2-agent.xml (limited to 'config/zabbix2-agent/zabbix2-agent.xml') diff --git a/config/zabbix2-agent/zabbix2-agent.xml b/config/zabbix2-agent/zabbix2-agent.xml deleted file mode 100644 index cadc9ed8..00000000 --- a/config/zabbix2-agent/zabbix2-agent.xml +++ /dev/null @@ -1,336 +0,0 @@ - - - zabbixagent - Services: Zabbix-2 Agent - Monitoring - 0.6 - Zabbix Agent has been created/modified. - Zabbix Agent has been deleted. - /usr/local/etc/rc.d/zabbix2_agentd.sh restart - - Zabbix-2 Agent - Setup Zabbix Agent specific settings -
Services
- /pkg_edit.php?xml=zabbix2-agent.xml&id=0 -
- - zabbix_agentd - zabbix2_agentd.sh - zabbix_agentd - Zabbix Agent runs on a host being monitored. The agent provides host's performance and availability information for Zabbix Server. - - - - Settings - /pkg_edit.php?xml=zabbix2-agent.xml&id=0 - - - - - - Server - server - List of comma delimited IP addresses (or hostnames) of ZABBIX servers - 127.0.0.1 - input - 60 - true - - - Server Active - serveractive - List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks - - input - 60 - - - Hostname - hostname - Unique hostname. Required for active checks and must match hostname as configured on the Zabbix server (case sensitive). - localhost - input - 60 - true - - - Listen IP - listenip - 0.0.0.0 - input - 60 - true - Listen IP for connections from the server (generally 0.0.0.0 for all interfaces) - - - Listen Port - listenport - 10050 - input - 60 - true - Listen port for connections from the server (generally 10050) - - - Refresh Active Checks - refreshactchecks - 120 - input - 60 - The agent will refresh list of active checks once per 120 (default) seconds. - - - Timeout - timeout - 3 - input - 60 - true - Timeout (default 3). Do not spend more that Timeout seconds on getting requested value (1-255). The agent does not kill timeouted User Parameters processes! - - - Buffer Send - buffersend - 5 - input - 60 - Buffer Send (default 5). Do not keep data longer than N seconds in buffer (1-3600). - - - Buffer Size - buffersize - 100 - input - 60 - Buffer Size (default 100). Maximum number of values in a memory buffer (2-65535). The agent will send all collected data to Zabbix server or proxy if the buffer is full. - - - Start Agents - startagents - 3 - input - 60 - Start Agents (default 3). Number of pre-forked instances of zabbix_agentd that process passive checks (0-100).If set to 0, disables passive checks and the agent will not listen on any TCP port. - - - User Parameters - userparams - base64 - - textarea - 5 - 50 - false - User-defined parameter to monitor. There can be several user-defined parameters. Value has form, example: UserParameter=users,who|wc -l - - - - "zabbix2_agentd.sh", - "start" => "$start", - "stop" => "$stop" - ) - ); - - conf_mount_ro(); - ]]> - - - - - - 3600 ) { - $input_errors[]='You must enter a valid value for \'Refresh Active Checks\''; - } - } - - $Timeout=$_POST['timeout']; - if (!preg_match("/^\d+$/", $Timeout)) { - $input_errors[]='Timeout is not numeric.'; - } elseif ( $Timeout < 1 || $Timeout > 255 ) { - $input_errors[]='You must enter a valid value for \'Timeout\''; - } - - $BufferSend=$_POST['buffersend']; - if ($BufferSend != '') { - if (!preg_match("/^\d+$/", $BufferSend)) { - $input_errors[]='Buffer Send is not numeric.'; - } elseif ( $BufferSend < 1 || $BufferSend > 3600 ) { - $input_errors[]='You must enter a valid value for \'Buffer Send\''; - } - } - - $BufferSize=$_POST['buffersize']; - if ($BufferSize != '') { - if (!preg_match("/^\d+$/", $BufferSize)) { - $input_errors[]='Bufer Size is not numeric.'; - } elseif ( $BufferSize < 2 || $BufferSize > 65535 ) { - $input_errors[]='You must enter a valid value for \'Buffer Size\''; - } - } - - $StartAgents=$_POST['startagents']; - if ($StartAgents != '') { - if (!preg_match("/^\d+$/", $StartAgents)) { - $input_errors[]='Start Agents is not numeric.'; - } elseif ( $StartAgents < 0 || $StartAgents > 100 ) { - $input_errors[]='You must enter a valid value for \'Start Agents\''; - } - } - - ]]> - - - - "zabbix2_agentd.sh", - "start" => "$start", - "stop" => "$stop" - ) - ); - - conf_mount_ro(); - - ]]> - - - - -
-- cgit v1.2.3