-
Notifications
You must be signed in to change notification settings - Fork 24
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
Can't use an undefined value as a HASH reference #11
Comments
Hi, I would need more info to help you. Options used? Configuration file ? |
HI, I execute the script with this command line : ./pve-monitor.pl --nodes --singlenode --conf /root/pve-monitor-master/pve-monitor.conf here is the kind of configuration file i use : node col-srv-vm-01 { I've installed the script directly on a Proxmox that use Perl version 5.14 and it work good but no luck on CentOS 5 with 5.8.8. |
Hi same issue here on CentOS 5.11 (for all parameters, not only storages): rpm -qa | grep perl (had to add sub for DELETE and export definition by hand to HTTP::Request::Common, since my version didn't implement it yet :/ ) cat /etc/nagios/pve-monitor.conf openvz example { qemu msvm { storage local { Subroutine from VE.pm with marked line 367:
|
Hi, Thanks for this well detailed bug report. I will need to install a test setup with that configuration so i can reproduce the bug and fix it. I'm quite busy right now but i will take a look at this asap and update this bug report. If you find a fix for this problem feel free to explain it here or even better, create a pull request. I think the problem is not directly caused by the pve-monitor code itself but by the underlying proxmox-ve-api-perl lib. |
Hi sadly, my pearl skills are too rusty to play with the code, but I'm pretty sure, that it is because of some incompatibility between perl version and Proxmox api - CentOS 5.11 is quite old and it has Perl 5.8.8 from Feb 2006 (HTTP::Request::Common.pm had info that it's from 2004), so I'm not sure if that is a point in trying to backport it now :) |
Well I don't think it's the case. Currently the code dies at argument parsing. Of course it's not excluded that i'll have problems with the rest of the code but as PVE provides JSON data, i don't think the Perl version we use locally can prevent from reading the data. I'll know more when i'll actually test the code in the same conditions to see if i can harden code or if I have to give up on it. |
I tried to use the plugin directly from the shell on a CentOS 5 server and i got the following message.
Can't use an undefined value as a HASH reference at /usr/lib/perl5/5.8.8/Net/Proxmox/VE.pm line 367.
The text was updated successfully, but these errors were encountered: