Welcome to Centmin Mod Community
Register Now

Anacron job 'cron.daily'

Discussion in 'System Administration' started by selcukv, Mar 2, 2020.

Tags:
  1. selcukv

    selcukv New Member

    22
    5
    3
    Sep 21, 2018
    Ratings:
    +6
    Local Time:
    5:18 PM
    nginx/1.17.8
    Ver 15.1 Distrib 10.3.22-MariaDB
    Hi,

    I've got an email with subject "Anacron job 'cron.daily' on server.mydomainhere.com"

    The content is just:
    logrotate

    I use Amazon SES and the email origin for sent emails is noreply@server.mydomain.com.
    I think it was a forwarded email that was sent to root folder since I added my notification email address to ./forward.

    By the way my custom config is:

    Code:
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    AUTOHARDTUNE_NGINXBACKLOG='y'
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    LETSENCRYPT_DETECT='y'
    DUALCERTS='y'
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZFOUR='y'
    PHP_ZSTD='y'
    NSD_DISABLED='y'
    SELFSIGNEDSSL_C='My Country is here'
    SELFSIGNEDSSL_ST='My State is here'
    SELFSIGNEDSSL_L='Whatever'
    SELFSIGNEDSSL_O='Organisation'
    SELFSIGNEDSSL_OU='Web Services'
    WPCLI_SUPERCACHEPLUGIN='n'
    MM_LICENSE_KEY='licence'
    NGINX_DYNAMICTLS='y'
    NGINX_REALIP='y'
    PHPREDIS='y'
    MEMCACHED_DISABLED=y
    
    MARCH_TARGETNATIVE='n'
    AUDITD_ENABLE='y'
    
    Is there anything I should worry?
     
    Last edited: Mar 2, 2020
  2. eva2000

    eva2000 Administrator Staff Member

    44,731
    10,197
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,805
    Local Time:
    12:18 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. selcukv

    selcukv New Member

    22
    5
    3
    Sep 21, 2018
    Ratings:
    +6
    Local Time:
    5:18 PM
    nginx/1.17.8
    Ver 15.1 Distrib 10.3.22-MariaDB
    Thank you so much!
     
  4. VovaZ

    VovaZ New Member

    27
    1
    3
    Jun 6, 2019
    Russia
    Ratings:
    +3
    Local Time:
    5:18 PM
    1.17.x
    MariaDB 10.4.x
    I also receive messages in the mail with content that is not clear to me. Moreover, part in English, and part in Russian ...
    Code:
    /etc/cron.daily/diskalert:
    
    /etc/cron.daily/diskalert: line 43: [[: Дост: ошибка синтаксиса: ожидается операнд (error token is "Дост")
    Help?
     
  5. eva2000

    eva2000 Administrator Staff Member

    44,731
    10,197
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,805
    Local Time:
    12:18 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    if you edit /etc/cron.daily/diskalert and add these lines
    Code (Text):
    # set locale temporarily to english
    # due to some non-english locale issues
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LC_CTYPE=en_US.UTF-8
    

    below the top comment section like with EMAIL= variable filled with your email address, does it run properly when you run
    Code (Text):
    #!/bin/sh
    ############################################################################################
    # set -x
    # Shell script to monitor or watch the disk space
    # modified version
    # http://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html
    # It will send an email to $DISKALERT_ADMINEMAIL, if the (free available) percentage of space is >= 90%.
    ############################################################################################
    # Set admin email so that you can get email.
    EMAIL=''
    # set alert level 90% is default
    DISKSPACE_ALERTPERCENTAGE='80'
    # Exclude list of unwanted monitoring, if several partions then use "|" to separate the partitions.
    # An example: DISKALERTEXCLUDE_LIST="/dev/hdd1|/dev/hdc5"
    DISKALERTEXCLUDE_LIST="/auto/ripper"
    ############################################################################################
    # set locale temporarily to english
    # due to some non-english locale issues
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LC_CTYPE=en_US.UTF-8