patricegautier / unifiZabbix

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

Number of clients for APs? #75

Closed hellojoe88 closed 1 year ago

hellojoe88 commented 1 year ago

Hello,

I greatly appreciate this template and I am happy to finally have this to monitor our APs. I am currently struggeling with wifi throughput so this will greatly help me identify potential problems.

It would be amazing to have the number of clients to know if this might be a potential issue (e.g. too many clients causing to much traffic):

grafik

In the controller I can only look up the current number of clients, not the history of it, which would be simply amazing to have.

patricegautier commented 1 year ago

Try this latest commit on for size..

hellojoe88 commented 1 year ago

Thank you so much, this is much appreciated! Especially since you have done it so fast.

I tested it and got this error:

`Preprocessing failed for: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b.Usage /usr/lib/zabbix/exte...

  1. Result: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b.Usage /usr/lib/zabbix/exte...
  2. Failed: cannot extract value from json by path "$.sys_stats.mem_total": invalid object format, expected opening character '{' or '[' at: '/usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b Usage /usr/lib/zabbix/externalscripts/mca-dump-short.sh -i privateKeyPath -p -u user -v -d target`

Any idea why? I updated the templated yaml file and the mca-short script on my zabbix server.

patricegautier commented 1 year ago

Did you install the updated mca-dump-short in the right spot(s)?Sent from my iPadOn Jan 10, 2023, at 9:41 AM, Johannes Pfeifer @.***> wrote: Thank you so much, this is much appreciated! Especially since you have done it so fast. I tested it and got this error: `Preprocessing failed for: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b.Usage /usr/lib/zabbix/exte...

Result: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b.Usage /usr/lib/zabbix/exte... Failed: cannot extract value from json by path "$.sys_stats.mem_total": invalid object format, expected opening character '{' or '[' at: '/usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b Usage /usr/lib/zabbix/externalscripts/mca-dump-short.sh -i privateKeyPath -p -u user -v -d target`

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

hellojoe88 commented 1 year ago

Yes. I mapped my docker container to an external folder and copied the new script to it. Am 10.01.2023 19:36 schrieb Patrice @.***>:

Did you install the updated mca-dump-short in the right spot(s)?Sent from my iPadOn Jan 10, 2023, at 9:41 AM, Johannes Pfeifer @.***> wrote:

Thank you so much, this is much appreciated! Especially since you have done it so fast.

I tested it and got this error:

`Preprocessing failed for: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b.Usage /usr/lib/zabbix/exte...

Result: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b.Usage /usr/lib/zabbix/exte...

Failed: cannot extract value from json by path "$.sys_stats.mem_total": invalid object format, expected opening character '{' or '[' at: '/usr/lib/zabbix/externalscripts/mca-dump-short.sh: illegal option -- b

Usage /usr/lib/zabbix/externalscripts/mca-dump-short.sh -i privateKeyPath -p -u user -v -d target`

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

patricegautier commented 1 year ago

Apologies I hadn't committed the correct mac-dump script to the right spot.. Please update and let me know..

hellojoe88 commented 1 year ago

That fixed the problem for me. Now the client count is being monitored by zabbix. Amazing! Thank you so much.