Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
monitoring:observium:auto-update [2025/02/01 13:14] Zyzonixmonitoring:observium:auto-update [2025/02/22 15:22] (current) Zyzonix
Line 6: Line 6:
  
 Create a crontab file with the following content: Create a crontab file with the following content:
-<panel type="info" icon="glyphicon glyphicon-file" title="/etc/cron.weekly/observium-update">+<panel type="info" icon="glyphicon glyphicon-file" title="/etc/cron.d/observium-update">
 <code bash> <code bash>
-#!/usr/bin/bash+run observium update once a week
 MAILTO=<mail-address> MAILTO=<mail-address>
 +0 6    * * 7   root /bin/bash /opt/observium-update
 +</code>
 +</panel>
  
 +And create the following file:
 +<panel type="info" icon="glyphicon glyphicon-file" title="/opt/observium-update">
 +<code bash>
 +#!/usr/bin/bash
 echo "" echo ""
 echo "» Updating  Observium to latest version «" echo "» Updating  Observium to latest version «"
Line 27: Line 34:
  
 In case that your system has a proper configured ''mailutils''-package, the output of the crontab will be sent to the configured mail address at ''MAILTO=''. In case that your system has a proper configured ''mailutils''-package, the output of the crontab will be sent to the configured mail address at ''MAILTO=''.
 +Usually one script in ''/etc/cron.weekly'' would be enough, but we discovered, that the setting of ''MAILTO'' is ignored then and mailing will go always to root.
  • monitoring/observium/auto-update.1738412062.txt.gz
  • Last modified: 2025/02/01 13:14
  • by Zyzonix