����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 3.14.248.120 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/nagios/plugins/extra/ |
Upload File : |
#!/bin/bash exitcode=0 cur_date=$(date +%-d) tom_date=$(date --date="tomorrow" +%-d) if [ -f /etc/sharedapi/backups ]; then while read line; do user=$(echo $line | awk '{print $1}') date=$(echo $line | awk '{print $2}') if [[ $date -eq "1" ]] && [[ $cur_date -eq "30" ]]; then # skip backups ordered by 30 continue fi if [[ $date -ne $cur_date ]] && [[ $date -ne $tom_date ]]; then BACKUP=$( sudo /opt/perl/5.32/bin/cpanel-bm list $user --extra 2>&1 | grep -P "([0-9]{4}-[0-9]{2}-[0-9]{2}\s)" ) if [[ -z $BACKUP ]]; then OUT+="$user has no backups\n" exitcode=2 fi fi done < /etc/sharedapi/backups fi echo -ne $OUT exit $exitcode