Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-3593

proxmox-qemu (agent) pvesh not showing guests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not A Bug
    • Minor
    • None
    • Community Edition
    • Unix Agent
    • None
    • ubuntu 20.04 (virtualized, home setup)
      proxmox ve 6.3 (debian)

    Description

      greetings

      managed to get the unix-agent running on a proxmox box but the "proxmox-qemu" agent when called manually does show me details on the VMs, in observium it doesn't show any.

      can I help troubleshoot this?

      how do I debug/get verbose the agent?

       

       

      root@pve:/usr/lib/observium_agent/scripts-available# cat proxmox-qemu
      #!/bin/bash

      # Proxmox VE virtual machine listing
      # (c) 2015-2019, Tom Laermans for Observium

      PVESH=`which pvesh`
      if [ $? -eq 0 ]
      then
      {{ echo "<<<proxmox-qemu>>>"}}

      VERSION=$(pveversion | awk -F/ '{print $2}' | sed 's/\..*//')
      {{ if [[ ${VERSION} -ge 5 ]]}}
      {{ then}}
      {{ pvesh get /nodes/$(hostname)/qemu --output-format=json-pretty 2>/dev/null}}
      {{ else}}
      {{ pvesh get /nodes/$(hostname)/qemu 2>/dev/null}}
      {{ fi}}
      fi
      {{}}

      root@pve:/usr/lib/observium_agent/scripts-available# which pvesh
      /usr/bin/pvesh

      root@pve:/usr/lib/observium_agent/scripts-available# pvesh get /nodes/pve/qemu
      ┌─────────┬──────┬──────┬──────┬───────────┬──────────┬───────────┬───────┬───────────┬──────┬──────────────────┐
      │ status │ vmid │ cpus │ lock │ maxdisk │ maxmem │ name │ pid │ qmpstatus │ tags │ uptime │
      ╞═════════╪══════╪══════╪══════╪═══════════╪══════════╪═══════════╪═══════╪═══════════╪══════╪══════════════════╡
      │ running │ 103 │ 1 │ │ 32.00 GiB │ 2.00 GiB │ observium │ 29917 │ │ │ 6h 15m 19s │
      ├─────────┼──────┼──────┼──────┼───────────┼──────────┼───────────┼───────┼───────────┼──────┼──────────────────┤
      │ running │ 100 │ 2 │ │ 64.00 GiB │ 2.00 GiB │ plex │ 26149 │ │ │ 1w 1d 3h 22m 10s │
      ├─────────┼──────┼──────┼──────┼───────────┼──────────┼───────────┼───────┼───────────┼──────┼──────────────────┤
      │ running │ 102 │ 2 │ │ 5.00 GiB │ 2.00 GiB │ vyos │ 9263 │ │ │ 1w 1d 9h 24m 25s │
      ├─────────┼──────┼──────┼──────┼───────────┼──────────┼───────────┼───────┼───────────┼──────┼──────────────────┤
      │ running │ 101 │ 1 │ │ 15.00 GiB │ 2.00 GiB │ nextcloud │ 30959 │ │ │ 1w 1d 3h 20m 8s │
      └─────────┴──────┴──────┴──────┴───────────┴──────────┴───────────┴───────┴───────────┴──────┴──────────────────┘
      root@pve

       

       

      Attachments

        Activity

          People

            sid3windr Tom Laermans
            AndreasR Andreas Rüdel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: