I am looking to script out all of the checks for bringing new servers online, but am running into issues with the WMI IIS sensor. According to the HTTP API, the only way to "create" a new sensor is by copying an existing one. This works fine in most cases, but iwth the IIS WMI sensor the "Instance" field is showing as a read only.

This causes issues if I am going to automate a server check and do not know the name of the IIS instance ahead of time. In the case of a new IIS instance, I would first have to deploy that instance to a server, manually create a new IIS WMI check in PRTG for that instance name, then copy that check over in the future.

Is there a way that I could create a new IIS WMI check via API or change the instance name?


Article Comments

I am also curious about other checks with un-editable fields, such as "Disk Read Bytes", "% Disk Write Time". If I were wanting to set up a server from scratch with checks in the API, it seems I would first need to create a check with any possible drive letter to do a copy of. This seems a bit excessive for each check creating one for each drive letter


Jan, 2015 - Permalink

Dear Klawlor

The easiest way would be to save a custom template, and perform an auto discovery on the group which you have your IIS put in.

Starting an auto discovery with a template cannot be automated with an API call, it has to be done manually.


Jan, 2015 - Permalink