HTTP API Error 596

decibel83

Renowned Member
Oct 15, 2008
210
1
83
Hi,

I implemented the check_pve script from https://github.com/nbuchwitz/check_pve to have Proxmox monitored from my Icinga2 instance.

Some checks run good, some others receives HTTP error code 596:

Code:
root@node01:~/check_pve-1.1.3# ./check_pve.py -e node1 -u icinga2@pve -p password -k -m storage --name local --node node1
UNKNOWN - Could not fetch data from API: HTTP error code was 596

In the syslog of the Proxmox node I see these errors:

Code:
Feb 12 09:33:01 node01 pvedaemon[3674]: <root@pam> successful auth for user 'icinga2@pve'
Feb 12 09:33:01 node01 pveproxy[25551]: '/etc/pve/nodes/node1/pve-ssl.pem' does not exist!#012
Feb 12 09:33:01 node01 pveproxy[25551]: Could not verify remote node certificate '0F:56:12:FC:9A:6E:40:1B:A0:86:92:9D:94:FE:C3:91:6E:34:35:21:9E:84:F7:57:54:25:09:E0:6F:FC:64:03' with list of pinned certificates, refreshing cache

I've already tried to update certificates with
Code:
pvecm updatecerts -f
but it did not help.

Could you help me please?
Thank you very much!
 
A quick guess - did you at some point change your hostname from node1 to node01?

in any case - please verify that:
* /etc/hostname
* /etc/hosts
contain the correct data (i.e. hostname contains your node's short hostname, /etc/hosts has an entry which points your short hostname to an IP configured on the system) - also make sure that ping -c 1 $(uname -n) works successfully.

If you made any changes it would be the easiest to simply reboot to get everything into a consistent state

I hope this helps!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!