---
title: "Extend Service Check Timeout"
description: "Extending service check timeout in Opsview involves identifying the relevant collector servers and updating configuration files with precise indentation. After editing, restart the opsview-executor and opsview-agent on each collector, then apply changes in the UI to complete the process."
url: "https://docs.itrsgroup.com/docs/faq/opsview/7540445774109-opsview-extend-service-check-timeout/index.html"
---
To do this, please follow the below:

1. Identify if your service check in question is running on one or more collector servers
   Navigate to your UI and navigate to **"Configuration > System > Monitoring Collectors",** then under the Collectors tab find your collector in question under the column **"Collector"** within the **"Registered Collectors"** section.

2. On the right-hand side of this row will be the **"Monitoring Clusters"** column that will show you the cluster names for your collectors; filter this column on the collector name shown here to see if one or more collectors are within your cluster of interest
3. If more than one collector is in the cluster, you will need to perform this change on all of them
4. File to edit

```
/opt/opsview/executor/etc/executor.yaml
```

1. Change to make
   - add the lines shown at the bottom of these steps
2. Restart the opsview-executor and the opsview-agent on the same collector(s) where the change has been made

   ```
   /opt/opsview/watchdog/bin/opsview-monit restart opsview-executor
   systemctl restart opsview-agent
   ```

3. Apply Changes within your Opsview UI
4. Troubleshoot the service check respectively

**Lines to add:**

- please remember that the indentation is necessary and must be exact
  - the indentation is two spaces on the `execution_timeouts` line and four space characters on the  `service_check` line

```
  execution_timeouts:
      service_check: 120
```

If you would like to make these changes permanent, perform a global override of this config as below:

```
vim /opt/opsview/deploy/etc/user_vars.yml
```

And add the below lines to the user\_vars file, think of this file as a place to hard-code your configuration:

`service_check: 120`

```
## Increase the timeouts for various execution steps from the default of 60 seconds
  opsview_executor_config:
    execution_timeouts:
      service_check: 120
      service_check_slow: 240
      host_check: 120
      event_handler: 90
      send_notifications: 75
      instant_command: 120
```

<https://docs.itrsgroup.com/docs/opsview/current/administration/distributing-functionality/executor/index.html#configuration>

---
[Further Information: Extending-opsview-agent](https://www.opsview.com/resources/monitoring/whitepapers/extending-opsview-agent)


