So I am trying to get the apparently problematic Zabbix plugin to work with Proxmox.
In doing so, I am trying to verify that the API on Proxmox will respond to a basic query, but getting errors whenever I try. What am I missing?
Here is what I'm doing:
user@linux-ubuntu:~$ curl --insecure -H "Authorization: PVEAPIToken=zabbix@pve\!zabbix=<<token id redacted>>" 'https://<<proxmox server redacted>>:8006/api2/json/'
And the error message:
curl: (56) OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0
I have configured the zabbix user with key:
In doing so, I am trying to verify that the API on Proxmox will respond to a basic query, but getting errors whenever I try. What am I missing?
Here is what I'm doing:
user@linux-ubuntu:~$ curl --insecure -H "Authorization: PVEAPIToken=zabbix@pve\!zabbix=<<token id redacted>>" 'https://<<proxmox server redacted>>:8006/api2/json/'
And the error message:
curl: (56) OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0
I have configured the zabbix user with key:
Code:
root@proxmox:~# pveum user list
┌────────────┬─────────┬─────────────────┬────────┬────────┬───────────┬────────┬────────┬──────────┬────────────┬──────────────────┬────────┬─────────────┐
│ userid │ comment │ email │ enable │ expire │ firstname │ groups │ keys │ lastname │ realm-type │ tfa-locked-until │ tokens │ totp-locked │
╞════════════╪═════════╪═════════════════╪════════╪════════╪═══════════╪════════╪════════╪══════════╪════════════╪══════════════════╪════════╪═════════════╡
│ root@pam │ │ <<redacted>> │ 1 │ 0 │ │ │ │ │ pam │ │ │ │
├────────────┼─────────┼─────────────────┼────────┼────────┼───────────┼────────┼────────┼──────────┼────────────┼──────────────────┼────────┼─────────────┤
│ zabbix@pam │ │ │ 1 │ 0 │ │ │ zabbix │ │ pam │ │ │ │
└────────────┴─────────┴─────────────────┴────────┴────────┴───────────┴────────┴────────┴──────────┴────────────┴──────────────────┴────────┴─────────────┘
root@proxmox:~# pveum user token list zabbix@pam
┌─────────┬─────────┬────────┬─────────┐
│ tokenid │ comment │ expire │ privsep │
╞═════════╪═════════╪════════╪═════════╡
│ zabbix │ │ 0 │ 0 │
└─────────┴─────────┴────────┴─────────┘
Code:
root@proxmox:~# pveum user token permissions zabbix@pam zabbix
┌──────────┬─────────────────┐
│ ACL path │ Permissions │
╞══════════╪═════════════════╡
│ / │ Datastore.Audit │
│ │ Mapping.Audit │
│ │ Pool.Audit │
│ │ SDN.Audit │
│ │ Sys.Audit │
│ │ VM.Audit │
└──────────┴─────────────────┘
Permissions marked with '(*)' have the 'propagate' flag set.