ZEVENET Monitoring not returning Data
Posted: Tue Jan 16, 2018 3:45 pm
Hello all:
I'm trying to configure a few perl monitoring scrtipt for ZEVENET Load Balancer. According to their GitHub page i need to download a few packages, but they are not working from my end
their GitHub page is https://github.com/zevenet/zevenet-nagios-plugins
here is the errors i got trying to download the cpan packages:
When i try to run the scrtip from CM i got the following error:
Can anyone please assist?
thanks in advance
I'm trying to configure a few perl monitoring scrtipt for ZEVENET Load Balancer. According to their GitHub page i need to download a few packages, but they are not working from my end
their GitHub page is https://github.com/zevenet/zevenet-nagios-plugins
here is the errors i got trying to download the cpan packages:
Code: Select all
[root@nagios libexec]# perl -MCPAN -e 'install WWW::Curl'
CPAN: Storable loaded ok (v2.20)
CPAN: LWP::UserAgent loaded ok (v5.833)
CPAN: Time::HiRes loaded ok (v1.9721)
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to www.perl.org:80 (Bad hostname 'www.perl.org')]
Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
"http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
curl: (6) Couldn't resolve host 'www.perl.org'
Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt.tmp101022")
returned status 6 (wstat 1536)
Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022] doesn't exist
Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/01mailrc.txt.tmp101022" to get
"http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
--2018-01-16 17:40:04-- http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Resolving www.perl.org... failed: No address associated with hostname.
wget: unable to resolve host address âwww.perl.orgâ
returned status 4 (wstat 1024)
Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022] doesn't exist
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org']
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Could not connect to host 'ftp.perl.org' with Net::FTP
Fetching with Net::FTP
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz.gz
Could not connect to host 'ftp.perl.org' with Net::FTP
Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
"ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz"
curl: (6) Couldn't resolve host 'ftp.perl.org'
Function system("/usr/bin/curl -L -f -s -S --netrc-optional "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt.tmp101022")
returned status 6 (wstat 1536)
Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022] doesn't exist
Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/01mailrc.txt.tmp101022" to get
"ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz"
--2018-01-16 17:40:09-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
=> â/root/.cpan/sources/authors/01mailrc.txt.tmp101022â
esolving ftp.perl.org... failed: No address associated with hostname.
wget: unable to resolve host address âftp.perl.orgâ
returned status 4 (wstat 1024)
Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022] doesn't exist
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp101022'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
No external ftp command available
Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist
push ftp://myurl/'
Could not fetch authors/01mailrc.txt.gz
When i try to run the scrtip from CM i got the following error:
Code: Select all
perl check_zevenet_cpu.pl -H XXX.XXX.XXX.XXX -z 6DH2xE0yTiioiZrMyUpv0I -w 20 -c 10
Can't locate WWW/Curl/Easy.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at check_zevenet_cpu.pl line 53.
BEGIN failed--compilation aborted at check_zevenet_cpu.pl line 53.
thanks in advance