Proxmox error "401 No ticket"
Hello.
I have tried to add Proxmox monitoring, but no data was gathered.
I've done a lot of debugging, and noticed, that in the first step auth ticket is gathered without problem, but later no PVEAuthCookie were sent, so all next Proxmox API queries returned "401 No ticket".
So I have to make the dirty workaround:
$ diff /home/lpar2rrd/install/lpar2rrd-7.20/dist/bin/Proxmox.pm /home/lpar2rrd/lpar2rrd/bin/Proxmox.pm
229c229
< my $req = HTTP::Request->new( 'GET', $self->{protocol}."://".$url );
---
> my $req = HTTP::Request->new( 'GET', $self->{protocol}."://".$url, HTTP::Headers->new('Cookie'=> 'PVEAuthCookie='.$self->{ticket} ));
Maybe you have some ideas as, why It doesn't work without this workaround? Why the cookie jar is not sending?
Comments
-
Hi,
please send LWP version:. /home/lpar2rrd/lpar2rrd/etc/lpar2rrd.cfg
$PERL -MLWP -e 'use LWP::Protocol::https; print "LWP Version: $LWP::VERSION\n"'
-
Hi Matej.The result is:LWP Version: 6.39
-
Hi,
I apologize for the later response. The LWP version should be fine. Please be patient, I will try it in another environment.
Are you connecting to the default port 8006?
-
Hi, Matej.Yes, we're using the default port 8006.
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle