I created a script in the Script Library names ThreeCXServiceFilter (I changed from == "Auto" to like "Auto*" because some are "Auto (Delayed)")
In my template I added a Data Collection Configuration. See the screenshots for that configuration.
Let me know if you need anything else.
Code Select
services = $node->readAgentTable("System.Services");
if (services == null)
return null;
instances = %();
for(r : services->rows)
{
name = r->get(0);
startup = r->get(4);
if (name like "3CX*" and startup like "Auto*")
instances->append(name);
}
return instances;
In my template I added a Data Collection Configuration. See the screenshots for that configuration.
Let me know if you need anything else.