Page 1 of 1
Some questions about cron jobs
Posted: 01 Oct 2012, 04:30
by Gordon
Based on the
full disc issue I created an email alias for root so that messages are placed in the inbox for user admin and I can read them. Today I noticed an email from the cron daemon about a missing script.
- In the folder /etc/logrotate.d there is a reference to mediatomb which is no longer part of Bubba. Logrotate tries to run the init-V script for this package in order for it to use the newly created logfile, which of course fails. You should clean up (i.e. delete!) the mediatomb related files.
- I'm fairly certain I had followed the Wiki to tweak the B3 for better performance, but I'm seeing bubba-horde and bubba-notify back in /etc/cron.d. Notably different, bubba-horde now runs alarms only once a day. Why is that? It's not causing errors any more, so I'm okay with the setting - just wondering.
- Bubba-notify runs every 5 minutes and refers to two folders to control what it does but which are both empty. What should be in those folders? Are their contents dynamic and if so what settings do change these?
Re: Some questions about cron jobs
Posted: 01 Oct 2012, 04:40
by RandomUsername
I just had a look at that wiki page you linked to. I was aware of the two cron jobs in question and as I don't use horde I'd already removed the horde one, but I've no idea what the bubba--notify job does. Any idea?
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 02:30
by nobody
it runs a perl script (/usr/share/perl5/Bubba/Notify.pm) that loops through files in the /var/spool/bubba-notify dir (which is empty in my case) and prints out a JSON response. My guess would be something with FTD but as there is no docs in the scripts it is no more than a guess...
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 02:41
by RandomUsername
Empty here too.
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 03:30
by Gordon
Stupid...
Except for the spool dir (yes, I did notice that) it also has a reference to /etc/bubba-notify/enabled, but I forgot to look further. There's also a directory /etc/bubba-notify/available which contains the scripts bubba-notify-led.pl and bubba-notify-ui.pl. My guess is that the purpose of the bubba-notify cron job is to give visual and audible warnings based on specific system events. So if the spooldir is empty this means that there are no warnings and everything is fine.
That also means that it is not very wise to remove that cron job. Can someone verify my findings and if correct alter the wiki accordingly?
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 03:46
by RandomUsername
Also, I seriously doubt either of those cron jobs are going to impact performance all that much so I question the validity of the entire wiki article TBH.
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 03:58
by Gordon
Don't know...
When I first started my B3 the Horde alarms would produce the following email:
Code: Select all
Return-Path: <root@b3.localdomain>
X-Original-To: root
Delivered-To: root@b3.localdomain
Received: by b3.localdomain (Postfix, from userid 0)
id 6945492AB8; Mon, 23 May 2011 08:25:14 +0000 (UTC)
From: root@b3.localdomain (Cron Daemon)
To: root@b3.localdomain
Subject: Cron <root@b3> test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20110523082514.6945492AB8@b3.localdomain>
Date: Mon, 23 May 2011 08:25:14 +0000 (UTC)
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Perms/sql.php on line 83
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Perms/sql.php on line 116
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Perms/sql.php on line 153
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Prefs.php on line 847
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/mnemo/lib/api.php on line 329
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/mnemo/lib/api.php on line 423
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/History.php on line 244
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/kronolith/lib/Driver.php on line 201
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/kronolith/lib/Driver/sql.php on line 352
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/kronolith/lib/Driver/sql.php on line 373
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/kronolith/lib/Driver/sql.php on line 402
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/kronolith/lib/Driver/sql.php on line 456
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share.php on line 117
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share/sql.php on line 214
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share/sql.php on line 276
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share/sql.php on line 349
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share/sql.php on line 421
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share/sql.php on line 526
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Share/sql.php on line 571
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/MDB2.php on line 393
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/MDB2.php on line 2647
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Group.php on line 158
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Group.php on line 641
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Group/sql.php on line 101
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Group/sql.php on line 132
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Group/sql.php on line 177
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Identity.php on line 518
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Identity.php on line 533
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Maintenance.php on line 140
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Maintenance.php on line 334
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Maintenance.php on line 430
As stated, I had literally thousands of emails with this specific content. Disabling the script therefore definitely was a good thing. I don't know what processing power is involved with running alarms and notify every 5 minutes (and simultaneously) but I do agree that if you don't use it that it is pointless to run it.
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 06:21
by nobody
I'm currently a bit low on coffee but if many users get this flood of PHP warning emails like you do, and most have a faulty /etc/aliases setup (as discussed elsewhere), would that mean that all those people are now seeing their HDs filled with mailqueue?
Re: Some questions about cron jobs
Posted: 02 Oct 2012, 09:21
by Gordon
That would depend on the software version they're using. At present I'm not seeing these errors any more and I'm still running the alarms script once a day (come to think about it I may have actually changed that schedule myself because I wanted to keep the other two jobs that are defined in bubba-horde).
Faulty aliases is probably a lesser issue, if even. In my case the emails were correctly delivered and sitting in /root/Mail/new waiting for root to log on to dovecot, which of course is impossible.