a-schild / zabbix-ipsec

Zabbix template for monitoring Openswan and Strongswan IPSEC connections
24 stars 11 forks source link

`check_ipsec.sh` returns 0 whether the tunnel is up or down #3

Closed jmvbxx closed 7 years ago

jmvbxx commented 7 years ago

After installing on 16.04 I manually ran the check_ipsec.sh script and it returns 0 whether the tunnel is up or not.

ubuntu@ipsec:~$ cat /etc/zabbix/ipsec.conf 
{
    "data":[
        { "{#TUNNEL}":"guba-guba","{#TARGETIP}":"52.xxx.xxx44","{#SOURCEIP}":"10.0.0.92","{#RTT_TIME_WARN}":"80","{#RTT_TIME_ERR}":"150" }
        ]
}
ubuntu@ipsec:~$ sudo bash /usr/local/lib/zabbix/externalscripts/check_ipsec.sh 52.xxx.xxx.44 10.0.0.92
0
ubuntu@ipsec:~$ sudo bash /usr/local/lib/zabbix/externalscripts/check_ipsec.sh 52.xxx.xxx.44 10.0.0.92 rtt
52.xxx.xxx.44
jmvbxx commented 7 years ago

This was an issue on our end with AWS subnet security groups. Thank you!