����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 18.218.161.96 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 : |
#!/usr/bin/env perl use extreme; use autodie; my $httpd_version = `httpd -v 2> /dev/null | grep version | cut -d/ -f2 | cut -d. -f 1,2 | sed 's/\\./_/'`; chomp $httpd_version; my $work_dir = -f '/etc/cpanel/ea4/is_ea4' ? "/etc/apache2/conf.d/userdata/std/$httpd_version" : "/usr/local/apache/conf/userdata/std/$httpd_version"; my $now = time; my $WEEK_TIME = 604800; my @incidents; if ( -d $work_dir ) { opendir( my $dh, $work_dir ); while ( my $acct = readdir($dh) ) { next unless $acct !~ m/^\./; next if !`id $acct 2>/dev/null`; my $cpmigrate_conf = "$work_dir/$acct/cpmigrate-$acct.conf"; next if !-f $cpmigrate_conf; my $acct_mdtm = ( stat($cpmigrate_conf) )[9]; push @incidents, "$acct was migrated" if ( $now - $acct_mdtm ) > $WEEK_TIME; } closedir($dh); if (@incidents) { say join( "\n", @incidents ); exit 1; } } say "migrated users OK";