---
title: "Collection plan"
description: "Collection plans in Opsview configure and schedule host and service checks, event handlers, and notifications for collectors. They are stored as encrypted JSON files and updated by applying changes, with troubleshooting steps for update failures."
url: "https://docs.itrsgroup.com/docs/faq/opsview/4920348519197-opsview-collection-plan/index.html"
---
Collection plans contain configuration and state information which allows [collectors](https://docs.itrsgroup.com/docs/faq/opsview/4919470073373-opsview-collector/index.html) to schedule and run host checks and service checks. Additionally, collection plans facilitate executing event handlers and sending notifications.

A collector’s collection plan is stored in encrypted json format in this location: `/opt/opsview/scheduler/var/collection_plan.json`.

When you [Apply Changes](https://docs.itrsgroup.com/docs/faq/opsview/4920514560797-opsview-apply-changes/index.html), new collection plans are distributed to each collector.

If you see this file is failing to update after an Apply Changes, check your collector is ONLINE and therefore contactable

```
- /settings/#!/config/monitoringcollectors
```

If it is, then you may have a build up of messages on your opsview-messagequeue for this collector-queue\_<machine.ref>

- Find your [Opsview - machine.ref](https://docs.itrsgroup.com/docs/faq/opsview/4920382681757-opsview-machine-ref/index.html)

If you do not have a backlog or need to send an empty collection plan to a collector, then you may do so with the below

- run from your orchestrator

```
/opt/opsview/orchestrator/venv3/bin/orchestratorgenerate -e <machine.ref>
```

If you do not supply the "-e machine.ref>" information, empty collection plans will be sent to all collectors, which isn't a problem as you will now be Applying Changes on your system after this to push out populated collection plans. You can click the **Apply Changes** button in the UI, or run `orchestratorgenerate` without any arguments:

```
/opt/opsview/orchestrator/venv3/bin/orchestratorgenerate
```


