Bug #12903

/usr/sbin/symbiosis-dns-generate is too noisy

Added by Steve Kemp over 3 years ago.

Status:NewStart date:2016-05-24
Priority:Normal--Due date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

If I user intentionally disables the use of the Bytemark DNS service, by moving the /root/BytemarkDNS/ directory out of the way then they will receive regular emails:

333     May 24 Cron Daemon     (0.1K) [automatic]  Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)             
334 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
340 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
344 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
346 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
347 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
352 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
354 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
355 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
356 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)
363 May 24 Cron Daemon (0.1K) [automatic] Cron <root@swml> [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate (failed)

The emails show the (expected) failure:

Unable generate DNS data because the BytemarkDNS directory "/root/BytemarkDNS" is missing.

Suggest fixing this either by :

  • Only outputting the message when STDOUT is a tty.
  • Only outputting error message(s) when --verbose is used.

Other solutions are also welcome.

Also available in: Atom PDF