-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of uninitialized value $name in concatenation (.) or string at /opt/check_vmware_esx/modules/host_runtime_info.pm line 711 #158
Comments
Linux / Unix for beginners: And for any plugin testing:
This should help. If there are still problems reopen this issue. |
I am sorry to inform the problem still remains, as you can see below: su - nagios -c "/usr/local/nagios/libexec/check_vmware_esx.pl -H [CUT] -u [CUT] -p [CUT] -S runtime --subselect=temp --multiline" And used as module with nagios, it reports "(No output on stdout) stderr: /bin/sh: 1: Syntax error: Unterminated quoted string ". |
Sorry - tested it on several servers without any problems. It seems that the plugin doesn't get all values from your VWware host. Have you tested another with some other host? The Nagios output is nonsense because it's based on the firstline of output from the plugin. |
This is a vilid output; |
Sorry but i don't have any other vmware host to test with. How i can debug this issue? |
There is nothing to debug because the program has no problem. Your VMware system doesn't answer correctly. Normally this is if CIM server hangs. It is also possible, that your VMware system doesn't show temperature values. So if you can't see such values from your Vcenter/VCSA you can't monitor it. Can you tell me something about your VMware system and your hardware? |
I am trying to get temperatures for check vmware host with Nagios, and i have some problems.
I run the script with this syntax:
./check_vmware_esx.pl -H [cut] -u [cut] -p [cut] -S, --select=runtime -s, --subselect=temp --multiline
And the output is something like:
Use of uninitialized value in concatenation (.) or string at /opt/check_vmware_esx/modules/host_runtime_info.pm line 695.
[repeated several times]
Use of uninitialized value $name in concatenation (.) or string at /opt/check_vmware_esx/modules/host_runtime_info.pm line 711.
[repeated several times]
OK: All 27 temperature checks are GREEN.
Ok: = 25
Ok: = 30
Ok: = 25
Ok: = 25
Ok: = 28
Ok: = 29
Ok: = 29
Ok: = 28
Ok: = 24
Ok: = 40
Ok: = 40
Ok: = 26
Ok: = 27
Ok: = 27
Ok: = 26
Ok: = 31
Ok: = 36
Ok: = 27
Ok: = 20
Ok: = 41
Ok: = 24
Ok: = 26
Ok: = 26
Ok: = 26
Ok: = 40
Ok: = 40
Ok: = 16|''=25;;;; ''=30;;;; ''=25;;;; ''=25;;;; ''=28;;;; ''=29;;;; ''=29;;;; ''=28;;;; ''=24;;;; ''=40;;;; ''=40;;;; ''=26;;;; ''=27;;;; ''=27;;;; ''=26;;;; ''=31;;;; ''=36;;;; ''=27;;;; ''=20;;;; ''=41;;;; ''=24;;;; ''=26;;;; ''=26;;;; ''=26;;;; ''=40;;;; ''=40;;;; ''=16;;;;
If i try to use this with nagios, nagios report me an error like "(No output on stdout) stderr: /bin/sh: 1: Syntax error: Unterminated quoted string"
Some configuration data:
Used VmWare: HPE Customized Image ESXi 6.7.0 Update 1 version 670.U1.10.3.5
Used Linux as Nagios Server: Ubuntu 16.04.6 LTS
Perl version: perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
Nagios version: Nagios Core 4.2.0
Service configuration under Nagios:
define command{$USER1$ /check_vmware_esx.pl $ARG1$
command_name check_vmware_esx.pl
command_line
}
define service{
use external-service
host_name [striped]
service_description Temperature Check
check_command check_vmware_esx.pl!-H [cut] -u nagios -p [cut] -S, --select=runtime -s, --subselect=temp --multiline"
}
Note: other checks, like CPU check and Snapshots check works without problems.
The text was updated successfully, but these errors were encountered: