Discovering IIS Application pools

elemonnier
Tera Expert

I have been working on discovering application pools running on IIS servers using these Process Classification settings:

Name: Application Pool
Table: Web Service (cmdb_ci_web_service)
Relation Type: Runs on::Runs
Match Criteria: any

On Classification Script:


var computerName = g_sensor.deviceGR.name;

//Find application pool name using command parameters
var matches = parameters.match('(\"([^"]+)\")');
if (matches)
var appPool = matches[2];

current.name = appPool + "@" + computerName;


Classification Criteria: name equals w3wp.exe
---------------
This is working great for a many-to-many relationship, but I would like to make it a one-to-many relationship. This way we can look at a single web service listed and see the servers running it.

How can we get the classification to add additional relationships as opposed to creating a new entry?
2 REPLIES 2

aleck_lin
ServiceNow Employee
ServiceNow Employee

I'm assuming you're creating applications based on the application pools processes because you want Discovery to automatically map the TCP connections?

What if there was a way to allow the parent IIS application to automatically map to the other CIs that application pools talk to? the only caveat is that you won't be able to see the individual application pools? Would that be acceptable? I ask because I've had other customers asking for similar things and they had expressed that they did NOT care about the individual application pools.


rajeshkareti
Kilo Contributor

Hello,



Where can the discovered application pool records fit in the ServiceNow CMDB?



Regards,


Raj