patricegautier / unifiZabbix

Zabbix templates to monitor pretty much all Unifi devices
184 stars 36 forks source link

Preprocessing Failed #28

Closed BennyDaBee closed 2 years ago

BennyDaBee commented 2 years ago

Tried setting this up today, and I keep receiving an error on a bunch of the data points. I attached a picture below of what the error is. I have not a clue of where to start with this.

image

patricegautier commented 2 years ago

What's the value in your {$UNIFI_SSH_PRIV_KEY_PATH} , {$UNIFI_PRIV_KEY} and {$UNIFI_PUB_KEY} macros?

Administration > General > Macros?

See the readme for values..

BennyDaBee commented 2 years ago

see below

373503EB-A442-405B-8C5F-D7C16046FD6F

patricegautier commented 2 years ago

looks reasonable.. it does look to me there is a macro value missing somewhere.

anything interesting in the zabbix logs, usually at /var/log/zabbix, unless you are in a container

BennyDaBee commented 2 years ago

Just filled with these.

1. Failed: cannot extract value from json by path "$.radio_table[?(@.athstats.cu_total >0)]": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'Could not create directory '/var/lib/zabbix//.ssh'. {"anon_id":"ff41d157-c8af-4fa9-8c8f-d84720f57fec","antenna_table":[{"default":true,"id":4,"name":" 1289:20220203:200048.779 item "UniFi nanoHD:memory" became not supported: Cannot evaluate function: not enough data at "last(//mem_used) / last(//mem_total)". 1289:20220203:200048.779 item "UniFi nanoHD:cpu" became not supported: Preprocessing failed for: Could not create directory '/var/lib/zabbix//.ssh'...{"anon_id":"ff41d157-c8af-4fa9-8c8f-d84720f5...

BennyDaBee commented 2 years ago

Fixed this just by creating the missing directory in /var/lib. As soon as I did that all errors cleared.

patricegautier commented 2 years ago

Great!