Hi,
I've actually setup notifications in OMV but the only notification I receive is the one for new accesses to the Web ui.
I also set some scheduled jobs but I can't receive the output via email.
Any idea why?
Hi,
I've actually setup notifications in OMV but the only notification I receive is the one for new accesses to the Web ui.
I also set some scheduled jobs but I can't receive the output via email.
Any idea why?
Some weeks ago an issue with update notification was fixed. Is your OMV updated?
Regarding rsync: did you enable sending the output?
Some weeks ago an issue with update notification was fixed. Is your OMV updated?
Regarding rsync: did you enable sending the output?
Yes, latest omv version installed. But not using rsync, just scheduled some cron jobs from the Web ui. Sending the output is enabled.
What do these cron jobs run? Are you certain they produce any output (assuming they finish without errors)?
What do these cron jobs run? Are you certain they produce any output (assuming they finish without errors)?
I made a little bash script that runs some sar command. I wanted to receive the output via mail, but I had to specify the mail command manually In my script to receive the output via mail.
Maybe you could point me to a command example to test.
Tried with a single command "date". It is executed successfully but no email is sent.
Also all the jobs in /etc/cron.d/openmediavault-user-defined are followed by: >/dev/null 2>&1.
Let's make sure there isn't some kind of typo in your email settings, and that messages aren't being sent to your spam folder. Which SMTP gateway are you using?
Let's make sure there isn't some kind of typo in your email settings, and that messages aren't being sent to your spam folder. Which SMTP gateway are you using?
Email notification is working as expected, using Gmail and I can correctly receive test emails and login emails.
Um, if you append >/dev/null 2>&1, you're not going to get any emails. You do realize this part means "send any output to nowhere," as in ignore and discard it... so you have to remove that part and then you should get emails.
Um, if you append >/dev/null 2>&1, you're not going to get any emails. You do realize this part means "send any output to nowhere," as in ignore and discard it... so you have to remove that part and then you should get emails.
That s appended automatically when I create the cron jobs even if I select to send emails after the cron job completes, searching for the forum I found that directory and looked inside and found out that. No idea why.
That's weird I don't know why this would be added automatically. Have not seen this behavior on my own system.
I'm fresh out of ideas.
Also all the jobs in /etc/cron.d/openmediavault-user-defined are followed by: >/dev/null 2>&1.
This is an example for a job, where I do get email
Ahhh, this is different. The commandline output of the mail command is being redirected to /dev/null, which is completely different. (The output of your scheduled job is being piped into the mail command, so that it gets sent as an email.)
So that's all in order.
Just out of curiosity, though, can you show the other jobs that aren't producing email output?
Here you go (complete content)
ZitatAlles anzeigen16:32:07 root@hawk:/etc/cron.d# cat openmediavault-userdefined
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
@reboot root /var/lib/openmediavault/cron.d/userdefined-a1f698b4-a295-4ea3-b7f9-6683a8d07cc0 2>&1 | mail -E -s "Cron" -a "From: Cron Daemon <root>" root >/dev/null 2>&1
@reboot root /var/lib/openmediavault/cron.d/userdefined-a62ffe50-7eba-4d94-893d-d6019f909a96 >/dev/null 2>&1
@daily root /var/lib/openmediavault/cron.d/userdefined-d8e40372-ca8c-430e-96f6-df37ca0149f9 >/dev/null 2>&1
56 18 * * 5 root /var/lib/openmediavault/cron.d/userdefined-b09cd3d5-f92a-4f53-bf52-fce905acb52f >/dev/null 2>&1
*/15 * * * * root /var/lib/openmediavault/cron.d/userdefined-1ef4917c-54d5-44f3-bdc8-7d14908ad353 >/dev/null 2>&1
@reboot root /var/lib/openmediavault/cron.d/userdefined-1fb0ed6d-03d6-4568-a48d-842b106cd58b >/dev/null 2>&1
Ugh! I'm sorry macom, I managed to completely miss the previous post was from you, not steakhutzeee
I'll go in the corner now (and clean my glasses).
I think I need to clean my glasses too. Tried to recreate my jobs and now they are working well!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!