Skip to content

Gitlab gitcore vpn

# VPN Ping Check Setup Instructions

## Copy Script

Copy `vpn-ping-check.sh` to the `/home/ec2-user/` folder on the GitLab host.

## Set Permissions

Use the command on the GitLab host to set the script permissions:

chmod +x vpn-ping-check.sh

Modify Zabbix Agent Configuration

Modify and add the following parameters to /etc/zabbix/zabbix_agentd.conf on the GitLab host:

UserParameter=vpn.ping.check,tail -n 1 /var/tmp/vpn-ping-check.txt

Restart Zabbix Agent

Restart the Zabbix agent to apply the changes:

systemctl restart zabbix-agent

Zabbix Web Interface Configuration

Add Item

  1. Navigate to Configuration --> Hosts --> Items.
  2. Add a new item with the following details:
    • Name: GitLab to gitcore connection
    • Key: vpn.ping.check
    • Host Interface: 3.74.66.168:10050

Add Trigger

  1. Navigate to Configuration --> Hosts --> Triggers.
  2. Add a new trigger with the following details:
    • Name: GitLab to gitcore VPN connection
    • Expression: {GitLab:vpn.ping.check.last()}=0

Test2