patricegautier / unifiZabbix

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

Unknown device Type: USG #36

Closed LiamColeUM closed 2 years ago

LiamColeUM commented 2 years ago

Hope I'm just being stupid.

When I run the mca dump from Zabbix I get "Unknown device Type: USG". However when I run the command directly from the terminal all seems to work fine.

I'm using the following for the MCA Dump key " mca-dump-short.sh[ "-d", "{HOST.CONN}", "-p", "/home/administrator/Documents/key.txt ","-u", "{$UNIFI_USER}", "-t", "USG"] "

Cheers,

Liam

patricegautier commented 2 years ago

in key.txt is it a private key or a password?

either way shouldn't cause the unknown type problem though..

patricegautier commented 2 years ago

Reading the code I don't see how you can get this unknown type problem.. Is there a hidden character in the key definition?

LiamColeUM commented 2 years ago

the key.txt is a password file. I've tried every variation I can think of in the key within Zabbix as this seems to be where the error is being thrown from.

patricegautier commented 2 years ago

Trying to clean up.. Is this still an issue?

LiamColeUM commented 2 years ago

All good now, thanks :)

On Mon, 3 Oct 2022 at 04:22, Patrice @.***> wrote:

Trying to clean up.. Is this still an issue?

— Reply to this email directly, view it on GitHub https://github.com/patricegautier/unifiZabbix/issues/36#issuecomment-1264882048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVNLVDYUVHWQXBS5LOFKOODWBJGQXANCNFSM5UKY25LA . You are receiving this because you authored the thread.Message ID: @.***>

patricegautier commented 2 years ago

ok!