Backup agent for Linux servers and workstations on-premises or in the public cloud
Post Reply
chris400
Influencer
Posts: 10
Liked: 3 times
Joined: Feb 04, 2017 10:31 am
Full Name: Christoph
Contact:

option to silence cronjob

Post by chris400 » Feb 04, 2017 10:37 am 1 person likes this post

When starting a job via veeamconfig, as it is done in the crontab, it generates output to stdout. In case of a cronjob the result is an email send to the user. I can redirect stdout to /dev/null in the cronjob. Sadly this change gets removed, if the job is altered via veeam.

My suggestion is to add an option to the job configurator, to send normal output to /dev/null.

PTide
Veeam Software
Posts: 4247
Liked: 349 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide » Feb 06, 2017 5:48 pm 1 person likes this post

Hi,

Got your point, we will look into that. Also you can set MAILTO="" in /etc/crontab file to supress emails.

Thank you!

avoest
Lurker
Posts: 1
Liked: never
Joined: Feb 28, 2017 10:56 am
Contact:

Re: option to silence cronjob

Post by avoest » Feb 28, 2017 11:37 am

I absolutely support the request to add an silence/quiet option.

MAILTO="" isn't really a good solution because you would miss the error messages from the other cron jobs.

You might also consider using STDOUT for standard output and STDERR for error output.

PTide
Veeam Software
Posts: 4247
Liked: 349 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide » Feb 28, 2017 4:03 pm

Hi,

Would that be acceptable if Veeam generated cron tasks with STDOUT redirected to /dev/null and STDERR left intact by default?

Thanks

chris400
Influencer
Posts: 10
Liked: 3 times
Joined: Feb 04, 2017 10:31 am
Full Name: Christoph
Contact:

Re: option to silence cronjob

Post by chris400 » Mar 06, 2017 6:59 am

Would be nice if we could choose it by an option.

mvidalinc
Influencer
Posts: 17
Liked: never
Joined: Feb 14, 2017 6:39 am
Contact:

Re: option to silence cronjob

Post by mvidalinc » Jul 24, 2017 12:34 pm

Is this feature in Veeam now ?

PTide
Veeam Software
Posts: 4247
Liked: 349 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide » Jul 24, 2017 4:12 pm

Hi,

Not yet.

danswartz
Expert
Posts: 116
Liked: 13 times
Joined: Apr 26, 2013 4:53 pm
Full Name: Dan Swartzendruber
Contact:

[MERGED] Suppressing email when scheduled job executes?

Post by danswartz » Mar 22, 2018 6:00 pm

So I got the Linux agent installed on my CentOS 7 storage appliance. Worked like a charm. My only complaint: when it adds the scheduled job to the crontab, it doesn't redirect the output to /dev/null, so I got an email the next morning for the job that had run (successfully) at 6AM. It was easy to edit the crontab line to add '> /dev/null', but the comment at the top of the lines tells you not to edit the file directly, and the next time you add a scheduled job, it will overwrite your change. Is there a better way to do this?

PTide
Veeam Software
Posts: 4247
Liked: 349 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide » Mar 23, 2018 2:43 pm

Hi Dan

You can just disable built-in schedule in the backup job wizard, so the agent does not overwrite changes, and keep using your own string in cron.

Thanks

danswartz
Expert
Posts: 116
Liked: 13 times
Joined: Apr 26, 2013 4:53 pm
Full Name: Dan Swartzendruber
Contact:

Re: option to silence cronjob

Post by danswartz » Mar 23, 2018 3:04 pm

Ah, thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests