Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
chris400
Influencer
Posts: 13
Liked: 3 times
Joined: Feb 04, 2017 10:31 am
Full Name: Christoph
Contact:

option to silence cronjob

Post by chris400 » 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
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide » 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 »

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
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide »

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: 13
Liked: 3 times
Joined: Feb 04, 2017 10:31 am
Full Name: Christoph
Contact:

Re: option to silence cronjob

Post by chris400 »

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 »

Is this feature in Veeam now ?
PTide
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide »

Hi,

Not yet.
danswartz
Veteran
Posts: 264
Liked: 30 times
Joined: Apr 26, 2013 4:53 pm
Full Name: Dan Swartzendruber
Contact:

[MERGED] Suppressing email when scheduled job executes?

Post by danswartz »

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
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: option to silence cronjob

Post by PTide »

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
Veteran
Posts: 264
Liked: 30 times
Joined: Apr 26, 2013 4:53 pm
Full Name: Dan Swartzendruber
Contact:

Re: option to silence cronjob

Post by danswartz »

Ah, thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests