---
sourceDocument: Australia IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/it-operations-management

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Create a check type

# Create a check type {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Create a check type to execute the `osquery` command on the Agent.

## Vorbereitungen

Role required: agent_client_collector_integration or agent_client_collector_admin

## Prozedur

1. In an Event Management instance, enter <kbd class="ph userinput">sn_agent_check_type.list</kbd> into the navigation bar.  
   The Check Types page appears.
2. Click New.  
   The <kbd class="ph userinput">Check Type - New Record</kbd> page appears.
3. In the Name field, enter <kbd class="ph userinput">osquery</kbd>.
4. In the Instance Script field, enter the following script:  

       for (var index = 0; index < checkResults.length; index++) { 
       var check = checkResults[index].check; 
       gs.info('result ' +  
       index + ': requestId: ' +  
       check.requestId + ' agent_name: ' +  
       checkResults[index].agent_id +  
       ' ci_id: ' + check.ci_id +  
       ' status: ' + check.status +  
       ' output: ' + check.output); 

       } 

   You can modify this script, as needed, but this initial script helps you to verify that your setup was successful.
5. Click Submit.

