Update README.md

This commit is contained in:
spleenftw authored and GitHub committed 2024-02-23 00:38:03 +01:00
1 parent 0c25c8f6b7
commit ed362c4643
1 file changed
+5 -5
+5 -5
View File
@@ -94,7 +94,7 @@ You can download the pre-compiled binaries from the
[releases page](https://github.com/kumina/openvpn_exporter/releases).
## LAST UPDATE
Added a new metric called "service_openvpn" which is quite simple : if the openvpn service is up/active, equals 1. If not, equals 0.
Added a new metric called "service_openvpn" which is quite simple : if the openvpn service is up/active, equals 1. If not, equals 0 which can be usefull if you want to monitore more than one openvpn server.
Added a script that restart automatically if he sees a change on the openvpn service with the help of "systemctl is-active --quiet" that returns an exit code if it's active.
@@ -111,7 +111,7 @@ service_openvpn 1
- Create a systemd service :
```
vim /etc/systemd/system/check_pivpn.service
vim /etc/systemd/system/check_openvpn.service
```
```
[Unit]
@@ -119,7 +119,7 @@ Description=OpenVPN Status Checker
[Service]
Type=simple
ExecStart=/path/to/check_pivpn.sh
ExecStart=/path/to/check_openvpn.sh
[Install]
WantedBy=multi-user.target
@@ -130,6 +130,6 @@ sudo systemctl daemon-reload
```
- Then simply enable it and start it :
```
sudo systemctl enable check_pivpn.service
sudo systemctl start check_pivpn.service
sudo systemctl enable check_openvpn.service
sudo systemctl start check_openvpn.service
```