option to silence cronjob

Backup agent for Linux servers and workstations on-premises or in the public cloud

option to silence cronjob

Veeam Logoby chris400 » Sat 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.
chris400
Influencer
 
Posts: 10
Liked: 3 times
Joined: Sat Feb 04, 2017 10:31 am
Full Name: Christoph

Re: option to silence cronjob

Veeam Logoby PTide » Mon 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!
PTide
Veeam Software
 
Posts: 3800
Liked: 316 times
Joined: Tue May 19, 2015 1:46 pm

Re: option to silence cronjob

Veeam Logoby avoest » Tue 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.
avoest
Lurker
 
Posts: 1
Liked: never
Joined: Tue Feb 28, 2017 10:56 am

Re: option to silence cronjob

Veeam Logoby PTide » Tue 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
PTide
Veeam Software
 
Posts: 3800
Liked: 316 times
Joined: Tue May 19, 2015 1:46 pm

Re: option to silence cronjob

Veeam Logoby chris400 » Mon Mar 06, 2017 6:59 am

Would be nice if we could choose it by an option.
chris400
Influencer
 
Posts: 10
Liked: 3 times
Joined: Sat Feb 04, 2017 10:31 am
Full Name: Christoph

Re: option to silence cronjob

Veeam Logoby mvidalinc » Mon Jul 24, 2017 12:34 pm

Is this feature in Veeam now ?
mvidalinc
Influencer
 
Posts: 17
Liked: never
Joined: Tue Feb 14, 2017 6:39 am

Re: option to silence cronjob

Veeam Logoby PTide » Mon Jul 24, 2017 4:12 pm

Hi,

Not yet.
PTide
Veeam Software
 
Posts: 3800
Liked: 316 times
Joined: Tue May 19, 2015 1:46 pm

[MERGED] Suppressing email when scheduled job executes?

Veeam Logoby danswartz » Thu 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?
danswartz
Expert
 
Posts: 114
Liked: 13 times
Joined: Fri Apr 26, 2013 4:53 pm
Full Name: Dan Swartzendruber

Re: option to silence cronjob

Veeam Logoby PTide » Fri 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
PTide
Veeam Software
 
Posts: 3800
Liked: 316 times
Joined: Tue May 19, 2015 1:46 pm

Re: option to silence cronjob

Veeam Logoby danswartz » Fri Mar 23, 2018 3:04 pm

Ah, thanks!
danswartz
Expert
 
Posts: 114
Liked: 13 times
Joined: Fri Apr 26, 2013 4:53 pm
Full Name: Dan Swartzendruber


Return to Veeam Agent for Linux



Who is online

Users browsing this forum: No registered users and 2 guests