The sensu-agent does not store any scheduler state by design. However, we’ve had other users in a similar position, and that lead us to develop a feature for sensu-agent that buffers events to disk until the agent can reconnect to the backend.
To make use of this feature, you’ll need to work out how to schedule the check yourself. The good news is that it can be as simple as a cron job.
The agent has a service running on port 3031 that you can send events to with HTTP POST, formatted in JSON. When the agent receives a valid event, it will queue it on disk before sending it to the backend. This way, the events can survive agent restarts, loss of backend connectivity, or other failure scenarios.
You can learn more in the docs, here: https://docs.sensu.io/sensu-go/latest/reference/agent/#create-monitoring-events-using-the-agent-api