MassimilianoPasquini97 / zbx_unifi_network

Zabbix Template for Unifi Network
MIT License
58 stars 10 forks source link

[BUG] Title #43

Closed misteradamx closed 2 weeks ago

misteradamx commented 2 weeks ago

Checklist

Describe the Bug

Getting the following error: ` Preprocessing failed for: {"header":{"HTTP/2 200":"","server":"nginx","date":"Fri, 01 Nov 2024 05:32:34 GMT","content-type"...

  1. Failed: cannot perform regular expression "$TOKENISHERE=([^;]+);" match for value of type "none": pattern does not match `

I used curl -k -X POST --data '{"username": "root", "password": "$password"}' --header 'Content-Type: application/json' -c cookie.txt https://192.168.1.1:443/api/auth/login to get the Token. Is there a better method?

MACROS

firefox_OnLU9zwmyD

Context

MassimilianoPasquini97 commented 2 weeks ago

From documentation.

{$UNIFI.API.AUTH.TOKEN}: change to unifises if using unifi controller vm

misteradamx commented 1 week ago

That explicitly says "unifi controller vm", I am not using a VM, I am using a UDM SE.

Preprocessing failed for: {"header":{"HTTP/2 200":"","server":"nginx","date":"Tue, 05 Nov 2024 04:07:06 GMT","content-type"...
1. Failed: cannot perform regular expression "unifises=([^;]+);" match for value of type "none": pattern does not match