Not sure if this is useful to anyone else but I've implemented Implemented three new SCGI actions that return JSON. I use it to control my hosts via some proprietary software that interprets JSON.
- ?action="">
If host is not specified we return JSON object of the BackupPC
%Status hash. If host equals "server" we return the BackupPC
%Info hash. If host equals a valid backup host, we return
the BackupPC $Status{$host}.