Anacron daily and weekly notifications

  • Hi, I enabled email notifications and since that day I receive this daily email from Anacron:


    Code
    run-parts: /etc/cron.daily/monitor-raspi-health exited with return code 1
    /etc/cron.daily/openmediavault-cron-apt:
    stdin: is not a tty


    Once a week, also the cron.weekly job sends an email:



    Code
    /etc/cron.weekly/openmediavault-update-smart-drivedb:
    stdin: is not a tty


    Can you help me to stop receiving those messages?

  • Well, I applied the change to .profile and rebooted.
    Today I received a slightly different email:


    Code
    run-parts: /etc/cron.daily/monitor-raspi-health exited with return code 1


    It seems that stdin message disappeared, but monitor-raspi-health returned RC=1.
    I had a look at /var/log/raspihealth.log, but today's line is missing and the last row is all made of zeroes:




    After some more analysis, I see that issue in /etc/cron.daily/monitor-raspi-health may come from the output of vcgencmd:



    Bash
    $ cat monitor-raspi-health
    #!/bin/bash
    export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    sleep 10
    Health=$(perl -e "printf \"%19b\n\", $(vcgencmd get_throttled | cut -f2 -d=)")
    grep -q 1 <<<${Health} && echo -e "$(date)\t$(printf "%019d" ${Health})" >>/var/log/raspihealth.log
    $ vcgencmd get_throttled | cut -f2 -d=
    VCHI initialization failed
    $ vcgencmd
    VCHI initialization failed


    How can I understand what he wants to tell me?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!