Hi,
I want to monitor ipsec's tunnel on my PFSense.
I used a template from here : https://github.com/anapsix/zabbix-haproxy
Configuration done so I try a test from my zabbix server with : zabbix_get -s xxx.xxx.xxx.xxx -k 'ipsec.discover'
I get someting like this :
Sounds good, i was proud of me !
But when i add this template in zabbix and apply it to my PFSense, no new items were created, ipsec.discover seem KO.
I checked my zabbix logs and found this :
How could this be possible ?
Zabbix_get from my zabbix server is OK but it's KO in logs and zabbix server didn't discover tunnels?
I want to monitor ipsec's tunnel on my PFSense.
I used a template from here : https://github.com/anapsix/zabbix-haproxy
Configuration done so I try a test from my zabbix server with : zabbix_get -s xxx.xxx.xxx.xxx -k 'ipsec.discover'
I get someting like this :
{
"data":[
{ "{#TUNNEL}":"con20071","{#TARGETIP}":" xxx.xxx.xxx.xxx","{#SOURCEIP}":" xxx.xxx.xxx.xxx","{#DESCRIPTION}":"Not found" },
{ "{#TUNNEL}":"con1001","{#TARGETIP}":" xxx.xxx.xxx.xxx","{#SOURCEIP}":" xxx.xxx.xxx.xxx","{#DESCRIPTION}":"Foliateam Network" },
{ "{#TUNNEL}":"con20059","{#TARGETIP}":" xxx.xxx.xxx.xxx","{#SOURCEIP}":" xxx.xxx.xxx.xxx","{#DESCRIPTION}":"Not found" },
"data":[
{ "{#TUNNEL}":"con20071","{#TARGETIP}":" xxx.xxx.xxx.xxx","{#SOURCEIP}":" xxx.xxx.xxx.xxx","{#DESCRIPTION}":"Not found" },
{ "{#TUNNEL}":"con1001","{#TARGETIP}":" xxx.xxx.xxx.xxx","{#SOURCEIP}":" xxx.xxx.xxx.xxx","{#DESCRIPTION}":"Foliateam Network" },
{ "{#TUNNEL}":"con20059","{#TARGETIP}":" xxx.xxx.xxx.xxx","{#SOURCEIP}":" xxx.xxx.xxx.xxx","{#DESCRIPTION}":"Not found" },
But when i add this template in zabbix and apply it to my PFSense, no new items were created, ipsec.discover seem KO.
I checked my zabbix logs and found this :
{"log":" 454:20190925:173620.533 Zabbix agent item "ipsec.discover" on host "pfSense-Prod" failed: first network error, wait for 15 seconds\n","stream":"stdout","time":"2019-09-25T15:36:20.534553063Z"}
{"log":"\n","stream":"stdout","time":"2019-09-25T15:36:20.534578315Z"}
{"log":"\n","stream":"stdout","time":"2019-09-25T15:36:20.534578315Z"}
Zabbix_get from my zabbix server is OK but it's KO in logs and zabbix server didn't discover tunnels?
Comment