How to configure WMI agent on existing nagios core 3.5.0

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by npolovenko »

@rohithroki, What version of Perl are you running?

Code: Select all

perl -v
perl(:MODULE_COMPAT_5.16.3)
This pretty much means that you need to have Perl version 5.16.3 or higher to run the plugin.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by rohithroki »

Hi npolovenko ,

We have installed the perl version 5.20 ,while installing the perl-Scalar-Utilis ,we are still getting the issue.

Code: Select all

Resolving Dependencies
--> Running transaction check
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Scalar-List-Utils-1.27-248.el7.x86_64
--> Finished Dependency Resolution
Error: Package: perl-Scalar-List-Utils-1.27-248.el7.x86_64 (/perl-Scalar-List-Utils-1.27-248.el7.x86_64)
           Requires: perl(:MODULE_COMPAT_5.16.3)
 You could try using --skip-broken to work around the problem

[root@nagios_test tmp]# perl -V
Summary of my perl5 (revision 5 version 20 subversion 2) configuration:

Code: Select all

  Platform:
    osname=linux, osvers=2.6.32-696.18.7.el6.x86_64, archname=x86_64-linux
    uname='linux nagios_test 2.6.32-696.18.7.el6.x86_64 #1 smp thu jan 4 17:31:22 utc 2018 x86_64 x86_64 x86_64 gnulinux '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-18)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.12'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                        USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under linux
  Compiled at Feb 19 2018 19:38:42
  @INC:
    /usr/local/lib/perl5/site_perl/5.20.2/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.20.2
    /usr/local/lib/perl5/5.20.2/x86_64-linux
    /usr/local/lib/perl5/5.20.2
Please advise and get the error fix the issue.

cheers,
simbu
Last edited by tmcdonald on Tue Feb 20, 2018 10:28 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by mcapra »

Have you tried installing the Compat module via CPAN or by hand? It might make sense to also do that with the List::Util module also.

I suspect there may be some wonky configurations with your yum repositories that need to be resolved sooner or later. Being that Nagios Core was installed via a repository, this may be the source of the package conflicts. No one on these forums has any way of knowing, really.
Former Nagios employee
https://www.mcapra.com/
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to configure WMI agent on existing nagios core 3.5.0

Post by npolovenko »

@rohithroki,
warning: perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
perl(:MODULE_COMPAT_5.16.3) is needed by perl-Scalar-List-Utils-1.27-248.el7.x86_64
Seems like it was looking for a package that was made for CentOS7. I don't think you tried to install the right package. Can you try this one instead:

Code: Select all

cpan Scalar::Util::LooksLikeNumber
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked