mirror of
https://github.com/ranl/monitor-utils.git
synced 2025-04-07 08:13:40 +02:00
Merge 300651b80a
into fc9c1902ab
This commit is contained in:
commit
c09008419d
@ -46,6 +46,7 @@ use File::Basename;
|
|||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use Time::Local;
|
use Time::Local;
|
||||||
use IPC::Cmd qw(run_forked);
|
use IPC::Cmd qw(run_forked);
|
||||||
|
use Time::HiRes qw[ time alarm ];
|
||||||
|
|
||||||
Getopt::Long::Configure('bundling');
|
Getopt::Long::Configure('bundling');
|
||||||
|
|
||||||
@ -538,6 +539,7 @@ if (!defined($counterFilePath)) {
|
|||||||
|
|
||||||
|
|
||||||
# Starting Alarm
|
# Starting Alarm
|
||||||
|
$SIG{ALRM} = sub {print "Script execution timeout\n"; exit 2};
|
||||||
alarm($TIMEOUT);
|
alarm($TIMEOUT);
|
||||||
|
|
||||||
# Establish SNMP Session
|
# Establish SNMP Session
|
||||||
|
Loading…
Reference in New Issue
Block a user