You probably noticed that BackupPC fails to backup your cPanel host over rsync with the following error:
Got fatal error during xfer (fileListReceive failed)
Nothing else. Nada.
If you increase the ssh verbosity, you will see that there is an error stdin: is not a tty.
It turns out that cPanel adds mesg y to your .bashrc and /etc/bashrc, which somehow messes up the remote rsync data channel over ssh.
To overcome this issue, add on top of your .bashrc and /etc/bashrc on cPanel host:
if [ $(expr index "$-" i) -eq 0 ]; then
Since I didn’t find a check_imap Nagios plugin with the login feature, response time measurement with perfdata output, as well as flexible warning and critical thresholds, a colleague of mine and I have modified an existing check_imap_login plugin by Bertera Pietro and uploaded it on Github:
check_imap_login -u -p -H [-s] -w -c
-s is for using IMAPS
While inside screen:
/etc/init.d/networking stop; sleep 5; /etc/init.d/networking start; sleep 30; cp interfaces.old interfaces; /etc/init.d/networking stop; sleep 5; /etc/init.d/networking start
create file /etc/apt/apt.conf.d/76download with content:
That limits apt-get to 25KB/s
A good ol’ from Ubuntu *and* Debian bugs:
Dimitrios Symeonidis wrote on 2008-10-14: (permalink)
this bug will soon celebrate it’s 3rd birthday. it’s marked as confirmed, high importance, and reported upstream (debian). are we going to do something about it, or are we just waiting for debian to resolve this?
(Emphasis added for extra lulz)
sed -e 's/#.*//' -e 's/[ ^I]*$//' -e '/^$/ d'
…so I don’t have to think of it again.