Update: Cleaned up the code once yore pointed me to the json_decode() function. Also removed unnecessary rounding code.
Update 07/27/2010: Cleaned up the code a bit more, fixed the perfdata so it outputs in a sane format, and added rpcpassword option
Update 07/30/2010: The script has been redesigned so that it no longer requires the bitcoind binary, since it makes the JSON-RPC call directly. In order to get the current hashrate this plugin assumes you are running lachesis's getinfo patch. You can find the patch here:
http://www.alloscomp.com/bitcoin/Yes, it uses PHP but it works.
Latest as of 7/30/2010:
http://pastebin.com/9iRSJWMrOld, deprecated script:
http://pastebin.com/ShDr80G2If you find this code useful, I accept donations at: 18jFGqFR53fEtaDg1DvRy1vWid9M2EVW1V