If you got a json output then it should be easy to stuff this into something like a database for nagios to read, or use perl as a html client to parse this for nagios.
Or go the Lua way, read json internally and have it read via a co-socket by nagios.
Or go the Lua way, read json internally and have it read via a co-socket by nagios.