dpiquet / pve-monitor

pve-monitor is a tool to monitor hypervisor and virtual machines in a proxmox cluster
37 stars 24 forks source link

Deep recursion on subroutine "Net::Proxmox::VE::Nodes::nodes" #14

Closed AlexH-HankIT closed 10 years ago

AlexH-HankIT commented 10 years ago

Hello,

i have a problem with your script:

pve-monitor.conf looks like this:

node kvm {
    address 192.168.1.30
    port 8006
    monitor_account root
    monitor_password pass
    realm pam
    mem 80 90
    cpu 80 95
    disk 80 90
}

qemu Debian {
    mem 80 90
    cpu 80 95
    disk 80 90
}

storage local {
    disk 80 90
    node pyrit
}

I get the following output:

#./pve-monitor.pl --debug --singlenode --qemu --conf pve-monitor.conf
Loaded node kvm
Trying 192.168.1.30...
DEBUG: login successful
DEBUG: successful request: GET https://192.168.1.30:8006/api2/json/version
User-Agent: libwww-perl/6.04
Cookie: PVEAuthCookie=PVE:root@pam:5439783B::BnGPXDopM2ysaUXV+Nllq6zsvqYXVvx/IAOXN63qMsaBJMkOEr2oWB3YMnjWLXVqNaGLo+cuc397Qqq2h7TFcPjoXPAdP9MsBzC8WS/wDFKQ4WDg+8XgrR3CNNZ6yEf6zd6CwpLpJTOCjLlapdTs3dBlTUW8eNxWESO4Xj7uD4i/2EaCKH75ANkMZd1ypMf3TiS0JcB3odWhFz81doWF700lLmSRAdphJewjcdI9tVkGA4n6rdppvPbApUYFOlC9Ok9z1wdu/ZIR4lDYNuEB1uzWVjX9WHvlA8KgQsaMelIRAelGBj1d1dKEE1ThmVTs+nV3sBEFet9misXsRfYRgg==

Successfully connected to 192.168.1.30 !
Skipping cluster checks (--singlenode passed to command line)
Deep recursion on subroutine "Net::Proxmox::VE::get" at /usr/local/share/perl/5.20.1/Net/Proxmox/VE/Nodes.pm line 26.
Deep recursion on subroutine "Net::Proxmox::VE::Nodes::nodes" at /usr/local/share/perl/5.20.1/Net/Proxmox/VE.pm line 284.
Getötet

PVE Manager version 3.3-2/995e687e Kernelversion Linux 2.6.32-33-pve

The server has 512 mb ram, normally 100 mb is used. If i execute the script it fills all the ram until it gets killed. I don't think this is normal behaviour. Can you please take a look? Thanks :)

AlexH-HankIT commented 10 years ago

Sorry i bothered you... read first then ask.