First LastPass service fail from a few years

lastpassThe first time today LastPass was not available for its users, as LastPass writes on his blog, migrated its data center to a new data center.
Disappointment, thoughts, worries about their passwords, the same thing I was going, I’m a premium user for 4 years, and yet never so LastPass did not disappoint me, but hopefully a good hope that LastPass will continue to do so very safe and comfortable and it is convenient. I use it on the desktop and on mobile devices.
I think that LastPass deserves a medal for convenience of use

On LastPass blog you can read about the incident

A this user in tweet writes what I thought himself

LastPass explains the reason

LastPass returned to work after a whole 4 hours

Let’s hope that does not stand for this any special offices 🙂

How to change the description of the Stream in Liquidsoap

output.icecast( %mp3(bitrate=96), mount="/radio-96.mp3", 
	genre="electronic",  
	description="ITUnix Radio Electronic Music", 
	name="ITUnix Radio", 
	url="http://radio.itunix.eu", 
	host="localhost", 
	port=8147, 
	password="PASSWORD", radio)

example 2

output.icecast( %mp3(stereo=false, bitrate=16, samplerate=22050),
	host="audio3.radioreference.com", 
	port = 80, password =  "xxxxxxxxx", genre="Scanner", 
	description="Scanner audio", mount="/xxxxxxxx", 
	name="Baltimore Maryland Police/Fire/EMS", user="source",
	url="http://www.scanbaltimore.com", radio)

What can I say, a simple way to backup remote server on the local machine

rsync -aHxv root@remote.example.com:/* /local/backup/server/ \ 
		--exclude=/dev \
		--exclude=/proc \
		--exclude=/sys \
		--exclude=/tmp

Setting up Nagios Server to Remotely Server on Debian

Step 1. Installing packages

We have one server for monitoring (eg. myoneserver). [client]

# aptitude install nagios-nrpe-server nagios-plugins

And one server to view statistics. [server]

# aptitude install nagios-nrpe-plugin nagios-plugins nagios3

Step 2. Configuring the server for monitoring [client]
Edit /etc/nagios/nrpe.conf.

# nano /etc/nagios/nrpe.conf

Set the server_address to the IP address you want NRPE to bind to on the Untangle server.  If you want it to bind to all addresses, leave this command commented out.

server_address=10.0.0.1

Change allowed_hosts to the IP address of the Nagios server:

allowed_hosts=10.0.0.20

Add a command to check the swap utilization:

command[check_sda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda1

Save and quit /etc/nagios/nrpe.conf.

Restart the NRPE service:

/etc/init.d/nagios-nrpe-server restart

Step 3. Configure the Nagios Server
Create a file named /etc/nagios3/conf.d/myoneserver.cfg with the following contents:

#Host Definition
define host{
use                     generic-host
host_name               myoneserver
alias                   MyOneServer Server
address                 10.0.0.1
}

# Service Definitions
define service{
use                     generic-service
host_name               myoneserver
service_description     CPU Load
check_command           check_nrpe_1arg!check_load
}

define service{
use                     generic-service
host_name               myoneserver
service_description     Swap Drive Usage
check_command           check_nrpe_1arg!check_swap
}

define service{
use                     generic-service
host_name               myoneserver
service_description     Free Disk Space
check_command           check_nrpe_1arg!check_sda1
}

define service{
use                     generic-service
host_name               myoneserver
service_description     Number of Users
check_command           check_nrpe_1arg!check_users
}

define service{
use                     generic-service
host_name               myoneserver
service_description     Number of Zombie Processes
check_command           check_nrpe_1arg!check_zombie_procs
}

define service{
use                     generic-service
host_name               myoneserver
service_description     Total Processes
check_command           check_nrpe_1arg!check_total_procs
}

Save and quit  /etc/nagios3/conf.d/myoneserver.cfg.

Edit /etc/nagios3/conf.d/hostgroups_nagios2.cfg and add the following section to define an

Server group. (optional)
define hostgroup {
hostgroup_name  myoneserver
alias           MyOneServer Servers
members         MyOneServer1, MyOneServer2 MyOneServer3
}

Restart the Nagios service to apply the changes:

/etc/init.d/nagios3 restart

Find and replace text in multiple files using geany

To open all files, in which a specific string is found, from inside of a directory (and subdirectories) open Geany, select Terminal tab from Message Window and run next command inside:

grep -rHIF --exclude='/home/modinfo/bitcoin/*~' -- 'text_to_find' /bin/bash /home/modinfo/bitcoin/* | geany `awk 'BEGIN {FS="[:]"} {print $1}'`

source

Quick server backup

mount /dev/xxxx -o remount-ro /mnt
tar -cvjpf serverbackup.tar.bz2 /mnt

then unpack the behavior of permissions

tar -xvjpf serverbackup.tar.bz2

here my script with mysql backup. backup.sh

  1. # create backup catalog
  2. mkdir /backup
  3. # clean
  4. aptitude clean
  5. rm /var/log/*.gz
  6. rm /var/log/apache2/*.gz
  7. rm /var/log/apt/*.gz
  8. rm /var/log/clamav/*.gz
  9. rm /var/backups/*.gz
  10. # start archive
  11. tar -cvjpf /backup/backup_bin.tar.bz2 /bin
  12. tar -cvjpf /backup/backup_home.tar.bz2 /home
  13. tar -cvjpf /backup/backup_lib.tar.bz2 /lib
  14. tar -cvjpf /backup/backup_root.tar.bz2 /root
  15. tar -cvjpf /backup/backup_usr.tar.bz2 /usr
  16. tar -cvjpf /backup/backup_etc.tar.bz2 /etc
  17. tar -cvjpf /backup/backup_lib64.tar.bz2 /lib64
  18. tar -cvjpf /backup/backup_sbin.tar.bz2 /sbin
  19. tar -cvjpf /backup/backup_var.tar.bz2 /var
  20. # backup mysql
  21. mysqldump -u root -p<PASSWORD> --all-databases > /backup/all_databases.sql
  22. # archiving of all backups to a single file
  23. tar -cvjpf /backup_`date +"%F"`.tar.bz2 /backup
  24. # send backup to another server
  25. scp /backup_`date +"%F"`.tar.bz2 user@server:/home/backup
  26. # remove local backup
  27. rm -R /backup /backup_`date +"%F"`.tar.bz2

update
backup from remote server 192.168.0.100 to local /mnt

mount /dev/sda1 /mnt/
rsync -aHxv root@192.168.0.100:/* /mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp