aboutsummaryrefslogtreecommitdiffstats
path: root/config/zabbix2-agent
diff options
context:
space:
mode:
authorDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-01-25 08:44:32 -0200
committerDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-01-25 08:44:32 -0200
commitda7724ae3c1a7597d20a2d77961e11f86e098303 (patch)
treef318c464a756f211fc209f15ed94805b345460be /config/zabbix2-agent
parentd482ed1605fe52a3eba666f4ac303fed5bebe8db (diff)
downloadpfsense-packages-da7724ae3c1a7597d20a2d77961e11f86e098303.tar.gz
pfsense-packages-da7724ae3c1a7597d20a2d77961e11f86e098303.tar.bz2
pfsense-packages-da7724ae3c1a7597d20a2d77961e11f86e098303.zip
Remove obsolete config options
Diffstat (limited to 'config/zabbix2-agent')
-rw-r--r--config/zabbix2-agent/zabbix2-agent.xml25
1 files changed, 2 insertions, 23 deletions
diff --git a/config/zabbix2-agent/zabbix2-agent.xml b/config/zabbix2-agent/zabbix2-agent.xml
index 6d95e81b..4394b5ef 100644
--- a/config/zabbix2-agent/zabbix2-agent.xml
+++ b/config/zabbix2-agent/zabbix2-agent.xml
@@ -3,7 +3,7 @@
<name>zabbixagent</name>
<title>Services: Zabbix-2 Agent</title>
<category>Monitoring</category>
- <version>0.3</version>
+ <version>0.4</version>
<addedit_string>Zabbix Agent has been created/modified.</addedit_string>
<delete_string>Zabbix Agent has been deleted.</delete_string>
<restart_command>/usr/local/etc/rc.d/zabbix2_agentd.sh restart</restart_command>
@@ -40,10 +40,9 @@
<fielddescr>Server Active</fielddescr>
<fieldname>serveractive</fieldname>
<description>List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks</description>
- <value>127.0.0.1</value>
+ <value></value>
<type>input</type>
<size>60</size>
- <required>true</required>
</field>
<field>
<fielddescr>Hostname</fielddescr>
@@ -91,18 +90,6 @@
<description>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!</description>
</field>
<field>
- <fielddescr>Disable active checks</fielddescr>
- <fieldname>disableactive</fieldname>
- <type>checkbox</type>
- <description>The agent will work only in passive mode listening for server. (generally net set)</description>
- </field>
- <field>
- <fielddescr>Disable passive checks</fielddescr>
- <fieldname>disablepassive</fieldname>
- <type>checkbox</type>
- <description>The agent will not listen on any TCP port. Only active checks will be processed. (generally not set)</description>
- </field>
- <field>
<fielddescr>User Parameters</fielddescr>
<fieldname>userparams</fieldname>
<encoding>base64</encoding>
@@ -216,8 +203,6 @@
$ListenPort=$config['installedpackages']['zabbixagent']['config'][0]['listenport'];
$RefreshActChecks=$config['installedpackages']['zabbixagent']['config'][0]['refreshactchecks'];
$Timeout=$config['installedpackages']['zabbixagent']['config'][0]['timeout'];
- $DisableActive=$config['installedpackages']['zabbixagent']['config'][0]['disableactive'];
- $DisablePassive=$config['installedpackages']['zabbixagent']['config'][0]['disablepassive'];
$UserParams=base64_decode($config['installedpackages']['zabbixagent']['config'][0]['userparams']);
$conf = "Server=$Server\n";
@@ -232,12 +217,6 @@
$conf .= "LogFile=/var/log/zabbix2/zabbix2_agentd.log\n";
$conf .= "LogFileSize=1\n";
$conf .= "Timeout=$Timeout\n";
- if (isset($DisableActive) && ($DisableActive == "on")) {
- $conf .= "DisableActive=1\n";
- }
- if (isset($DisablePassive) && ($DisablePassive == "on")) {
- $conf .= "DisablePassive=1\n";
- }
$conf .= "$UserParams\n";
file_put_contents(ZABBIX_AGENT_BASE . "/etc/zabbix2/zabbix_agentd.conf", $conf);