Back to Opsview FAQ

Nightly Housekeeping kills "Import Runtime"

Problem Copied

The “Opsview - Housekeeping Monitor” service check is in WARNING/CRITICAL state

Nightly housekeeping of the Opsview databases is controlled by a cronjob that runs at 0311 (server time) under the “opsview” on the orchestrator.

If you are seeing that the import_runtime (ODW Status) or “Opsview Housekeeping Status” service check is failing failing, then it may well be a conflict (database deadlock) between these two processes.

Example of errors seen

Suggested solution(s) Copied

Warning: If the scripts hasn’t run for a long time, you should disable them in crontab before running them manually, then re-enable them after. This prevents duplicate processes while they catch up. - Adding a hash, as per the below will perform this “disable” action
~]# crontab -eu opsview
...
## 4 * * * * . /opt/opsview/coreutils/bin/profile && /opt/opsview/coreutils/bin/import_runtime -q
...

To implement the suggested solution update cronjob entry as per the below (0-2,5-23)

## crontab -eu opsview
4 0-2,4-23 * * * . /opt/opsview/coreutils/bin/profile && /opt/opsview/coreutils/bin/import_runtime -q
["Geneos"] ["FAQ"]

Was this topic helpful?