Merge branch 'ent-5620-nuevo-compilador-para-backend' into master-alt
This commit is contained in:
commit
f9b090d857
|
@ -39,7 +39,7 @@ BEGIN {
|
||||||
|
|
||||||
use File::Copy;
|
use File::Copy;
|
||||||
use Scalar::Util qw(looks_like_number);
|
use Scalar::Util qw(looks_like_number);
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Erase blank spaces before and after the string
|
# Erase blank spaces before and after the string
|
||||||
|
@ -312,7 +312,7 @@ BEGIN {
|
||||||
$YAML = 1;
|
$YAML = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
our @ISA = ("Exporter");
|
our @ISA = ("Exporter");
|
||||||
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
||||||
|
@ -1003,7 +1003,7 @@ use IO::Socket;
|
||||||
use Sys::Syslog;
|
use Sys::Syslog;
|
||||||
use Time::Local;
|
use Time::Local;
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
# Agent XML data
|
# Agent XML data
|
||||||
my $Xml;
|
my $Xml;
|
||||||
|
|
|
@ -42,6 +42,8 @@ pidof_pandora () {
|
||||||
elif [ "$OS_NAME" = "SunOS" ]
|
elif [ "$OS_NAME" = "SunOS" ]
|
||||||
then
|
then
|
||||||
ZONENAME_CMD="/bin/zonename"
|
ZONENAME_CMD="/bin/zonename"
|
||||||
|
# Has to be run from sources. The binary version inserts blanks between
|
||||||
|
# $DAEMON and $PANDORA_PATH.
|
||||||
TRUNCATED_DAEMON=`echo "$DAEMON $PANDORA_PATH" | cut -c1-20`
|
TRUNCATED_DAEMON=`echo "$DAEMON $PANDORA_PATH" | cut -c1-20`
|
||||||
if [ -x $ZONENAME_CMD ]
|
if [ -x $ZONENAME_CMD ]
|
||||||
then
|
then
|
||||||
|
@ -59,7 +61,7 @@ pidof_pandora () {
|
||||||
then
|
then
|
||||||
# Virtuozzo/OpenVZ
|
# Virtuozzo/OpenVZ
|
||||||
local _pid _ctid _pids
|
local _pid _ctid _pids
|
||||||
_pids=`ps -Af | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
_pids=`ps -Af | grep "$DAEMON" | grep "$PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
||||||
[ "$_pids" ] && for _pid in $_pids
|
[ "$_pids" ] && for _pid in $_pids
|
||||||
do
|
do
|
||||||
_ctid=`/usr/sbin/vzpid $_pid | awk '$1 == '$_pid' { print $2 }'`
|
_ctid=`/usr/sbin/vzpid $_pid | awk '$1 == '$_pid' { print $2 }'`
|
||||||
|
@ -71,9 +73,9 @@ pidof_pandora () {
|
||||||
done
|
done
|
||||||
elif [ "$OS_NAME" = "AIX" ]; then
|
elif [ "$OS_NAME" = "AIX" ]; then
|
||||||
# AIX
|
# AIX
|
||||||
PANDORA_PID=`ps -ef | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
PANDORA_PID=`ps -ef | grep "$DAEMON" | grep "$PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
||||||
else
|
else
|
||||||
PANDORA_PID=`ps -Afw | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
PANDORA_PID=`ps -Afw | grep "$DAEMON" | grep "$PANDORA_PATH" | grep -v grep | awk '{ print $2 }'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $PANDORA_PID
|
echo $PANDORA_PID
|
||||||
|
|
|
@ -14,7 +14,7 @@ use strict;
|
||||||
use LWP::Simple;
|
use LWP::Simple;
|
||||||
use LWP::UserAgent;
|
use LWP::UserAgent;
|
||||||
use MIME::Base64;
|
use MIME::Base64;
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
||||||
# Init
|
# Init
|
||||||
|
|
|
@ -11,7 +11,7 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::PluginTools;
|
use PandoraFMS::PluginTools;
|
||||||
use PandoraFMS::Omnishell;
|
use PandoraFMS::Omnishell;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
|
@ -12,7 +12,7 @@ use NetAddr::IP;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -24,7 +24,7 @@ use threads;
|
||||||
use Digest::MD5 qw(md5_hex);
|
use Digest::MD5 qw(md5_hex);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
# Pandora Modules
|
# Pandora Modules
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -22,7 +22,7 @@ use POSIX qw(strftime);
|
||||||
use Time::Local;
|
use Time::Local;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -145,7 +145,7 @@ if (!$@) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
use PandoraFMS::Config;
|
use PandoraFMS::Config;
|
||||||
|
|
|
@ -22,7 +22,7 @@ use warnings;
|
||||||
use DBI;
|
use DBI;
|
||||||
use Carp qw/croak/;
|
use Carp qw/croak/;
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
||||||
#use Data::Dumper;
|
#use Data::Dumper;
|
||||||
|
|
|
@ -41,7 +41,7 @@ use Encode::Locale ();
|
||||||
use LWP::Simple;
|
use LWP::Simple;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -31,7 +31,7 @@ use Encode qw(encode_utf8);
|
||||||
use MIME::Base64;
|
use MIME::Base64;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -53,7 +53,7 @@ use warnings;
|
||||||
use Geo::IP;
|
use Geo::IP;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
|
@ -30,7 +30,7 @@ use HTML::Entities;
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -10,7 +10,7 @@ use warnings;
|
||||||
|
|
||||||
use File::Copy;
|
use File::Copy;
|
||||||
use Scalar::Util qw(looks_like_number);
|
use Scalar::Util qw(looks_like_number);
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::PluginTools qw/init read_configuration read_file empty trim/;
|
use PandoraFMS::PluginTools qw/init read_configuration read_file empty trim/;
|
||||||
|
|
||||||
my $YAML = 0;
|
my $YAML = 0;
|
||||||
|
@ -24,7 +24,7 @@ if ($@) {
|
||||||
$YAML = 1;
|
$YAML = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
our @ISA = ("Exporter");
|
our @ISA = ("Exporter");
|
||||||
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
||||||
|
|
|
@ -30,7 +30,7 @@ use JSON qw(decode_json);
|
||||||
use Encode qw(encode_utf8 decode_utf8);
|
use Encode qw(encode_utf8 decode_utf8);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -29,7 +29,7 @@ use Net::Ping;
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -25,7 +25,7 @@ use threads::shared;
|
||||||
use Thread::Semaphore;
|
use Thread::Semaphore;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
use PandoraFMS::Core;
|
use PandoraFMS::Core;
|
||||||
|
|
|
@ -12,7 +12,7 @@ use IO::Socket::INET;
|
||||||
use POSIX qw/ceil/;
|
use POSIX qw/ceil/;
|
||||||
use Socket qw/inet_aton/;
|
use Socket qw/inet_aton/;
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::Recon::NmapParser;
|
use PandoraFMS::Recon::NmapParser;
|
||||||
use PandoraFMS::Recon::Util;
|
use PandoraFMS::Recon::Util;
|
||||||
|
|
|
@ -7,7 +7,7 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages.
|
# Default lib dir for RPM and DEB packages.
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use Socket qw/inet_aton/;
|
use Socket qw/inet_aton/;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ use XML::Simple;
|
||||||
use Scalar::Util qw(looks_like_number);
|
use Scalar::Util qw(looks_like_number);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -25,7 +25,7 @@ use threads;
|
||||||
use threads::shared;
|
use threads::shared;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
use PandoraFMS::Core;
|
use PandoraFMS::Core;
|
||||||
|
|
|
@ -34,7 +34,7 @@ use threads::shared;
|
||||||
use JSON;
|
use JSON;
|
||||||
use Encode qw/decode_utf8 encode_utf8/;
|
use Encode qw/decode_utf8 encode_utf8/;
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::Sendmail;
|
use PandoraFMS::Sendmail;
|
||||||
|
|
||||||
# New in 3.2. Used to sendmail internally, without external scripts
|
# New in 3.2. Used to sendmail internally, without external scripts
|
||||||
|
|
|
@ -28,7 +28,7 @@ use POSIX qw(strftime);
|
||||||
use HTML::Entities;
|
use HTML::Entities;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -26,7 +26,7 @@ use POSIX qw(strftime);
|
||||||
use Time::HiRes qw(usleep);
|
use Time::HiRes qw(usleep);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Core;
|
use PandoraFMS::Core;
|
||||||
use PandoraFMS::Config;
|
use PandoraFMS::Config;
|
||||||
|
|
|
@ -13,7 +13,7 @@ use Sys::Hostname;
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ use POSIX qw(strftime);
|
||||||
use Time::HiRes qw( clock_gettime clock ) ;
|
use Time::HiRes qw( clock_gettime clock ) ;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -27,7 +27,7 @@ use File::Path qw(rmtree);
|
||||||
use Time::HiRes qw(usleep);
|
use Time::HiRes qw(usleep);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Core;
|
use PandoraFMS::Core;
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
|
@ -35,7 +35,7 @@ use Math::Trig; # Math functions
|
||||||
use Time::HiRes qw ( clock_gettime CLOCK_REALTIME);
|
use Time::HiRes qw ( clock_gettime CLOCK_REALTIME);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
# Pandora Modules
|
# Pandora Modules
|
||||||
use PandoraFMS::Config;
|
use PandoraFMS::Config;
|
||||||
|
|
|
@ -24,7 +24,7 @@ use LWP::Simple;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -13,7 +13,7 @@ use JSON;
|
||||||
use IO::Socket::INET;
|
use IO::Socket::INET;
|
||||||
use File::Copy;
|
use File::Copy;
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Config;
|
use PandoraFMS::Config;
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
|
@ -18,7 +18,7 @@ use Data::Dumper;
|
||||||
use JSON qw(encode_json);
|
use JSON qw(encode_json);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -18,7 +18,7 @@ use Data::Dumper;
|
||||||
use JSON qw(encode_json);
|
use JSON qw(encode_json);
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -10,7 +10,7 @@ use POSIX qw (strftime floor);
|
||||||
use Sys::Hostname;
|
use Sys::Hostname;
|
||||||
use Time::HiRes qw(gettimeofday tv_interval);
|
use Time::HiRes qw(gettimeofday tv_interval);
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
# Pandora Modules.
|
# Pandora Modules.
|
||||||
use PandoraFMS::Config;
|
use PandoraFMS::Config;
|
||||||
|
|
|
@ -16,7 +16,7 @@ use POSIX;
|
||||||
use HTML::Entities; # Encode or decode strings with HTML entities
|
use HTML::Entities; # Encode or decode strings with HTML entities
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -14,7 +14,7 @@ use strict;
|
||||||
use LWP::Simple;
|
use LWP::Simple;
|
||||||
use LWP::UserAgent;
|
use LWP::UserAgent;
|
||||||
use MIME::Base64;
|
use MIME::Base64;
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
|
|
||||||
# Init
|
# Init
|
||||||
|
|
|
@ -81,7 +81,7 @@ function pidof_pandora () {
|
||||||
# in a "strech" term, ps aux don't report more than COLUMNS
|
# in a "strech" term, ps aux don't report more than COLUMNS
|
||||||
# characters and this will not work.
|
# characters and this will not work.
|
||||||
COLUMNS=300
|
COLUMNS=300
|
||||||
PANDORA_PID=`ps aux | grep "$PANDORA_DAEMON $PANDORA_HOME" | grep -v grep | tail -1 | awk '{ print $2 }'`
|
PANDORA_PID=`ps aux | grep "$PANDORA_DAEMON" | grep "$PANDORA_HOME" | grep -v grep | tail -1 | awk '{ print $2 }'`
|
||||||
echo $PANDORA_PID
|
echo $PANDORA_PID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ use warnings;
|
||||||
|
|
||||||
use Net::SMPP;
|
use Net::SMPP;
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::PluginTools qw(read_configuration);
|
use PandoraFMS::PluginTools qw(read_configuration);
|
||||||
|
|
||||||
my $HELP =<<EO_H;
|
my $HELP =<<EO_H;
|
||||||
|
|
|
@ -16,7 +16,7 @@ use POSIX;
|
||||||
use HTML::Entities; # Encode or decode strings with HTML entities
|
use HTML::Entities; # Encode or decode strings with HTML entities
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -21,7 +21,7 @@ use warnings;
|
||||||
|
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
use PandoraFMS::PluginTools;
|
use PandoraFMS::PluginTools;
|
||||||
|
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
|
@ -12,7 +12,7 @@ use NetAddr::IP;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
|
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
|
@ -6,7 +6,7 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use POSIX qw/strftime/;
|
use POSIX qw/strftime/;
|
||||||
use Socket qw/inet_aton/;
|
use Socket qw/inet_aton/;
|
||||||
|
|
|
@ -9,7 +9,7 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
# Default lib dir for RPM and DEB packages
|
# Default lib dir for RPM and DEB packages
|
||||||
use lib '/usr/lib/perl5';
|
BEGIN { push @INC, '/usr/lib/perl5'; }
|
||||||
|
|
||||||
use PandoraFMS::Tools;
|
use PandoraFMS::Tools;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
Loading…
Reference in New Issue