Missing perl module using a perl plugin
Posted: Mon Nov 30, 2015 7:33 am
Hello everyone, I want to use a plugin called check_printer_info, this is a perl plugin. I've downloaded it, copied the .pl file in my nagios plugins, correct rights to use this, and calling it in my definitions, but the result is the follow:
(No output on stdout) stderr: Can't locate Nagios/Plugin.pm in @INC (you may need to install the Nagios::Plugin module) (@INC contains: /usr/local/nagios/libexec/../perl/lib /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/local/nagios/libexec/check_printer_info.pl line 42.
I guess that something is missing in my Ubuntu related with PERL, but I'm lost.... This is my first Perl plugin in my Ngios Core, all other plugins are running fine.
This is my code:
define command{
command_name check_printer
command_line $USER1$/check_printer_info.pl -H $HOSTADDRESS$ -T hp
}
define service{
use generic-service
host_name printer1
check_command check_printer
}
Thank you!
(No output on stdout) stderr: Can't locate Nagios/Plugin.pm in @INC (you may need to install the Nagios::Plugin module) (@INC contains: /usr/local/nagios/libexec/../perl/lib /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/local/nagios/libexec/check_printer_info.pl line 42.
I guess that something is missing in my Ubuntu related with PERL, but I'm lost.... This is my first Perl plugin in my Ngios Core, all other plugins are running fine.
This is my code:
define command{
command_name check_printer
command_line $USER1$/check_printer_info.pl -H $HOSTADDRESS$ -T hp
}
define service{
use generic-service
host_name printer1
check_command check_printer
}
Thank you!