forked from somsakc/docker-observium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
observium-cron
19 lines (13 loc) · 1.2 KB
/
observium-cron
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Cron for Observium
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Run a complete discovery of all devices once every 6 hours
33 */6 * * * root . /opt/observium/observium-setenv.sh && /opt/observium/discovery.php -h all >>/opt/observium/logs/cron-discovery-all.log 2>&1
# Run automated discovery of newly added devices every 5 minutes
*/5 * * * * root . /opt/observium/observium-setenv.sh && /opt/observium/discovery.php -h new >>/opt/observium/logs/cron-discovery-new.log 2>&1
# Run multithreaded poller wrapper every 5 minutes
*/5 * * * * root . /opt/observium/observium-setenv.sh && /opt/observium/poller-wrapper.py >>/opt/observium/logs/cron-poller-wrapper.log 2>&1
# Run housekeeping script daily for syslog, eventlog and alert log
13 5 * * * root . /opt/observium/observium-setenv.sh && /opt/observium/housekeeping.php -ysel >>/opt/observium/logs/cron-housekeeping-ysel.log 2>&1
# Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data
47 4 * * * root . /opt/observium/observium-setenv.sh && /opt/observium/housekeeping.php -yrptb >>/opt/observium/logs/cron-housekeeping-yrptb.log 2>&1