403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.74
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 :  /usr/lib64/nagios/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib64/nagios/plugins/vz7_check_a2_backup_timer_enabled.sh
#!/bin/bash
# https://jira.a2hosting.com/browse/SYSENG-2654
# production/states/virtuozzo/7/repo/usr/lib/check_mk_agent/scripts/vz7_backup_timer_enabled_on_check.sh.vz7

ENABLED=$(systemctl status vz7-backup.timer | awk '/Loaded/ {print $4}' | cut -d ";" -f 1)
RUNNING=$(systemctl status vz7-backup.timer | awk '/Active/ {print $2}')

if [[ "$ENABLED" == "enabled" ]] && [[ "$RUNNING" == "active" ]]; then
  echo "vz7_backup_timer_enabled_on_check - vz7_backup_timer running and enabled."
  exit 0
else
  echo "vz7_backup_timer_enabled_on_check - vz7_backup_timer not running or not enabled!"
  exit 2
fi

Youez - 2016 - github.com/yon3zu
LinuXploit