Add Enable Remote Commands to Zabbix Proxy (#2948)

This commit is contained in:
clanto007
2022-04-27 20:43:13 +02:00
committed by GitHub
parent cf917d94fd
commit fd4fc038e1
5 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= zabbix-proxy
PLUGIN_VERSION= 1.7
PLUGIN_VERSION= 1.8
PLUGIN_COMMENT= Zabbix monitoring proxy
PLUGIN_MAINTAINER= m.muenz@gmail.com
PLUGIN_VARIANTS= zabbix5 zabbix54 zabbix4
+4
View File
@@ -12,6 +12,10 @@ WWW: https://www.zabbix.com/
Plugin Changelog
----------------
1.8
* Add EnableRemoteCommands (#2948)
1.7
* Add StatsIP field to allow retrieving statistics (#2697)
@@ -11,6 +11,12 @@
<type>checkbox</type>
<help>Active (default) or passive mode, only switch to passive if you know what you are doing.</help>
</field>
<field>
<id>general.remotecommands</id>
<label>Enable Remote Commands</label>
<type>checkbox</type>
<help>Enable Remote Commands on Proxy.</help>
</field>
<field>
<id>general.server</id>
<label>Server</label>
@@ -11,6 +11,10 @@
<default>0</default>
<Required>Y</Required>
</proxymode>
<remotecommands type="BooleanField">
<default>0</default>
<Required>Y</Required>
</remotecommands>
<server type="TextField">
<default></default>
<Required>N</Required>
@@ -5,6 +5,11 @@ ProxyMode=1
{% else %}
ProxyMode=0
{% endif %}
{% if helpers.exists('OPNsense.zabbixproxy.general.remotecommands') and OPNsense.zabbixproxy.general.remotecommands == '1' %}
EnableRemoteCommands=1
{% else %}
EnableRemoteCommands=0
{% endif %}
{% if helpers.exists('OPNsense.zabbixproxy.general.server') and OPNsense.zabbixproxy.general.server != '' %}
Server={{ OPNsense.zabbixproxy.general.server }}
{% endif %}