How to trigger the risk calculator when VI is imported?

kris29
Tera Contributor

Hi,

How can I trigger risk calculator when Vulnerable items are imported from Tenable integration. 

When data is imported in Vulnerable items table, "Risk rating" should be updated based on conditions I set in calculator. I can do that manually but looking for solution to do it automatically.

Is there any "scheduled job" responsible for that?

8 REPLIES 8

Chris McDevitt
ServiceNow Employee
ServiceNow Employee

Hi,

Check out "Run severity calculator after vuln entry promotion" (Scheduled Job)

Also, check out Business Rule "Calculate risk score"

Thank you @Chris McDevitt 


My VIs are imported on a daily basis. Should I set the scheduled job the same way ? (right now the scheduled job is set to run Periodically)
I haven't changed anything in the scheduled job and the business rule. Conditions in BR look good.
find_real_file.png

When a new VI is created the BR "Calculate risk score" runs, well.... it calculates the risk score for the first time.

Then, every 30 minutes the scheduled job "Run severity calculator after vuln entry promotion"  run looking for a flag on sn_vul_entry to see if it should recalculate the rules become something has changed on the sn_vul_entry table (i.e. Third-Party - Like the Severy was changed) 

 

So when new VIs are created from integration, "Risk rating" should be updated, but nothing happened after import.
I wonder what part of the configuration I missed.