ZEVENET Monitoring not returning Data
Re: ZEVENET Monitoring not returning Data
Most of the messages were warnings telling you that to install that package, you need to install other packages first.
Go through the list, install those first and then continue on.
Go through the list, install those first and then continue on.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ZEVENET Monitoring not returning Data
I was asked to install "perl -MCPAN -e 'install Monitoring::Plugin' "
but i don't think is necessary due the VM is the one Nagios provide. could you please confirm if not necessary?
but i don't think is necessary due the VM is the one Nagios provide. could you please confirm if not necessary?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: ZEVENET Monitoring not returning Data
It may be required for some plugins. Our VM has the package Nagios::Monitoring::Plugin installed by default, but if a plugin author uses Monitoring::Plugin you would either need the package or need to modify the plugin to use Nagios::Monitoring::Pluginlpereira wrote:I was asked to install "perl -MCPAN -e 'install Monitoring::Plugin' "
but i don't think is necessary due the VM is the one Nagios provide. could you please confirm if not necessary?
Re: ZEVENET Monitoring not returning Data
great, so it would not "harm" the actual monitoring, right?scottwilkerson wrote:It may be required for some plugins. Our VM has the package Nagios::Monitoring::Plugin installed by default, but if a plugin author uses Monitoring::Plugin you would either need the package or need to modify the plugin to use Nagios::Monitoring::Pluginlpereira wrote:I was asked to install "perl -MCPAN -e 'install Monitoring::Plugin' "
but i don't think is necessary due the VM is the one Nagios provide. could you please confirm if not necessary?
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: ZEVENET Monitoring not returning Data
@lpereira, Nope, I don't see how it could harm Nagios. You can always uninstall it if you'd like.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: ZEVENET Monitoring not returning Data
I have installed the package YAML but still having issues with the output
Code: Select all
Running Transaction
Installing : libyaml-0.1.3-4.el6_6.x86_64 1/2
Installing : PyYAML-3.10-3.1.el6.x86_64 2/2
Verifying : libyaml-0.1.3-4.el6_6.x86_64 1/2
Verifying : PyYAML-3.10-3.1.el6.x86_64 2/2
Installed:
PyYAML.x86_64 0:3.10-3.1.el6
Dependency Installed:
libyaml.x86_64 0:0.1.3-4.el6_6
Complete!
Code: Select all
[root@nagios libexec]# sudo perl check_zevenet_cpu.pl -H HostIP -z Zapikey -w 20 -c 10
Can't use an undefined value as filehandle reference at check_zevenet_cpu.pl line 179.
Re: ZEVENET Monitoring not returning Data
One fix I found after searching, try changing this line from
to
and see if it fixes the issue.
Code: Select all
$retcode = $curl->perform;
Code: Select all
my $retcode = $curl->perform;
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ZEVENET Monitoring not returning Data
This is what i have on the plugintgriep wrote:One fix I found after searching, try changing this line fromtoCode: Select all
$retcode = $curl->perform;
and see if it fixes the issue.Code: Select all
my $retcode = $curl->perform;
Code: Select all
# ZAPI v3 call
my $response_body;
my $retcode;
my $response_code;
my $response_decoded;
my $curl = WWW::Curl::Easy->new;
$curl->setopt(CURLOPT_HEADER,0);
$curl->setopt(CURLOPT_SSL_VERIFYPEER, 0);
$curl->setopt(CURLOPT_SSL_VERIFYHOST, 0);
# Maximun time that a given cURL operation should only take
$curl->setopt(CURLOPT_TIMEOUT, $p->opts->timeout);
$curl->setopt(CURLOPT_URL, ("https://$host:$port$url"));
my @authHeader = ( 'Content-Type: application/json', "ZAPI_KEY: $zapikey");
$curl->setopt(CURLOPT_HTTPHEADER, \@authHeader);
# A filehandle, reference to a scalar or reference to a typeglob can be used here.
$curl->setopt(CURLOPT_WRITEDATA,\$response_body);
# Starts the actual request
$retcode = $curl->perform;
Code: Select all
# ZAPI v3 call
my $response_body;
# my $retcode;
my $response_code;
my $response_decoded;
my $curl = WWW::Curl::Easy->new;
$curl->setopt(CURLOPT_HEADER,0);
$curl->setopt(CURLOPT_SSL_VERIFYPEER, 0);
$curl->setopt(CURLOPT_SSL_VERIFYHOST, 0);
# Maximun time that a given cURL operation should only take
$curl->setopt(CURLOPT_TIMEOUT, $p->opts->timeout);
$curl->setopt(CURLOPT_URL, ("https://$host:$port$url"));
my @authHeader = ( 'Content-Type: application/json', "ZAPI_KEY: $zapikey");
$curl->setopt(CURLOPT_HTTPHEADER, \@authHeader);
# A filehandle, reference to a scalar or reference to a typeglob can be used here.
$curl->setopt(CURLOPT_WRITEDATA,\$response_body);
# Starts the actual request
my $retcode = $curl->perform;
Can't use an undefined value as filehandle reference at check_zevenet_cpu.pl line 179.
Re: ZEVENET Monitoring not returning Data
I think there is one more module that did not get updated. Try running this to install the WWW::Curl::Easy module.
Test the check again and see is it works.
Please post how you ran the check.
Code: Select all
cpan -i WWW::Curl::Easy
Please post how you ran the check.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ZEVENET Monitoring not returning Data
Here is the complete output:tgriep wrote:I think there is one more module that did not get updated. Try running this to install the WWW::Curl::Easy module.Test the check again and see is it works.Code: Select all
cpan -i WWW::Curl::Easy
Please post how you ran the check.
Code: Select all
CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
Database was generated on Wed, 14 Feb 2018 18:17:03 GMT
Running install for module 'WWW::Curl::Easy'
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
Generating a Unix-style Makefile
Writing Makefile for WWW::Curl
Writing MYMETA.yml and MYMETA.json
Could not read '/root/.cpan/build/WWW-Curl-4.17-47QVhy/MYMETA.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/Multi.pm blib/lib/WWW/Curl/Multi.pm
cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
Running Mkbootstrap for Curl ()
chmod 644 "Curl.bs"
"/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- Curl.bs blib/arch/auto/WWW/Curl/Curl.bs 644
"/usr/bin/perl" "-Iinc" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/root/.cpan/build/WWW-Curl-4.17-47QVhy/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
rm -f blib/arch/auto/WWW/Curl/Curl.so
LD_RUN_PATH="/usr/lib64" 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
Manifying 1 pod document
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
"/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- Curl.bs blib/arch/auto/WWW/Curl/Curl.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; 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, 2 wallclock secs ( 0.08 usr 0.03 sys + 0.54 cusr 0.10 csys = 0.75 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
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