Page 2 of 4

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 2:58 pm
by tgriep
Those changes didn't work so you can put things back.

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 3:02 pm
by lpereira
tgriep wrote:Those changes didn't work so you can put things back.
yes i undid the changes

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 3:06 pm
by tgriep
Can you ask the author the version numbers of the packages they are using?

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 3:10 pm
by lpereira
tgriep wrote:Can you ask the author the version numbers of the packages they are using?
does this work?

Code: Select all

My current version is
libwww-curl-perl 4.17-4

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 3:27 pm
by tgriep
That is the version that is installed on your server which the author of the plugin says is too old, what version is he using?

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 3:49 pm
by lpereira
tgriep wrote:That is the version that is installed on your server which the author of the plugin says is too old, what version is he using?
That's the version of the Plugin's Owner.
emiliocampos-zevenet commented 9 days ago
Hi, I can confirm the check_zevenet_cpu.pl works properly, see output:

root@server:/zevenet-nagios-plugins/libexec# ./check_zevenet_cpu.pl -H 192.168.100.123 -z asdfl9io3dk -c90:100 -w40:50
ZEVENET_CPU WARNING - Zevenet ADC Load Balancer CPU usage is 0 % (100 % idle) | Idle=100%;4050;90100 IOWait=0%;; IRQ=0%;; Nice=0%;; SoftIRQ=0%;; Sys=0%;; Usage=0%;; User=0%;; Total=100%;;

googling you can see that the error message is related to curl module perl.

Can't use an undefined value as filehandle reference at

My current version is
libwww-curl-perl 4.17-4

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 4:10 pm
by tgriep
I have 4.17 on my Centos6 system but I updated the package using cpan.
Try this command to install a newer version of the perl module.

Code: Select all

cpan -i WWW::Curl

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 4:16 pm
by lpereira
tgriep wrote:I have 4.17 on my Centos6 system but I updated the package using cpan.
Try this command to install a newer version of the perl module.

Code: Select all

cpan -i WWW::Curl
i'm seeing lot of erros

Code: Select all

[root@nagios libexec]# cpan -i 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.tmp94223'. 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.tmp94223")
    returned status 6 (wstat 1536)
Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz.tmp94223] doesn't exist

Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/01mailrc.txt.tmp94223" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
--2018-01-26 18:15:07--  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.tmp94223] doesn't exist
    Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp94223'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
i'm behind a proxy with authentication. Can it be the reason?

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 4:25 pm
by tgriep
To enable CPAN behind proxy, invoke CPAN Shell as

Code: Select all

perl -MCPAN -e shell
will give you prompt as
cpan[2]>
Now we have to set the proxy type following command

Code: Select all

cpan[2]> o conf init /proxy/
If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.

Code: Select all

 
Your ftp_proxy? [a.b.c.d] a.b.c.d:port

Code: Select all

Your http_proxy? [a.b.c.d] a.b.c.d:port

Code: Select all

Your no_proxy? [] a.b.c.d:port
If your proxy is an authenticating proxy, you can store your username
permanently. If you do not want that, just press RETURN. You will then
be asked for your username in every future session.

Code: Select all

Your proxy user id? []
Please remember to call 'o conf commit' to make the config permanent!

Code: Select all

cpan[3]> o conf commit

Re: ZEVENET Monitoring not returning Data

Posted: Fri Jan 26, 2018 4:37 pm
by lpereira
Seems that it didn't like it that much

Code: Select all

# Looks like you failed 9 tests of 19.
t/08ssl.t ................. Dubious, test returned 9 (wstat 2304, 0x900)
Failed 9/19 subtests
t/09times.t ............... ok
t/10errbuf.t .............. ok
t/13slowleak.t ............ skipped: Not performing slow leakage regression test
t/14duphandle.t ........... ok
t/15duphandle-callback.t .. ok
t/16formpost.t ............ skipped: Not performing POST
t/17slist.t ............... skipped: Not performing printenv cgi tests
t/18twinhandles.t ......... ok
t/19multi.t ............... ok
t/20undefined_subs.t ...... ok
t/21write-to-scalar.t ..... ok
t/meta.t .................. skipped: Test::CPAN::Meta required for testing META.yml
t/pod-coverage.t .......... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ................... skipped: Test::Pod 1.14 required for testing POD

Test Summary Report
-------------------
t/01basic.t             (Wstat: 256 Tests: 19 Failed: 1)
  Failed test:  19
  Non-zero exit status: 1
t/08ssl.t               (Wstat: 2304 Tests: 19 Failed: 9)
  Failed tests:  8-9, 11-17
  Non-zero exit status: 9
Files=22, Tests=732,  1 wallclock secs ( 0.09 usr  0.02 sys +  0.54 cusr  0.07 csys =  0.72 CPU)
Result: FAIL
Failed 2/22 test programs. 10/732 subtests failed.
make: *** [test_dynamic] Error 255
  SZBALINT/WWW-Curl-4.17.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SZBALINT/WWW-Curl-4.17.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
  make test had returned bad status, won't install without force
running the check, still having the same error

i modified some parameters on the proxy config, this is the output now

Code: Select all

CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
  Database was generated on Fri, 26 Jan 2018 21:29:02 GMT
Running install for module 'WWW::Curl'
CPAN: Data::Dumper loaded ok (v2.124)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.021)
Checksum for /root/.cpan/sources/authors/id/S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz ok
WWW-Curl-4.17/
WWW-Curl-4.17/LICENSE
WWW-Curl-4.17/META.yml
WWW-Curl-4.17/typemap
WWW-Curl-4.17/template/
WWW-Curl-4.17/template/Easy.pm.tmpl
WWW-Curl-4.17/template/Share.pm.tmpl
WWW-Curl-4.17/lib/
WWW-Curl-4.17/lib/WWW/
WWW-Curl-4.17/lib/WWW/Curl/
WWW-Curl-4.17/lib/WWW/Curl/Form.pm
WWW-Curl-4.17/lib/WWW/Curl/Multi.pm
WWW-Curl-4.17/lib/WWW/Curl/Easy.pm
WWW-Curl-4.17/lib/WWW/Curl/Share.pm
WWW-Curl-4.17/lib/WWW/Curl.pm
WWW-Curl-4.17/README.Win32
WWW-Curl-4.17/Curl.xs
WWW-Curl-4.17/Makefile.PL
WWW-Curl-4.17/MANIFEST
WWW-Curl-4.17/inc/
WWW-Curl-4.17/inc/Module/
WWW-Curl-4.17/inc/Module/Install.pm
WWW-Curl-4.17/inc/Module/Install/
WWW-Curl-4.17/inc/Module/Install/MakeMaker.pm
WWW-Curl-4.17/inc/Module/Install/Metadata.pm
WWW-Curl-4.17/inc/Module/Install/External.pm
WWW-Curl-4.17/inc/Module/Install/Base.pm
WWW-Curl-4.17/inc/Module/Install/Makefile.pm
WWW-Curl-4.17/inc/Module/Install/Can.pm
WWW-Curl-4.17/t/
WWW-Curl-4.17/t/06http-post.t
WWW-Curl-4.17/t/07ftp-upload.t
WWW-Curl-4.17/t/17slist.t
WWW-Curl-4.17/t/21write-to-scalar.t
WWW-Curl-4.17/t/symbols-in-versions
WWW-Curl-4.17/t/05progress.t
WWW-Curl-4.17/t/19multi.t
WWW-Curl-4.17/t/pod.t
WWW-Curl-4.17/t/15duphandle-callback.t
WWW-Curl-4.17/t/10errbuf.t
WWW-Curl-4.17/t/02callbacks.t
WWW-Curl-4.17/t/pod-coverage.t
WWW-Curl-4.17/t/14duphandle.t
WWW-Curl-4.17/t/18twinhandles.t
WWW-Curl-4.17/t/04abort-test.t
WWW-Curl-4.17/t/new/
WWW-Curl-4.17/t/new/07errbuf.t
WWW-Curl-4.17/t/new/08duphandle.t
WWW-Curl-4.17/t/new/06http-post.t
WWW-Curl-4.17/t/new/03body-callback.t
WWW-Curl-4.17/t/new/04abort.t
WWW-Curl-4.17/t/new/02header-callback.t
WWW-Curl-4.17/t/new/05progress.t
WWW-Curl-4.17/t/new/10multi-callback.t
WWW-Curl-4.17/t/new/09duphandle-callback.t
WWW-Curl-4.17/t/new/README
WWW-Curl-4.17/t/new/01basic.t
WWW-Curl-4.17/t/new/00constants.t
WWW-Curl-4.17/t/meta.t
WWW-Curl-4.17/t/09times.t
WWW-Curl-4.17/t/08ssl.t
WWW-Curl-4.17/t/20undefined_subs.t
WWW-Curl-4.17/t/01basic.t
WWW-Curl-4.17/t/13slowleak.t
WWW-Curl-4.17/t/16formpost.t
WWW-Curl-4.17/t/00constants.t
WWW-Curl-4.17/README
WWW-Curl-4.17/Changes
CPAN: File::Temp loaded ok (v0.22)

  CPAN.pm: Going to build S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz

Locating required external dependency bin:curl-config... found at /usr/bin/curl-config.
The version is libcurl 7.19.7
Found curl.h in /usr/include/curl/curl.h
Building curlopt-constants.c for your libcurl version
Building Easy.pm constants for your libcurl version
Building Share.pm constants for your libcurl version
Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Curl
Could not read '/root/.cpan/build/WWW-Curl-4.17-YDqiaF/META.yml'. Falling back to other methods to determine prerequisites
cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm
cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
/usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp  -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap  Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -fPIC "-I/usr/lib64/perl5/CORE"   Curl.c
Running Mkbootstrap for WWW::Curl ()
chmod 644 Curl.bs
rm -f blib/arch/auto/WWW/Curl/Curl.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Curl.o  -o blib/arch/auto/WWW/Curl/Curl.so 	\
	   -lcurl  	\
	  
chmod 755 blib/arch/auto/WWW/Curl/Curl.so
cp Curl.bs blib/arch/auto/WWW/Curl/Curl.bs
chmod 644 blib/arch/auto/WWW/Curl/Curl.bs
Manifying blib/man3/WWW::Curl.3pm
  SZBALINT/WWW-Curl-4.17.tar.gz
  /usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00constants.t ........... ok
t/01basic.t ............... 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/19 subtests 
t/02callbacks.t ........... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/7 subtests 
t/04abort-test.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests 
t/05progress.t ............ 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/16 subtests 
t/06http-post.t ........... skipped: Not performing http POST/upload tests
t/07ftp-upload.t .......... skipped: Not performing ftp upload tests
t/08ssl.t ................. 
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 9/19 subtests 
t/09times.t ............... 
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 9/19 subtests 
t/10errbuf.t .............. ok
t/13slowleak.t ............ skipped: Not performing slow leakage regression test
t/14duphandle.t ........... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/17 subtests 
t/15duphandle-callback.t .. 
Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/25 subtests 
t/16formpost.t ............ skipped: Not performing POST
t/17slist.t ............... skipped: Not performing printenv cgi tests
t/18twinhandles.t ......... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/12 subtests 
t/19multi.t ............... ok
t/20undefined_subs.t ...... ok
t/21write-to-scalar.t ..... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/12 subtests 
t/meta.t .................. skipped: Test::CPAN::Meta required for testing META.yml
t/pod-coverage.t .......... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ................... skipped: Test::Pod 1.14 required for testing POD

Test Summary Report
-------------------
t/01basic.t             (Wstat: 1024 Tests: 19 Failed: 4)
  Failed tests:  14-15, 17, 19
  Non-zero exit status: 4
t/02callbacks.t         (Wstat: 512 Tests: 7 Failed: 2)
  Failed tests:  6-7
  Non-zero exit status: 2
t/04abort-test.t        (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
t/05progress.t          (Wstat: 768 Tests: 16 Failed: 3)
  Failed tests:  14-16
  Non-zero exit status: 3
t/08ssl.t               (Wstat: 2304 Tests: 19 Failed: 9)
  Failed tests:  8-9, 11-17
  Non-zero exit status: 9
t/09times.t             (Wstat: 1536 Tests: 16 Failed: 6)
  Failed tests:  11-16
  Non-zero exit status: 6
  Parse errors: Bad plan.  You planned 19 tests but ran 16.
t/14duphandle.t         (Wstat: 768 Tests: 17 Failed: 3)
  Failed tests:  12-13, 16
  Non-zero exit status: 3
t/15duphandle-callback.t (Wstat: 1792 Tests: 25 Failed: 7)
  Failed tests:  14-17, 19, 24-25
  Non-zero exit status: 7
t/18twinhandles.t       (Wstat: 768 Tests: 12 Failed: 3)
  Failed tests:  10-12
  Non-zero exit status: 3
t/21write-to-scalar.t   (Wstat: 768 Tests: 12 Failed: 3)
  Failed tests:  9-10, 12
  Non-zero exit status: 3
Files=22, Tests=729,  1 wallclock secs ( 0.10 usr  0.03 sys +  0.59 cusr  0.09 csys =  0.81 CPU)
Result: FAIL
  SZBALINT/WWW-Curl-4.17.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SZBALINT/WWW-Curl-4.17.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
  make test had returned bad status, won't install without force