Solved [Solved] util.pm error

abdelilah

Member

Reaction score: 4
Messages: 93

Hi everyone,

I'm trying to run check_snmptraps.pl which comes out with NagTrap, at the moment it gives me the same error even after installing the needed dependencies such as p5-DBI, here is the error:
Code:
Global symbol "@monitoring_libexecdir" requires explicit package name at /usr/local/libexec/nagios/check_snmptraps.pl line 66.
Here is the code:
Code:
# ==================== Load Perl modules ====================
use strict;
use Getopt::Long;
use vars qw($PROGNAME);
use lib "@monitoring_libexecdir@"; # Pfad zur util.pm !!
use utils qw($TIMEOUT %ERRORS &print_revision &support);
use Time::HiRes qw(time);
use DBI();
Thank you in advance.
 
OP
OP
abdelilah

abdelilah

Member

Reaction score: 4
Messages: 93

Re: util.pm error

I had to simply install Perl utils.pm to make it work, I can't remember the name but just google for it you will find the name of that module. You can mark this thread solved, thanks to everyone who read this post.
 
Top