Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_softeth

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2019-12-11
Compatible With
  • Nagios 3.x
License
GPL
Hits
652
Files:
FileDescription
check_softethercheck_softether
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_softeth
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/
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