I'm writing a widget to monitor specific services on several machines (30 license services across 5 machines), and I'm trying to figure out where in the SpiceWorks API the data about service states are held.
I was able to locate a single service and I was looking at the properties of the object to try to find service state, here's where I've gotten so far..
var services = SPICEWORKS.data.Device.find('all', {hostname:'licenseserver1', method:'services'});
var y;
var z;
var x = 1;
var out='| " + y + " | "; // Setting up an HTML table for output for (z in services[y]) // Property list of a specific service { out = out + "|
| " + z + " | " + "" + services[y][z] + " |