librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
117 stars 188 forks source link

add lnms_return_optimizer #417

Closed VVelox closed 2 years ago

VVelox commented 2 years ago

For use with json_app_get. Will gzip it and then convert base64 so it can be transmitted via SNMP.

It will then check to see what is larger, the results or the original and print the smaller one. For larger JSON items it tends to be a third of the original in general.