Fixed Missing )

This commit is contained in:
Riccardo Bicelli 2020-04-23 23:05:56 +02:00
parent fcad072022
commit 730fa3f193
2 changed files with 8 additions and 6 deletions

View File

@ -5,12 +5,14 @@ This is a pfSense active template for Zabbix, based on [Keenton Zabbix Template]
Tested with pfSense 2.4 and Zabbix 4.0
## What it does
- pfSense Version/Update Available
- Gateway Monitoring (Gateway Status/RTT with discovery)
- OpenVPN Server Monitoring (Server Status/Tunnel Status with discovery)
- Network interface Discovery and Monitoring with User Assigned Names
- Gateway Dicovery and Monitoring (Gateway Status/RTT)
- OpenVPN Server Discovery and Monitoring (Server Status/Tunnel Status)
- OpenVPN Clients Discovery and Monitoring (Client Status/Tunnel Status)
- CARP Monitoring (Global CARP State)
- Basic service monitoring (Service Status with discovery)
- Basic Service Discovery and Monitoring (Service Status)
## Configuration
@ -44,7 +46,7 @@ _Please note that **AllowRoot=1** option is required in order to execute correct
Then import xml template in Zabbix and add your pfSense hosts.
If you are running a redundant CARP setup you can adjust the macro {#EXPECTED_CARP_STATUS} to a value representing what is CARP expected status on monitored box.
If you are running a redundant CARP setup you should adjust the macro {#EXPECTED_CARP_STATUS} to a value representing what is CARP expected status on monitored box.
Possible values are:

View File

@ -135,7 +135,7 @@ function pfz_openvpn_servervalue($server_id,$valuekey){
//Client Connections: is an array so it is sufficient to count elements
if ($valuekey=="conns"){
if (is_array($value)
if (is_array($value))
$value=count($value);
else
$value="0";