Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.122
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
bacula-common /
examples /
reports /
Delete
Unzip
Name
Size
Permission
Date
Action
bacula_mail_summary.sh
2.18
KB
-rwxr-xr-x
2016-09-21 11:58
baculareport.pl.gz
10.96
KB
-rw-r--r--
2016-09-21 11:58
check_bacula_pools.sh.gz
2.07
KB
-rw-r--r--
2016-09-21 11:58
checkhost
1.12
KB
-rwxr-xr-x
2016-09-21 11:58
is_client_alive
432
B
-rwxr-xr-x
2016-09-21 11:58
next_tape.sh
2.52
KB
-rwxr-xr-x
2016-09-21 11:58
pool-query.txt.gz
1.64
KB
-rw-r--r--
2016-09-21 11:58
report.pl.gz
1.53
KB
-rw-r--r--
2016-09-21 11:58
Save
Rename
#!/usr/bin/perl use strict; use Net::Ping; use Net::Telnet (); use Getopt::Long; use IPC::Open2; # # Check if a Bacula client is alive. By Phil Stracchino. # # Return values: # -1 Program error or no host specified # 0 Success, FD found and responding # 1 Client alive but FD not listening # 2 Client not found on network my $ret = -1; my ($host, $p, $ret, $verbose); GetOptions('verbose' => \$verbose, 'v' => \$verbose); $host = shift || die "No host specified!\n"; $p = Net::Ping->new(); if ($p->ping($host)) { print "Host $host is alive\n" if ($verbose); my $t = new Net::Telnet (Timeout => 10, Port => 9102, Prompt => '/bash\$ $/'); if ($t->open($host)) { print "Bacula-FD listening on port 9102\n" if ($verbose); $ret = 0; } else { print "Bacula-FD not found\n" if ($verbose); $ret = 1; } $t->close; } else { print "$host is unreachable\n" if ($verbose); $ret = 2; } $p->close(); print "Returning value $ret\n" if ($verbose); exit ($ret);