Open Flighteven opened 2 months ago
can you show us the result of this query ?
telnet
Regards,
HI,
Telnet test is returning every informations about the node :
root@l-librenms:/home# telnet 192.168.4.4 6556 > debug-proxmox.txt
Connection closed by foreign host.
root@l-librenms:/home# more debug-proxmox.txt
Trying 192.168.4.4...
Connected to 192.168.4.4.
Escape character is '^]'.
<<-+- policy='round-robin 0' prio=0 status=active |- 15:0:0:1 sdc 8:32 active undef running
- 16:0:0:1 sdg 8:96 active undef running
LUN-Stockage-VM-Infrastructure (36001405e1f1e617dd6b9d4b33db1e5dc) dm-5 SYNOLOGY,Storage
size=1000G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
-+- policy='round-robin 0' prio=0 status=active |- 14:0:0:1 sdb 8:16 active undef running
- 13:0:0:1 sde 8:64 active undef running
LUN-Stockage-VM-Medical (36001405e5b16888d586cd4b5dd8561d7) dm-6 SYNOLOGY,Storage
size=2.9T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
-+- policy='round-robin 0' prio=0 status=active |- 11:0:0:1 sdd 8:48 active undef running
- 12:0:0:1 sdf 8:80 active undef running
<<
Thanks you for your help
Sam
Hi ShonenNoSeishin,
I have implemented your fix:
Inside /opt/librenms/includes/html/pages/device/apps/proxmox.inc.php
The include was already there, but i have changed the foreach (proxmox_node_vms(Request::get('device')) as $nvm) { with. foreach (proxmox_node_vms($device["device_id"]) as $nvm) {
Now inside the device page i can see the VM traffic.
Inside /opt/librenms/includes/html/pages/apps/proxmox/vm.inc.php The include was not there but i have changed the $vm = proxmox_vm_info(Request::get('vmid'), Request::get('instance')); with $vm = proxmox_vm_info($vars['vmid'], $vars['instance']);
Now inside the Apps/Proxmox/Cluster/VM i can see the traffic graph for the specific vm.
On the Apps/Overview There is no graphs for the Proxmox app and i still have the following error : application*proxmox Graph template missing.
And finally on the Apps/Proxmox/Cluster, the name of the cluster is empty on the VM page :
Have you the same problem on your side ?
Thanks you for your help
Sam
Hi, i'm glad that my solutions helped you :)
about the applications --> overview, i've also the "error" like this :
however, if i click on the proxmox cluster you see on the screen, i get the whole traffic like this :
I'm currently try to add a new table on the database to add more informations about PVE VMs and it currently seems to be ok. The only thing that don't work is that the new database entries aren't considered in the alerting tab (i can't create rules about the new metrics about the new db table...). When my solution will be ok, i will create a github repo concerning this :)
Please follow my issue like you did before and I will post my github repo in several days (I hope). Here is my profile https://github.com/ShonenNoSeishin/
Regards,
Hi, here is the addon I've worked in and how implement it :) https://github.com/ShonenNoSeishin/LibrenMS-Proxmox-Ceph_Addon
The problem
Hi,
I have installed the mk agent on our promox cluster nodes to get the guest traffic graphs on librenms. I can see from librenms the cluster name, the guest running of the node, but when i click on a specific VM i have an empty page. Same thing from the node page inside the app tab, i have the cluster name but an empty page , no graphs.
If i'm looking on the App tap and overview , i can see my promox node with the following error : application*proxmox Graph template missing.
RRD is generated, and i can see the file inside /opt/librenms/proxmox/CLUSTERNAME.
If i'm looking inside a poller debug, i can see the RRD update process:
SQL[UPDATE
proxmox_ports
setlast_seen
=NOW() WHEREvm_id
= ? ANDport
= ? [6,"net0"] 0.36ms]Proxmox (CLUSTER-INF-BD): W-APP-5.benichou-dentiste.local: 16847122679/44011552168/net0 RRD[update /opt/librenms/rrd/proxmox/CLUSTER-INF-BD/19216838_netif_net0.rrd N:16847122679:44011552168] RRDtool Output: OK u:0.01 s:0.01 r:3.19 SQL[SELECT id FROM proxmox WHERE vmid = ? AND cluster = ? ["19216838","CLUSTER-INF-BD"] 0.18ms]
SQL[UPDATE
proxmox
setdevice_id
=?,last_seen
=NOW(),description
=? WHEREvmid
= ? ANDcluster
= ? [27,"W-APP-5.benichou-dentiste.local","19216838","CLUSTER-INF-BD"] 0.4ms]SQL[SELECT pmp.id FROM proxmox_ports pmp, proxmox pm WHERE pm.id = pmp.vm_id AND pmp.port = ? AND pm.cluster = ? AND pm.vmid = ? ["net0","CLUSTER-INF-BD","19216838"] 0.19ms]
SQL[UPDATE
proxmox_ports
setlast_seen
=NOW() WHEREvm_id
= ? ANDport
= ? [7,"net0"] 0.36ms]Proxmox (CLUSTER-INF-BD): l-librenms.benichou-dentiste.local: 1794447703/757337614/net0 RRD[update /opt/librenms/rrd/proxmox/CLUSTER-INF-BD/1683100_netif_net0.rrd N:1794447703:757337614] RRDtool Output: OK u:0.01 s:0.01 r:3.20 SQL[SELECT id FROM proxmox WHERE vmid = ? AND cluster = ? ["1683100","CLUSTER-INF-BD"] 0.16ms]
SQL[UPDATE
proxmox
setdevice_id
=?,last_seen
=NOW(),description
=? WHEREvmid
= ? ANDcluster
= ? [27,"l-librenms.benichou-dentiste.local","1683100","CLUSTER-INF-BD"] 0.37ms]SQL[SELECT pmp.id FROM proxmox_ports pmp, proxmox pm WHERE pm.id = pmp.vm_id AND pmp.port = ? AND pm.cluster = ? AND pm.vmid = ? ["net0","CLUSTER-INF-BD","1683100"] 0.17ms]
SQL[UPDATE
proxmox_ports
setlast_seen
=NOW() WHEREvm_id
= ? ANDport
= ? [8,"net0"] 0.49ms]Proxmox (CLUSTER-INF-BD): l-smtp-relay.benichou-dentiste.local: 44385593/823421/net0 RRD[update /opt/librenms/rrd/proxmox/CLUSTER-INF-BD/192168331_netif_net0.rrd N:44385593:823421] RRDtool Output: OK u:0.01 s:0.01 r:3.20 SQL[SELECT id FROM proxmox WHERE vmid = ? AND cluster = ? ["192168331","CLUSTER-INF-BD"] 0.19ms]
So what's the problem ?
Thanks for you help
Sam
Output of ./validate.php
What was the last working version of LibreNMS?
No response
Anything in the logs that might be useful for us?
No response