patricegautier / unifiZabbix

Zabbix templates to monitor pretty much all Unifi devices
172 stars 35 forks source link

SERVER_DISCOVERY returns nothing #72

Closed RainCaster closed 1 year ago

RainCaster commented 1 year ago

This happens for me when clicking through the zabbix UI, and it also occurs when I run the mca-dump-short.sh script. -t SWITCH / AP / UCK / UNVR4 works -y SWITCH_FEATURE_DISCOVERY works too -t SWITCH_DISCOVERY returns nothing

zabbix is running on Ubuntu LTS 22.04 with consistent updates. My unifi network is managed by a UCKG2+ running 3.0.13 and Unifi Network is v7.3.76 The UNVR4 is running 3.0.13 with Protect v2.6.17

I have 5 switches all are running the latest FW. USW 16 Poe US 8 60W USW Flex Mini (these don't show up- which is normal)

patricegautier commented 1 year ago

try to run mca-dump-short with -vw see if anything pops out..

Also, anything interesting in the zabbix server logs?

also, is the Switch Port Discovery discovery rule item in the unsupported state on those switches? If so, what's the error show (go to hosts > find a switch > discovery rules

RainCaster commented 1 year ago

The Switch Port Discovery rule is enabled, as is POE Discovery and POE Discovery by Port. The Fan Discovery is "not supported" and the error says: [Preprocessing failed for: [{"power":true,"total_power_consumed_key_name":"total_power_consumed","max_power_key_name":"max_p...

  1. Result: [{"power":true,"total_power_consumed_key_name":"total_power_consumed","max_power_key_name":"max_p...
  2. Failed: cannot extract value from json by path "$[?(@.has_fan=="true")]": no data matches the specified path]
  3. Same status for Temperature Discovery, and similar message.
RainCaster commented 1 year ago

Server logs show a number of different entries about timeouts. All t5he ones for SWITCH_DISCOVERY and SWITCH_FEATURE_DISCOVERY simply say "Timeout while executing a shell script." The SWITCH entries occasionally will show "became not supported: Timeout while executing a shell script." or "became supported".

RainCaster commented 1 year ago

Running the script manually with -vw shows: ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o LogLevel=Error -o StrictHostKeyChecking=accept-new tomf@192.168.0.253 mca-dump | jq del (.port_table[].mac_table) Port replacement Program: /tmp/unifiSwitchDiscovery/switchPorts-192.168.0.253.jq jqProgramFile: /tmp/unifiSwitchDiscovery/switchPorts-192.168.0.253.jq

Of course, the .jq files are erased by the script if they ever existed.

patricegautier commented 1 year ago

The fan and temperature failures are expected, depending on the switch model. They don’t all report those values.

For timeout issues, can you try to raise the zabbix timeout to say 10s (Timeout=10 in /etc/zabbix_server.conf)

Also try: time ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o LogLevel=Error -o StrictHostKeyChecking=accept-new @. @.>

And see how long that takes

-P

On Nov 21, 2022, at 9:20 AM, Thomas Friend @.***> wrote:

Running the script manually with -vw shows: ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o LogLevel=Error -o StrictHostKeyChecking=accept-new @.*** mca-dump | jq del (.port_table[].mac_table) Port replacement Program: /tmp/unifiSwitchDiscovery/switchPorts-192.168.0.253.jq jqProgramFile: /tmp/unifiSwitchDiscovery/switchPorts-192.168.0.253.jq

Of course, the .jq files are erased by the script if they ever existed.

— Reply to this email directly, view it on GitHub https://github.com/patricegautier/unifiZabbix/issues/72#issuecomment-1322403296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFHTJ7TPMAKQJ52KU5APH3WJOVNPANCNFSM6AAAAAASE72GNQ. You are receiving this because you commented.

RainCaster commented 1 year ago

The script was taking about 3.7 to 4.8 sec to run. I changed the timeout to 10 in hopes of fixing the problems.

I have found several problems-

  1. My version of Ubuntu did not have the "expect" package installed by default. The fix is "sudo apt install expect"
  2. Once I took out the debug flags from my script, it is now sending me a nice big json file for SWITCH_DISCOVERY.
  3. This is using your new version of the mca-dump-short script.
patricegautier commented 1 year ago

The script was taking about 3.7 to 4.8 sec to run. I changed the timeout to 10 in hopes of fixing the problems.

Let me know if it does or not

My version of Ubuntu did not have the "expect" package installed by default. The fix is "sudo apt install expect” Updated the doc, thanks

The latest version (11-20-22 commit) of the mca-dump-short.sh file sends out a large amount of debug junk. It looks like there is a big problem with the script. -vw was way too verbose. Try the latest commit, with just -v

-P

On Nov 21, 2022, at 5:06 PM, Thomas Friend @.***> wrote:

The script was taking about 3.7 to 4.8 sec to run. I changed the timeout to 10 in hopes of fixing the problems.

I have found several problems-

My version of Ubuntu did not have the "expect" package installed by default. The fix is "sudo apt install expect" The latest version (11-20-22 commit) of the mca-dump-short.sh file sends out a large amount of debug junk. It looks like there is a big problem with the script. Here's some of it (the debug spew). Not all, but you will get the idea from this. ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o LogLevel=Error -o StrictHostKeyChecking=accept-new @. mca-dump | jq del (.port_table[].mac_table) spawn ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o LogLevel=Error -o StrictHostKeyChecking=accept-new -i /home/zabbix/.ssh/zabbix/zb_id_rsa @. expect version 5.45.4 argv[0] = /usr/bin/expect argv[1] = -d set argc 0 set argv0 "/usr/bin/expect" set argv "" executing commands from command file spawn ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o LogLevel=Error -o StrictHostKeyChecking=accept-new -i /home/zabbix/.ssh/zabbix/zb_id_rsa @.** parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {2064368} send: sending "\r" to { exp4 } expect: does "" (spawn_id exp4) match glob pattern ".#"? no

expect: does "\r\n" (spawn_id exp4) match glob pattern ".*#"? no

expect: does "\r\n\r\n" (spawn_id exp4) match glob pattern ".*#"? no

expect: does "\r\n\r\n\r\n\r\n" (spawn_id exp4) match glob pattern ".*#"? no BusyBox v1.23.2 (2022-09-02 09:46:32 UTC) built-in shell (ash)

expect: does "\r\n\r\n\r\n\r\nBusyBox v1.23.2 (2022-09-02 09:46:32 UTC) built-in shell (ash)\r\n\r\n" (spawn_id exp4) match glob pattern ".*#"? no

.._ | | | | ___/| | | / | || ) | | (c) 2010-2022 | | | | \ || \ | | Ubiquiti Inc. ||| /||/ || |_/ https://www.ui.com https://www.ui.com/ Welcome to UniFi US-8-60W! ***** NOTICE **

By logging in to, accessing, or using any Ubiquiti product, you are signifying that you have read our Terms of Service (ToS) and End User License Agreement (EULA), understand their terms, and agree to be fully bound to them. The use of SSH (Secure Shell) can potentially harm Ubiquiti devices and result in lost access to them and their data. By proceeding, you acknowledge that the use of SSH to modify device(s) outside of their normal operational scope, or in any manner inconsistent with the ToS or EULA, will permanently and irrevocably void any applicable warranty. * expect: does "\r\n\r\n\r\n\r\nBusyBox v1.23.2 (2022-09-02 09:46:32 UTC) built-in shell (ash)\r\n\r\n\r\n ..\r\n | | | |_ __/|\r\n | | / | || ) | | (c) 2010-2022\r\n | | | | \ || \ | | Ubiquiti Inc.\r\n ||| /||/ ||\r\n |/ https://www.ui.com\r\n\r\n https://www.ui.com%5Cr%5Cn%5Cr%5Cn Welcome to UniFi US-8-60W!\r\n\r\n* NOTICE \r\n By logging in to, accessing, or using any Ubiquiti product, you are \r\n signifying that you have read our Terms of Service (ToS) and End User \r\n License Agreement (EULA), understand their terms, and agree to be \r\n fully bound to them. The use of SSH (Secure Shell) can potentially \r\n harm Ubiquiti devices and result in lost access to them and their data. \r\n By proceeding, you acknowledge that the use of SSH to modify device(s) \r\n outside of their normal operational scope, or in any manner \r\n inconsistent with the ToS or EULA, will permanently and irrevocably \r\n void any applicable warranty. \r\n*****\r\n\r\n" (spawnid exp4) match glob pattern ".*#"? no GuestClosetSwitch-US.6.3.13# GuestClosetSwitch-US.6.3.13# expect: does "\r\n\r\n\r\n\r\nBusyBox v1.23.2 (2022-09-02 09:46:32 UTC) built-in shell (ash)\r\n\r\n\r\n _ ..\r\n | | | | /|\r\n | | / | || ) | | (c) 2010-2022\r\n | | | | \ || \ | | Ubiquiti Inc.\r\n ||| /||/ ||\r\n |/ https://www.ui.com\r\n\r\n https://www.ui.com%5Cr%5Cn%5Cr%5Cn Welcome to UniFi US-8-60W!\r\n\r\n* NOTICE \r\n By logging in to, accessing, or using any Ubiquiti product, you are \r\n signifying that you have read our Terms of Service (ToS) and End User \r\n License Agreement (EULA), understand their terms, and agree to be \r\n fully bound to them. The use of SSH (Secure Shell) can potentially \r\n harm Ubiquiti devices and result in lost access to them and their data. \r\n By proceeding, you acknowledge that the use of SSH to modify device(s) \r\n outside of their normal operational scope, or in any manner \r\n inconsistent with the ToS or EULA, will permanently and irrevocably \r\n void any applicable warranty. \r\n*****\r\n\r\nGuestClosetSwitch-US.6.3.13# \r\nGuestClosetSwitch-US.6.3.13# " (spawn_id exp4) match glob pattern ".*#"? yes expect: set expect_out(0,string) ".23.2 (2022-09-02 09:46:32 UTC) built-in shell (ash)\r\n\r\n\r\n ..\r\n | | | | /|\r\n | | / | || ) | | (c) 2010-2022\r\n | | | | \ || \ | | Ubiquiti Inc.\r\n ||| /||/ ||\r\n |/ https://www.ui.com\r\n\r\n https://www.ui.com%5Cr%5Cn%5Cr%5Cn Welcome to UniFi US-8-60W!\r\n\r\n* NOTICE \r\n By logging in to, accessing, or using any Ubiquiti product, you are \r\n signifying that you have read our Terms of Service (ToS) and End User \r\n License Agreement (EULA), understand their terms, and agree to be \r\n fully bound to them. The use of SSH (Secure Shell) can potentially \r\n harm Ubiquiti devices and result in lost access to them and their data. \r\n By proceeding, you acknowledge that the use of SSH to modify device(s) \r\n outside of their normal operational scope, or in any manner \r\n inconsistent with the ToS or EULA, will permanently and irrevocably \r\n void any applicable warranty. \r\n*****\r\n\r\nGuestClosetSwitch-US.6.3.13# \r\nGuestClosetSwitch-US.6.3.13#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r\n\r\n\r\n\r\nBusyBox v1.23.2 (2022-09-02 09:46:32 UTC) built-in shell (ash)\r\n\r\n\r\n ..\r\n | | | | /|\r\n | | / | || ) | | (c) 2010-2022\r\n | | | | \ || \ | | Ubiquiti Inc.\r\n ||| /||/ |_|\r\n |/https://www.ui.com\r\n\r\n https://www.ui.com%5Cr%5Cn%5Cr%5Cn Welcome to UniFi US-8-60W!\r\n\r\n* NOTICE \r\n By logging in to, accessing, or using any Ubiquiti product, you are \r\n signifying that you have read our Terms of Service (ToS) and End User \r\n License Agreement (EULA), understand their terms, and agree to be \r\n fully bound to them. The use of SSH (Secure Shell) can potentially \r\n harm Ubiquiti devices and result in lost access to them and their data. \r\n By proceeding, you acknowledge that the use of SSH to modify device(s) \r\n outside of their normal operational scope, or in any manner \r\n inconsistent with the ToS or EULA, will permanently and irrevocably \r\n void any applicable warranty. \r\n*****\r\n\r\nGuestClosetSwitch-US.6.3.13# \r\nGuestClosetSwitch-US.6.3.13#" send: sending "cat /etc/board.info | grep board.name | cut -d'=' -f2\r" to { exp4 }

expect: does " " (spawn_id exp4) match glob pattern ".\r\n"? no ca expect: does " ca" (spawn_id exp4) match glob pattern ".\r\n"? no t expect: does " cat" (spawn_id exp4) match glob pattern ".*\r\n"? no

expect: does " cat " (spawn_id exp4) match glob pattern ".\r\n"? no / expect: does " cat /" (spawn_id exp4) match glob pattern ".\r\n"? no e expect: does " cat /e" (spawn_id exp4) match glob pattern ".\r\n"? no t expect: does " cat /et" (spawn_id exp4) match glob pattern ".\r\n"? no c expect: does " cat /etc" (spawn_id exp4) match glob pattern ".\r\n"? no / expect: does " cat /etc/" (spawn_id exp4) match glob pattern ".\r\n"? no b expect: does " cat /etc/b" (spawn_id exp4) match glob pattern ".\r\n"? no o expect: does " cat /etc/bo" (spawn_id exp4) match glob pattern ".\r\n"? no ard.info | grep board.name | cut -d'=' -f2

expect: does " cat /etc/board.info | grep board.name | cut -d'=' -f2\r\n" (spawn_id exp4) match glob pattern ".\r\n"? yes expect: set expect_out(0,string) ".info | grep board.name | cut -d'=' -f2\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " cat /etc/board.info | grep board.name | cut -d'=' -f2\r\n" Gate keeper glob pattern for '. ' is '* '. Activating booster.

expect: does "" (spawn_id exp4) match glob pattern "USW-Flex-XG\r\n"? no "USW-Aggregation\r\n"? no "USW-Flex\r\n"? no ".\r\n"? Gate "\r\n"? gate=no US-8-60W

expect: does "US-8-60W\r\n" (spawn_id exp4) match glob pattern "USW-Flex-XG\r\n"? no "USW-Aggregation\r\n"? no "USW-Flex\r\n"? no ".\r\n"? Gate "\r\n"? gate=yes re=yes expect: set expect_out(0,string) "US-8-60W\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "US-8-60W\r\n" send: sending "telnet 127.0.0.1\r" to { exp4 }

expect: does "" (spawn_id exp4) match glob pattern "(UBNT) >"? no telnet 127.0.0.1

expect: does "telnet 127.0.0.1\r\n" (spawn_id exp4) match glob pattern "(UBNT) >"? no GuestClosetSwitch-US.6.3.13# telnet 127.0.0.1

expect: does "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n" (spawn_id exp4) match glob pattern "(UBNT) >"? no

Entering expect: does "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n\r\r\nEntering " (spawn_id exp4) match glob pattern "(UBNT) >"? no character mode Escape character is '^ expect: does "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n\r\r\nEntering character mode\r\r\nEscape character is '^" (spawn_id exp4) match glob pattern "(UBNT) >"? no ]'.

expect: does "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n\r\r\nEntering character mode\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "(UBNT) >"? no

expect: does "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n\r\r\nEntering character mode\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "(UBNT) >"? no Warning! The changes may break controller settings and only be effective until reboot.

(UBNT) > expect: does "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n\r\r\nEntering character mode\r\r\nEscape character is '^]'.\r\r\n\r\nWarning!\r\nThe changes may break controller settings and only be effective until reboot.\r\n\r\n(UBNT) >" (spawn_id exp4) match glob pattern "(UBNT) >"? yes expect: set expect_out(0,string) "(UBNT) >" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "telnet 127.0.0.1\r\nGuestClosetSwitch-US.6.3.13# telnet 127.0.0.1\r\n\r\r\nEntering character mode\r\r\nEscape character is '^]'.\r\r\n\r\nWarning!\r\nThe changes may break controller settings and only be effective until reboot.\r\n\r\n(UBNT) >" send: sending "enable\r" to { exp4 }

expect: does "" (spawn_id exp4) match glob pattern "(UBNT) #"? no e expect: does "e" (spawn_id exp4) match glob pattern "(UBNT) #"? no nable

(UBNT) # expect: does "enable\r\n\r\n(UBNT) #" (spawn_id exp4) match glob pattern "(UBNT) #"? yes expect: set expect_out(0,string) "(UBNT) #" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "enable\r\n\r\n(UBNT) #" send: sending "terminal length 0\r" to { exp4 }

expect: does "" (spawn_id exp4) match glob pattern "(UBNT) #"? no t expect: does "t" (spawn_id exp4) match glob pattern "(UBNT) #"? no erminal length 0

(UBNT) # expect: does "terminal length 0\r\n\r\n(UBNT) #" (spawn_id exp4) match glob pattern "(UBNT) #"? yes expect: set expect_out(0,string) "(UBNT) #" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "terminal length 0\r\n\r\n(UBNT) #" send: sending "show run\r" to { exp4 }

expect: does "" (spawn_id exp4) match glob pattern "(UBNT) #"? no s expect: does "s" (spawn_id exp4) match glob pattern "(UBNT) #"? no how run expect: does "show run" (spawn_id exp4) match glob pattern "(UBNT) #"? no

!Current Configuration: ! !System Description "US-8-60W, 6.3.13.14104, Linux 3.6.5" !System Software Version "6.3.13.14104" !System Up Time "13 days 4 hrs 51 mins 50 secs" !Additional Packages QOS,IPv6 Management ! network parms 192.168.0.253 255.255.255.0 192.168.0.1 vlan database exit

configure line console exit

line telnet exit

flowcontrol spanning-tree mst priority 0 24576 spanning-tree mode rstp snmp-server sysname "GuestClosetSwitch" ! snmp-server community "illuminosi" ro snmp-server community "private" rw ipaddress 127.0.0.1 no snmp-server community "public" set igmp reportforward lldp set mld reportforward lldp ip dhcp snooping ip dhcp snooping vlan 1 port-security keepalive

interface 0/1 description 'Garage Switch' vlan ingressfilter port-security max-dynamic 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp transmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med exit

interface 0/2 descri expect: does "show run\r\n\r\n!Current Configuration:\r\n!\r\n!System Description "US-8-60W, 6.3.13.14104, Linux 3.6.5"\r\n!System Software Version "6.3.13.14104"\r\n!System Up Time "13 days 4 hrs 51 mins 50 secs"\r\n!Additional Packages QOS,IPv6 Management\r\n!\r\nnetwork parms 192.168.0.253 255.255.255.0 192.168.0.1\r\nvlan database\r\nexit\r\n\r\nconfigure\r\nline console\r\nexit\r\n\r\nline telnet\r\nexit\r\n\r\nflowcontrol\r\nspanning-tree mst priority 0 24576\r\nspanning-tree mode rstp\r\nsnmp-server sysname "GuestClosetSwitch"\r\n!\r\nsnmp-server community "illuminosi" ro\r\nsnmp-server community "private" rw ipaddress 127.0.0.1\r\nno snmp-server community "public"\r\nset igmp reportforward lldp\r\nset mld reportforward lldp\r\nip dhcp snooping\r\nip dhcp snooping vlan 1\r\nport-security\r\nkeepalive\r\n\r\ninterface 0/1\r\ndescription 'Garage Switch'\r\nvlan ingressfilter\r\nport-security max-dynamic 0\r\nlldp transmit\r\nlldp receive\r\nlldp transmit-tlv port-desc\r\nlldp transmit-tlv sys-name\r\nlldp transmit-tlv sys-desc\r\nlldp transmit-tlv sys-cap\r\nlldp med\r\nexit\r\n\r\n\r\n\r\ninterface 0/2\r\ndescri" (spawn_id exp4) match glob pattern "(UBNT) #"? no ption '3rd Floor Switch' vlan ingressfilter port-security max-dynamic 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp transmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med exit

interface 0/3 description 'Sue_s Desktop' vlan ingressfilter port-security max-dynamic 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp transmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med exit

interface 0/4 description 'Hall Closet Switch' vlan ingressfilter port-security max-dynamic 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp transmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med exit

interface 0/5 description 'Alex_s BR' vlan ingressfilter port-security port-security max-dynamic 0 port-security mac-address 00:23:63:63:1A:3B 1 switchport protected 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp tr expect: does "show run\r\n\r\n!Current Configuration:\r\n!\r\n!System Description "US-8-60W, 6.3.13.14104, Linux 3.6.5"\r\n!System Software Version "6.3.13.14104"\r\n!System Up Time "13 days 4 hrs 51 mins 50 secs"\r\n!Additional Packages QOS,IPv6 Management\r\n!\r\nnetwork parms 192.168.0.253 255.255.255.0 192.168.0.1\r\nvlan database\r\nexit\r\n\r\nconfigure\r\nline console\r\nexit\r\n\r\nline telnet\r\nexit\r\n\r\nflowcontrol\r\nspanning-tree mst priority 0 24576\r\nspanning-tree mode rstp\r\nsnmp-server sysname "GuestClosetSwitch"\r\n!\r\nsnmp-server community "illuminosi" ro\r\nsnmp-server community "private" rw ipaddress 127.0.0.1\r\nno snmp-server community "public"\r\nset igmp reportforward lldp\r\nset mld reportforward lldp\r\nip dhcp snooping\r\nip dhcp snooping vlan 1\r\nport-security\r\nkeepalive\r\n\r\ninterface 0/1\r\ndescription 'Garage Switch'\r\nvlan ingressfilter\r\nport-security max-dynamic 0\r\nlldp transmit\r\nlldp receive\r\nlldp transmit-tlv port-desc\r\nlldp transmit-tlv sys-name\r\nlldp transmit-tlv sys-desc\r\nlldp transmit-tlv sys-cap\r\nlldp med\r\nexit\r\n\r\n\r\n\r\ninterface 0/2\r\ndescription '3rd Floor Switch'\r\nvlan ingressfilter\r\nport-security max-dynamic 0\r\nlldp transmit\r\nlldp receive\r\nlldp transmit-tlv port-desc\r\nlldp transmit-tlv sys-name\r\nlldp transmit-tlv sys-desc\r\nlldp transmit-tlv sys-cap\r\nlldp med\r\nexit\r\n\r\n\r\n\r\ninterface 0/3\r\ndescription 'Sue_s Desktop'\r\nvlan ingressfilter\r\nport-security max-dynamic 0\r\nlldp transmit\r\nlldp receive\r\nlldp transmit-tlv port-desc\r\nlldp transmit-tlv sys-name\r\nlldp transmit-tlv sys-desc\r\nlldp transmit-tlv sys-cap\r\nlldp med\r\nexit\r\n\r\n\r\n\r\ninterface 0/4\r\ndescription 'Hall Closet Switch'\r\nvlan ingressfilter\r\nport-security max-dynamic 0\r\nlldp transmit\r\nlldp receive\r\nlldp transmit-tlv port-desc\r\nlldp transmit-tlv sys-name\r\nlldp transmit-tlv sys-desc\r\nlldp transmit-tlv sys-cap\r\nlldp med\r\nexit\r\n\r\n\r\n\r\ninterface 0/5\r\ndescription 'Alex_s BR'\r\nvlan ingressfilter\r\nport-security\r\nport-security max-dynamic 0\r\nport-security mac-address 00:23:63:63:1A:3B 1\r\nswitchport protected 0\r\nlldp transmit\r\nlldp receive\r\nlldp transmit-tlv port-desc\r\nlldp transmit-tlv sys-name\r\nlldp tr" (spawn_id exp4) match glob pattern "(UBNT) #"? no ansmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med lldp med transmit-tlv ex-pse exit

interface 0/6 description 'Guest BR' vlan ingressfilter port-security max-dynamic 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp transmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med lldp med transmit-tlv ex-pse exit

interface 0/7 description '2nd Floor WiFi' vlan ingressfilter port-security max-dynamic 0 lldp transmit lldp receive lldp transmit-tlv port-desc lldp transmit-tlv sys-name lldp transmit-tlv sys-desc lldp transmit-tlv sys-cap lldp med lldp med transmit-tlv ex-pse exit

— Reply to this email directly, view it on GitHub https://github.com/patricegautier/unifiZabbix/issues/72#issuecomment-1322863411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFHTJ5KGFVQMP3QVV36OZTWJQMAPANCNFSM6AAAAAASE72GNQ. You are receiving this because you commented.

patricegautier commented 1 year ago

Wait I just saw that you are now getting correct json.. so I think that closes the issue