mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Add Enable Remote Commands to Zabbix Proxy (#2948)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
+6
@@ -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
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user