403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.142
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/root/lib64/nagios/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/lib64/nagios/plugins/check_a2_imunify_service
#!/bin/bash
# A2hosting Inc.

MWP=$(echo "$HOSTNAME" | grep -E 'mw[0-9]')

if [[ -n "$MWP" ]]; then
  echo "check_imunify360 - Managed Wordpress servers do not use Imunify360."
  exit 0
fi

imunify360_webshield_active=$(service imunify360-webshield status 2>/dev/null| awk '/Active: active \(running\)/ {print $2,$3}')
imunify360_active=$(service imunify360 status 2>/dev/null| awk '/Active: active \(running\)/ {print $2,$3}')
imunify360_licensed=$(imunify360-agent rstatus 2>/dev/null)

if [[ "$imunify360_licensed" == "OK" ]] && [[ "$imunify360_active" == "active (running)" ]] && [[ "$imunify360_webshield_active" == "active (running)" ]]; then
  echo "check_imunify360 - Imunify360 and Imunify360-webshield are running and the license is valid."
  exit 0
else
  echo "check_imunify360 - Imunify360 or Imunify360-webshield are either not running, or Imunify360 is not licensed on this server."
  exit 2
fi

Youez - 2016 - github.com/yon3zu
LinuXploit