Home Directory Plugins Remote Access check_softeth by Ryan Wilgoss

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

Directory Tree

check_softeth by Ryan Wilgoss

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2019-12-11
Compatible With
  • Nagios 3.x
License
GPL
Hits
4841
Files:
FileDescription
check_softethercheck_softether
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_softeth by Ryan Wilgoss
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