Fixed OpenVPN ping-restart status

This commit is contained in:
Riccardo Bicelli 2020-01-07 09:13:15 +01:00
parent a04f416207
commit 3447356cc8

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<zabbix_export> <zabbix_export>
<version>4.0</version> <version>4.0</version>
<date>2019-12-14T08:17:57Z</date> <date>2020-01-07T08:11:29Z</date>
<groups> <groups>
<group> <group>
<name>Templates</name> <name>Templates</name>
@ -3627,7 +3627,7 @@
<drawtype>0</drawtype> <drawtype>0</drawtype>
<color>199C0D</color> <color>199C0D</color>
<yaxisside>0</yaxisside> <yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc> <calc_fnc>7</calc_fnc>
<type>0</type> <type>0</type>
<item> <item>
<host>Template pfSense Active</host> <host>Template pfSense Active</host>
@ -3639,7 +3639,7 @@
<drawtype>0</drawtype> <drawtype>0</drawtype>
<color>FF5722</color> <color>FF5722</color>
<yaxisside>0</yaxisside> <yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc> <calc_fnc>7</calc_fnc>
<type>0</type> <type>0</type>
<item> <item>
<host>Template pfSense Active</host> <host>Template pfSense Active</host>
@ -3648,6 +3648,38 @@
</graph_item> </graph_item>
</graph_items> </graph_items>
</graph_prototype> </graph_prototype>
<graph_prototype>
<name>Gateway {#GATEWAY} Status</name>
<width>640</width>
<height>480</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>5.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>1</ymin_type_1>
<ymax_type_1>1</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>199C0D</color>
<yaxisside>0</yaxisside>
<calc_fnc>7</calc_fnc>
<type>0</type>
<item>
<host>Template pfSense Active</host>
<key>pfsense.value[gw_value,{#GATEWAY},status]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes> </graph_prototypes>
<host_prototypes/> <host_prototypes/>
<jmx_endpoint/> <jmx_endpoint/>
@ -3744,11 +3776,11 @@
<step> <step>
<type>5</type> <type>5</type>
<params>(.*) <params>(.*)
\1:up=1:down=0:none=0</params> \1:up=1:down=0:none=0:reconnecting; ping-restart=2</params>
</step> </step>
<step> <step>
<type>5</type> <type>5</type>
<params>(up|down|none)(?=.*:\1=(\d)) <params>(up|down|none|reconnecting; ping-restart)(?=.*:\1=(\d))
\2</params> \2</params>
</step> </step>
</preprocessing> </preprocessing>
@ -5859,6 +5891,14 @@ or&#13;
<value>1</value> <value>1</value>
<newvalue>Up</newvalue> <newvalue>Up</newvalue>
</mapping> </mapping>
<mapping>
<value>2</value>
<newvalue>None</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>Reconnecting</newvalue>
</mapping>
</mappings> </mappings>
</value_map> </value_map>
<value_map> <value_map>