Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This plugin monitors the services that make up the SoftEth VPN server. It requires that the SoftEther VPN server is installed as per the standard instructions for Linux based OS as this plugin makes use of the vpncmd. Details can be found at https://www.softether.org/
Current Version
1.0
Last Release Date
2019-12-11
Owner
Ryan Wilgoss
License
GPL
Compatible With
This plugin monitors the services that make up the SoftEth VPN server. It requires that the SoftEtherVPN server is installed as per the standard instructions for Linux based OS as this plugin makes use of the vpncmd. Details can be found at https://www.softether.org/
### Service Definition Example ### define service { use generic-service host_name vpn-server-example.com service_description VPN SoftEther Server check_command check_nrpe!check_softether }
### NRPE configuratiuon example on host ### command[check_softether]=/usr/lib64/nagios/plugins/check_softether
### check_softether plugin ### #!/bin/bash # ############################################ # This is a Nagios plugin that monitors the status # # of services of the SoftEth VPN Server # # # # Version 1.0 # # # # Written by R. Wilgoss 10/12/2019 # #############################################
/usr/local/vpnserver/vpncmd /TOOLS /CMD check > vpntest.txt
status_all=$( cat vpntest.txt ) status=$( grep -r "All checks passed" vpntest.txt | awk '{print $0}' )
if [ "$status" = "All checks passed. It is most likely that SoftEther VPN Server / Bridge can operate normally on this system." ]; then echo "OK - VPN Server Status Operational" awk '/Kernel System/{print;getline;print;}' vpntest.txt awk '/Memory Operation System/{print;getline;print;}' vpntest.txt awk '/Unicode string processing system/{print;getline;print;}' vpntest.txt awk '/File system/{print;getline;print;}' vpntest.txt awk '/Thread processing system/{print;getline;print;}' vpntest.txt awk '/Network system/{print;getline;print;}' vpntest.txt exit 0 else echo "CRITICAL - VPN Server Status Operational Error" awk '/Kernel System/{print;getline;print;}' vpntest.txt awk '/Memory Operation System/{print;getline;print;}' vpntest.txt awk '/Unicode string processing system/{print;getline;print;}' vpntest.txt awk '/File system/{print;getline;print;}' vpntest.txt awk '/Thread processing system/{print;getline;print;}' vpntest.txt awk '/Network system/{print;getline;print;}' vpntest.txt exit 0 fi
You must be logged in to submit a review.
To:
From: