Ad Widget

Collapse

Proxmox 8 Zabbix 6.4 HTTP Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AndyMarden
    Junior Member
    • Nov 2023
    • 3

    #1

    Proxmox 8 Zabbix 6.4 HTTP Template

    I seem to have got this working - to a point.

    Raw data comes back from Proxmox with all the lxcs and vms showing up as tags.

    Discovery outside this with ICMP Ping with an auto-create host rule works.

    But I do not get my proxmox lxcs and vms appearing as hosts.

    I notice that there are no host prototypes under this template - is that is what is needed and does the template, by design not auto-create hosts for proxmox guests?
  • AndyMarden
    Junior Member
    • Nov 2023
    • 3

    #2
    On further investigation it seems that this Proxmox HTTP template only access the /json/cluster/resources part of the API. So while you get basic resource usage of the containers and vms you don't get any configuration information about them - probably why there are no host prototypes. But there is a /nodes/{node} which has all of this stuff under it:

    {"data":[{"name":"aplinfo"},{"name":"apt"},{"name":"capabil ities"},{"name":"ceph"},{"name":"certificates"},{" name":"config"},{"name":"disks"},{"name":"dns"},{" name":"firewall"},{"name":"hardware"},{"name":"hos ts"},{"name":"journal"},{"name":"lxc"},{"name":"mi grateall"},{"name":"netstat"},{"name":"network"},{ "name":"qemu"},{"name":"query-url-metadata"},{"name":"replication"},{"name":"report" },{"name":"rrd"},{"name":"rrddata"},{"name":"scan" },{"name":"services"},{"name":"spiceshell"},{"name ":"startall"},{"name":"status"},{"name":"stopall"} ,{"name":"storage"},{"name":"subscription"},{"name ":"syslog"},{"name":"tasks"},{"name":"termproxy"}, {"name":"time"},{"name":"version"},{"name":"vncshe ll"},{"name":"vzdump"},{"name":"wakeonlan"}]}

    which gives you shedloads of stuff under each vm/container.

    I will have a go at configuring this myself to actually create hosts etc and then maybe create the template to do a pull request or whatever on the git repo yaml file.

    Quite misleading that this template is current presented as "effortless" when it doesnt even create hosts in zabbix. But it's a great start and I should be able to wrap the other stuff around it.

    Comment

    • AndyMarden
      Junior Member
      • Nov 2023
      • 3

      #3
      Ah - I see this repo which looks more comprehensive that the official template so have asked the question: https://github.com/mverboom/zabbix-pve-api/issues/16

      Comment

      Working...