What CPAN modules should be installed for this script?

If the Perl script contains

use vars qw($PROGNAME $VERSION);
use lib "/usr/nagios/libexec";
use utils qw(%ERRORS);

Which CPAN modules should be installed?

cpan utils finds nothing.

Update

This is this script I'm trying to work.

Decision

yum install nagios-plugins-perl.x86_64
+3
source share
3 answers

This utils.pmcomes with Nagios.

+3
source

Change

use lib "/usr/nagios/libexec";

For

use lib "/usr/nagios/plugins"
+2
source

Wanting my own plugins to be separated from the default plugins, I used the following approach.

$ mkdir -p /usr/local/nagios/plugins
$ cd /usr/local/nagios/
$ ln -s /usr/lib/nagios/plugins libexec

Now I can save my own file with controlled versions of plugins under /usr/local/nagios/plugins, but they use the distribution (14.04 in my case) utils.pm.

0
source

All Articles