PDA

View Full Version : check_bandwidth, bande passante


thomascentreon
04-04-2008, 10:37 AM
Bonjour, je souhaite installer check_bandwidth-0.9.6, pour visualiser la bande passante entre 2 machines ...

J'ai télécharger le check_bandwidth-0.9.6.tar.gz, je l'ai décompressé.
Pour installer ce plugin :
# perl Makefile.PL
Cannot determine perl version info from check_bandwidth.pod
Checking if your kit is complete...
Looks good
Warning: prerequisite Nagios::Plugin 0 not found.
Warning: prerequisite Nagios::Plugin::Threshold 0 not found.
Warning: prerequisite Net::DNS::Resolver 0 not found.
Writing Makefile for check_bandwidth
# make
cp check_bandwidth.pod blib/lib/check_bandwidth.pod
cp check_bandwidth blib/script/check_bandwidth
/usr/bin/perl "-Iinc" "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/check_bandwidth
Manifying blib/man3/check_bandwidth.3pm
# make install
Installing /usr/local/man/man3/check_bandwidth.3pm
Writing /usr/local/lib/perl/5.8.8/auto/check_bandwidth/.packlist
Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod

J'ai ajouter #! /usr/bin/perl -w au début du script
L'execution du check ne fonctionne pas :
6# ./check_bandwidth
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./check_bandwidth line 21.
BEGIN failed--compilation aborted at ./check_bandwidth line 21.

Voici une partie du script :
21 use Nagios::Plugin;
22 use Nagios::Plugin::Threshold;
23 use Net::DNS::Resolver;
24 use File::Slurp;

Que dois je faire ?

Merci d'avance de vos réponses.