From 08a8cecf94aad13f8e37c6140dc78bc1932dfd1a Mon Sep 17 00:00:00 2001 From: Remco Verhoef Date: Sun, 4 Nov 2007 00:22:14 +0000 Subject: Added Zabbix Agent Package. --- packages/zabbix-agent.xml | 170 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 packages/zabbix-agent.xml (limited to 'packages') diff --git a/packages/zabbix-agent.xml b/packages/zabbix-agent.xml new file mode 100644 index 00000000..6585314f --- /dev/null +++ b/packages/zabbix-agent.xml @@ -0,0 +1,170 @@ + + + zabbixagent + Services: Zabbix Agent + Monitoring + 1.0 + Zabbix Agent has been created/modified. + Zabbix Agent has been deleted. + /usr/local/etc/rc.d/zabbix_agentd.sh restart + + Zabbix Agent + Setup Zabbix Agent specific settings +
Services
+ /pkg_edit.php?xml=zabbix-agent.xml&id=0 +
+ + zabbix-agent + zabbix-agentd.sh + zabbix-agentd + + + + Settings + /pkg_edit.php?xml=zabbix-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 Port + serverport + Server port for sending active check + 10051 + input + 60 + true + + + Hostname + hostname + Unique hostname. Required for active checks. + localhost + input + 60 + true + + + Listen Port + listenport + 10050 + input + 60 + true + + + + "zabbix_agentd.sh", + "start" => "{$start}", + "restart" => "/usr/bin/killall zabbix_agentd; {$start};", + "stop" => "/usr/bin/killall zabbix_agentd;" + ) + ); + + $conf = "Server=127.0.0.1\n"; + $conf .= "StartAgents=5\n"; + $conf .= "DebugLevel=3\n"; + $conf .= "PidFile=/var/run/zabbix/zabbix_agentd.pid\n"; + $conf .= "LogFile=/var/log/zabbix/zabbix_agentd.log\n"; + $conf .= "LogFileSize=1\n"; + $conf .= "Timeout=3\n"; + + file_put_contents("/usr/local/etc/zabbix/zabbix_agentd.conf", $conf); + + conf_mount_ro(); + + start_service("zabbix_agentd"); + ]]> + + + + + + + + + + + + + + + +
-- cgit v1.2.3