| Server IP : 170.10.162.208 / Your IP : 216.73.216.181 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) 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 : |
#!/bin/bash
LICENSE_FILE="/usr/local/lsws/conf/license.key"
LICENSE_CHECK=$(sudo du $LICENSE_FILE | awk '{print $1}')
LSWS_STATUS=$(systemctl is-active lsws)
if [[ "$LICENSE_CHECK" = "0" ]]
then
echo "CRITICAL: License has not been validated online. Validate with /usr/local/lsws/bin/lshttpd -V"
exit 2
elif [[ "$LSWS_STATUS" != "active" ]]
then
echo "CRITICAL: Litespeed Web Server not running. Investigate further."
exit 2
else
echo "OK: Litespeed Web Server running and Litespeed Web Server license file in check."
exit 0
fi