From ac8a2b2ddaaedba995bc981888ef3fb902c5f96b Mon Sep 17 00:00:00 2001 From: Guillaume Hullin Date: Wed, 16 Mar 2022 10:49:57 +0100 Subject: [PATCH] Fixing trigger for new pfSense version --- template_pfsense_active.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/template_pfsense_active.xml b/template_pfsense_active.xml index 704380f..e67fbba 100644 --- a/template_pfsense_active.xml +++ b/template_pfsense_active.xml @@ -1,7 +1,7 @@ 5.0 - 2022-01-21T12:04:27Z + 2022-03-16T09:47:24Z Templates/Futur-Tech/Applications @@ -450,7 +450,9 @@ https://github.com/Futur-Tech/futur-tech-zabbix-pfsense New Version of pfSense {ITEM.LASTVALUE} Available - ({Template pfSense Active:pfsense.value[system,version].last()}<>{Template pfSense Active:pfsense.value[system,installed_version].last()})=1 + ({Template pfSense Active:pfsense.value[system,version].last()}<>{Template pfSense Active:pfsense.value[system,installed_version].last()})=1 +and {Template pfSense Active:pfsense.value[system,version].strlen()}>0 +and {Template pfSense Active:pfsense.value[system,installed_version].strlen()}>0 @@ -1724,9 +1726,11 @@ Alternatively you can also set the macro to 1 or 0. pfSense CARP is not in the state Expected. This means that a failover could be in process. - ({Template pfSense Active:pfsense.value[system,version].last()}<>{Template pfSense Active:pfsense.value[system,installed_version].last()})=1 + ({Template pfSense Active:pfsense.value[system,version].last()}<>{Template pfSense Active:pfsense.value[system,installed_version].last()})=1 +and {Template pfSense Active:pfsense.value[system,version].strlen()}>0 +and {Template pfSense Active:pfsense.value[system,installed_version].strlen()}>0 New Version of pfSense {ITEM.LASTVALUE} Available - Current: {ITEM.LASTVALUE2} + Current: {ITEM.LASTVALUE2} Available: {ITEM.LASTVALUE1} INFO Notify of new version of pfsense available