https://github.com/sergiotocalini/zipsec
Zabbix Agent - IPSec
https://github.com/sergiotocalini/zipsec
ipsec ipsec-tools ipsec-vpn zabbix zabbix-agent zabbix-templates
Last synced: 15 days ago
JSON representation
Zabbix Agent - IPSec
- Host: GitHub
- URL: https://github.com/sergiotocalini/zipsec
- Owner: sergiotocalini
- License: gpl-3.0
- Created: 2018-12-05T14:22:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T08:27:56.000Z (over 6 years ago)
- Last Synced: 2025-02-17T23:11:31.991Z (3 months ago)
- Topics: ipsec, ipsec-tools, ipsec-vpn, zabbix, zabbix-agent, zabbix-templates
- Language: Shell
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zipsec
Zabbix Agent - IPSec# Dependencies
## Packages
* ksh
* jq
* nc (optional with extra monitoring config)__**Debian/Ubuntu**__
```
#~ sudo apt install ksh jq nc
#~
```
__**Red Hat**__
```
#~ sudo yum install ksh jq nc
#~
```
# Deploy
Default variables:NAME|VALUE
----|-----
IPSEC_CONF|/etc/ipsec.conf
CACHE_DIR|
CACHE_TTL|*Note: this variables has to be saved in the config file (zipsec.conf) in the same directory than the script.*
## Zabbix
```
#~ git clone https://github.com/sergiotocalini/zipsec.git
#~ sudo ./zipsec/deploy_zabbix.sh "" "" ""
#~ sudo systemctl restart zabbix-agent
```
*Note: the installation has to be executed on the zabbix agent host and you have to import the template on the zabbix web. The default installation directory is /etc/zabbix/scripts/agentd/zipsec*# Configuration
We can specified some extra commands to detect if the connection is alive.
For example:
```
~# cat /etc/zabbix/scripts/agentd/zipsec/zipsec.conf.d/example.json.save
{
"name": "example",
"monitoring": {
"commands": [
"nc -zv -w 1 -s 192.168.0.1 10.0.20.100 80 443",
"nc -zv -w 1 -s 192.168.0.2 10.0.30.100 80 443"
]
}
}
~#
```