
I've wrapped the thing up in an Indexed Data Script, and it seems to work fine now.
I'm not sure on the best way of bundling this stuff up, so I've attached here the an archive containing the following:
mssql.php - the Script, put this in <cacti_root>/site/scripts/
mssql.xml - the Definition, put this in <cacti_root>/resources/script_queries
cacti_data_query_php_mssql_databases.xml - Data Query - import into cacti_data_template_php_mssql_database.xml - Data Template- import into Cacti
cacti_graph_template_mssql_database_size.xml - Graph - import into Cacti
The graph currently only shows a single database. Shouldn't be too difficult to add others to a new graph.
Any problems, let me know, it's my first template
