mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/zabbix4-proxy: add ProxyOfflineBuffer (#1603)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
PLUGIN_NAME= zabbix4-proxy
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_COMMENT= Zabbix Proxy enables decentralized monitoring
|
||||
PLUGIN_DEPENDS= zabbix4-proxy
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -8,3 +8,11 @@ excellent reporting and data visualisation features based on the stored
|
||||
data. This makes Zabbix ideal for capacity planning.
|
||||
|
||||
WWW: http://www.zabbix.com/
|
||||
|
||||
Plugin Changelog
|
||||
----------------
|
||||
|
||||
1.1
|
||||
|
||||
* Add ProxyOfflineBuffer parameter
|
||||
* Switch to new service control UI
|
||||
|
||||
+6
@@ -107,6 +107,12 @@
|
||||
<type>text</type>
|
||||
<help>Size of history index cache in bytes. Shared memory size for indexing history cache. Range: 128K-2G</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.proxyofflinebuffer</id>
|
||||
<label>Proxy Offline Buffer</label>
|
||||
<type>text</type>
|
||||
<help>Set the time in hours how long the values will be buffered when the server is unreachable.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.timeout</id>
|
||||
<label>Timeout</label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/zabbixproxy/general</mount>
|
||||
<description>Zabbix Proxy configuration</description>
|
||||
<version>2.0.0</version>
|
||||
<version>2.0.1</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -75,6 +75,12 @@
|
||||
<default>4M</default>
|
||||
<Required>N</Required>
|
||||
</historyindexcachesize>
|
||||
<proxyofflinebuffer type="IntegerField">
|
||||
<Required>N</Required>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>720</MaximumValue>
|
||||
<ValidationMessage>Set a number between 1 and 720.</ValidationMessage>
|
||||
</proxyofflinebuffer>
|
||||
<timeout type="IntegerField">
|
||||
<default>4</default>
|
||||
<Required>N</Required>
|
||||
|
||||
+9
-10
@@ -41,20 +41,19 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
formatTokenizersUI();
|
||||
$('.selectpicker').selectpicker('refresh');
|
||||
});
|
||||
ajaxCall(url="/api/zabbixproxy/service/status", sendData={}, callback=function(data,status) {
|
||||
updateServiceStatusUI(data['status']);
|
||||
});
|
||||
|
||||
updateServiceControlUI('zabbixproxy');
|
||||
|
||||
// link save button to API set action
|
||||
$("#saveAct").click(function(){
|
||||
saveFormToEndpoint(url="/api/zabbixproxy/general/set", formid='frm_general_settings',callback_ok=function(){
|
||||
$("#saveAct_progress").addClass("fa fa-spinner fa-pulse");
|
||||
ajaxCall(url="/api/zabbixproxy/service/reconfigure", sendData={}, callback=function(data,status) {
|
||||
ajaxCall(url="/api/zabbixproxy/service/status", sendData={}, callback=function(data,status) {
|
||||
updateServiceStatusUI(data['status']);
|
||||
});
|
||||
$("#saveAct_progress").removeClass("fa fa-spinner fa-pulse");
|
||||
});
|
||||
$("#saveAct_progress").addClass("fa fa-spinner fa-pulse");
|
||||
ajaxCall(url="/api/zabbixproxy/service/reconfigure", sendData={}, callback=function(data,status) {
|
||||
ajaxCall(url="/api/zabbixproxy/service/status", sendData={}, callback=function(data,status) {
|
||||
updateServiceControlUI('zabbixproxy');
|
||||
});
|
||||
$("#saveAct_progress").removeClass("fa fa-spinner fa-pulse");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
+3
@@ -23,6 +23,9 @@ SourceIP={{ OPNsense.zabbixproxy.general.sourceip }}
|
||||
LogFile=/var/log/zabbix_proxy.log
|
||||
PidFile=/var/run/zabbix/zabbix_proxy.pid
|
||||
DBName=/var/db/zabbix/zabbix_proxy.db
|
||||
{% if helpers.exists('OPNsense.zabbixproxy.general.proxyofflinebuffer') and OPNsense.zabbixproxy.general.proxyofflinebuffer != '' %}
|
||||
ProxyOfflineBuffer={{ OPNsense.zabbixproxy.general.proxyofflinebuffer }}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.zabbixproxy.general.startpollers') and OPNsense.zabbixproxy.general.startpollers != '' %}
|
||||
StartPollers={{ OPNsense.zabbixproxy.general.startpollers }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user