patricegautier / unifiZabbix

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

CPU Utilization Preprocessing missing #46

Closed UntestedEngineer closed 2 years ago

UntestedEngineer commented 2 years ago

This is missing from one of the prior commits last year and as a result CPU Usage is not pulled. This also happens for switches not just AP and could be other Unifi devices.

JSONPath: $.['system-stats'].cpu

Without the Preprocessing the item can not be pulled

1228:20220604:222130.030 error reason for "Dining Room AP:cpu" changed: Preprocessing failed for: {"anon_id":"93958dea-7ca1-4f6f-872b-1f064c9b0edb","antenna_table":[{"default":true,"id":4,"name":... Result: NaN Failed: cannot extract value from json by path "$.['system-stats'].cpu": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'NaN'

UntestedEngineer commented 2 years ago

Sorry, closing this as I realized the preprocessing is there but for some reason when I imported the template it got removed some how.