UXSimStatus

As of OpenSimulator svn 9529 the xtended stats reporting will return a jsonp callback to allow popular javascript toolkits to use the returned data to create ajax monitoring applications in the browser. This is an advantage because after the page is loaded, the browser will interact directly with the region, eliminating traffic through the website (polling the region and servicing the browser). It also allows the creation of mashups to create mini-monitor apps in other pages.

To enable your stats reporting, set the following in your OpenSim.ini...

; Simulator Stats URI ; Enable JSON simulator data by setting a URI name (case sensitive) Stats_URI = "jsonSimStats"

The URI can be anything you want, and is case sensitive. You can query the URI directly to return a json string to use in php, python, java, etc. or you may use one of the popular javascript toolkits to have OpenSimulator generate a callback for jsonp.

The json serialization did carry the following data. {"AssetsInCache":5.0,"TimeAfterCacheMiss":0.0,"BlockedMissingTextureRequests":0.0,"AssetServiceRequestFailures":0.0, "abnormalClientThreadTerminations":0.0,"InventoryServiceRetrievalFailures":0.0,"Dilatn":0.967380821704865,"SimFPS":55.0, "PhyFPS":47.1628913879395,"AgntUp":0.0,"RootAg":0.0,"ChldAg":0.0,"Prims":0.0,"AtvPrm":0.0,"AtvScr":0.0,"ScrLPS":0.0, "PktsIn":0.0,"PktOut":0.0,"PendDl":0.0,"PendUl":0.0,"UnackB":0.0,"TotlFt":0.0,"NetFt":0.0,"PhysFt":0.0,"OthrFt":0.0, "AgntFt":0.0,"ImgsFt":0.0,"Memory":"8","Uptime":"05:12:19.0365590","Version":"OpenSimulator Server 0.6.4.9533 "}

This data may change, for example 0.9.2 may return {"Dilatn":"1","SimFPS":"55","PhyFPS":"55","AgntUp":"0","RootAg":"0","ChldAg":"0","NPCAg":"0","Prims":"1579", "AtvPrm":"1","AtvScr":"131","ScrLPS":"0","ScrEPS":"1","PktsIn":"0","PktOut":"0","PendDl":"0","PendUl":"0", "UnackB":"0","TotlFt":"18.18","NetFt":"0","PhysFt":"0.02","OthrFt":"0","AgntFt":"0","ImgsFt":"0","FrameDilatn":"1", "Logging in Users":"0","GeoPrims":"1579","Mesh Objects":"463","Script Engine Thread Count":"0","Util Thread Count":"0", "System Thread Count":"30","System Thread Active":"0","ProcMem":"202040","Memory":"43","Uptime":"00:00:49.3504200", "Version":"OpenSim 0.9.2.0 Yeti Dev 5ef462c","RegionName":"ubittest"}

http://mysimhost:itsPort/jsonSimStats?region=MyPrettyHomeRegion http://mysimhost:itsPort/jsonSimStats?region=MyOtherPrettyRegion (do not forget that a URI needs to be escaped, spaces need to be replaced by %20, etc)  Note: If you are having problems with cross-origin, you can try this script UXSimStatus_Aternatif.
 * "XEngine Thread Count" has become "Script Engine Thread Count".
 * If the Opensimulator instance was running more than one region, until 0.9.2 the region used for the stats was in fact not clear and not the same on each request. With 0.9.2 the region used will be the first that did create stats. Now the URI can now include the query ?region=regionName or ?region=regionUUID to select a region, example:

JSON Grid Simstats
Python example to gain the region data from a grid service - should work but this version not tested - *reference material*

See too SSL in OpenSim