HTTP response code check
reference australia Updated Sep 10, 2026 1 min read http-response-code-check.md
Agent Client Collector provides the following additional check for HTTP response code. This check is not associated with any policy.
|
Type |
Name |
Description |
Usage and usage example |
Output |
|---|---|---|---|---|
|
Event |
util.check-http-response-code |
Raises a critical event if the URL response code doesn’t match the regex.Pass credentials (username and password) using secure parameters. |
SQL Usage example: |
|
69 lines · 1.9 KB
--- title: HTTP response code check description: Agent Client Collector provides the following additional check for HTTP response code. This check is not associated with any policy. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/agent-client-collector/http-response-code-check.html release: australia product: Agent Client Collector classification: agent-client-collector topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [ACC-M default checks and policies, ACC-M reference, Agent Client Collector reference, Agent Client Collector, IT Operations Management] --- # HTTP response code check Agent Client Collector provides the following additional check for HTTP response code. This check is not associated with any policy. <table id="table_k2q_bwj_g5b"><thead><tr><th> Type </th><th> Name </th><th> Description </th><th> Usage and usage example </th><th> Output </th></tr></thead><tbody><tr><td> Event </td><td> util.check-http-response-code </td><td> Raises a critical event if the URL response code doesn’t match the regex.Pass credentials \(username and password\) using secure parameters. </td><td> ``` -u, --url URL needs to be updated in the Monitoring HTTP Entrypoint/cmdb_ci_endpoint_http_list.do for the CI -r, --response-code Regex string to match the response code. Otherwise, a critical event is raised. Default: 200 -f, --follow_redirects Follows redirect URLs ``` Usage example: `command: check-response-code.rb -u 'https://servicenow.com' -r 2.. -f` </td><td> `CheckResponseCode OK : URL is in OK state. HTTP Response code is 200, matches regex` </td></tr></tbody> </table>**Parent Topic:**[Agent Client Collector Monitoring default checks and policies](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/agent-client-collector/agent-policies-checks.md)
| title | HTTP response code check |
| description | Agent Client Collector provides the following additional check for HTTP response code. This check is not associated with any policy. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-operations-management/agent-client-collector/http-response-code-check.html |
| release | australia |
| product | Agent Client Collector |
| classification | agent-client-collector |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ACC-M default checks and policiesACC-M referenceAgent Client Collector referenceAgent Client CollectorIT Operations Management |