GithubHelp home page GithubHelp logo

Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/modules/check_vmware_esx/host_runtime_info.pm line 717. about check_vmware_esx HOT 7 OPEN

skupjoe avatar skupjoe commented on August 16, 2024
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/modules/check_vmware_esx/host_runtime_info.pm line 717.

from check_vmware_esx.

Comments (7)

skupjoe avatar skupjoe commented on August 16, 2024

Similar to issue #158

from check_vmware_esx.

Chrisnet46 avatar Chrisnet46 commented on August 16, 2024

I had the same problem.

In host_runtime_info.pm
line 694

I changed

name => $1,

to

name => $_->name,

Seems to work now

from check_vmware_esx.

BaldMansMojo avatar BaldMansMojo commented on August 16, 2024

I can't reproduce.

from check_vmware_esx.

BaldMansMojo avatar BaldMansMojo commented on August 16, 2024

I can't reproduce.

from check_vmware_esx.

jhuebner79 avatar jhuebner79 commented on August 16, 2024

I can reproduce and @Chrisnet46's proposed solution helps.

Output before the change:

# /usr/lib/nagios/custom-plugins/check_vmware_esx.pl -H redacted.somewhwere.net -u icinga -p redacted -S runtime -s temp
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 751.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 751.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 751.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 751.
Use of uninitialized value $name in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 767.
Use of uninitialized value $name in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 767.
Use of uninitialized value $name in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 767.
Use of uninitialized value $name in concatenation (.) or string at /usr/lib/nagios/custom-plugins/modules/host_runtime_info.pm line 767.
OK: All 4 temperature checks are GREEN.
Ok:  = 33
Ok:  = 21
Ok:  = 44
Ok:  = 46|''=33;;;; ''=21;;;; ''=44;;;; ''=46;;;;

and after:

# /usr/lib/nagios/custom-plugins/check_vmware_esx.pl -H redacted.somewhwere.net -u icinga -p redacted -S runtime -s temp
OK: All 4 temperature checks are GREEN.
Ok: System Board 1 Exhaust Temp = 32
Ok: System Board 1 Inlet Temp = 21
Ok: Processor 2 Temp = 41
Ok: Processor 1 Temp = 46|'System Board 1 Exhaust Temp'=32;;;; 'System Board 1 Inlet Temp'=21;;;; 'Processor 2 Temp'=41;;;; 'Processor 1 Temp'=46;;;;

What do you need to debug? Maybe it's not related to the VMware server or its version but rather to the Perl version on the Icinga2 node? This one here is Debian 10 (yes, I know, we can and should upgrade somewhen not too far in the future - on the other hand there's still support for it until June 30th, 2024) sporting This is perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi.

Thanks for your time and the good work!

from check_vmware_esx.

jhuebner79 avatar jhuebner79 commented on August 16, 2024

Forgot to mention: in my case it was line 728 in the file where I had to fix it, we're using the version from the master branch, which as of today is 1.2.5.

from check_vmware_esx.

jhuebner79 avatar jhuebner79 commented on August 16, 2024

Thanks for reopening. In the meantime I had the chance to upgrade two satellites to Debian 11, but with the same result.
Now it's This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-gnu-thread-multi

from check_vmware_esx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.