# vzlist | grep -v CTID | awk {‘print ” echo -n “””$1” – “” ; vzctl exec “$1″ cat /proc/loadavg ” ‘} | sh “On Linux the load average includes processes blocking on I/O. A slow disk setup can cause a high load.” http://openvz.org/pipermail/users/2009-March/002766.html
Category Archives: system operating
Mod wordpress to searchable static archive
Clone website. New site url: mysql> update wp_options set option_value=”http://newurl.xyz” where option_name=”home”; mysql> update wp_options set option_value=”http://newurl.xyz” where option_name=”siteurl”; Disable comments: mysql> update wp_options set option_value=’closed’ where option_name=’default_comment_status’; mysql> UPDATE wp_posts SET comment_status=”closed”; Prevent any changes: move away wp-admin and wp-login.php
mount iso image (loop) in fstab
root@files2010:~# cat /etc/fstab … /root/images/clonezilla-live-1.2.10-14-i686-pae.iso /liveiso/1 udf,iso9660 user,loop 0 0 /root/images/ubuntu-11.10-desktop-i386.iso /liveiso/2 udf,iso9660 user,loop 0 0 /root/images/ubuntu-11.10-desktop-amd64.iso /liveiso/3 udf,iso9660 user,loop 0 0
Windows 7 automatisch herunterfahren in 1 Stunde
run cmd C:\Users\online>shutdown /s /t 3600 /f
keep server time up to date
root@files2010:~# apt-get install ntp root@snd2011:/# dpkg-reconfigure tzdata Current default time zone: ‘Europe/Zurich’ Local time is now: Thu Nov 10 13:18:41 CET 2011. Universal Time is now: Thu Nov 10 12:18:41 UTC 2011.
Drucken mit CUPS/IPP/OSX 10.6.8
1. Checken, ob Netzwerkzugriff auf die Drucker vorhanden ist: http://printy.vmk.zhdk.ch:631/printers/laserjet http://printy.vmk.zhdk.ch:631/printers/laserjet2 2. Systemeinstellungen Drucken & Faxen öffnen 3. Adresse ipp://printy.vmk.zhdk.ch:631/printers/laserjet wie folgt eintragen: 4. Treiber / “Druckersoftware auswählen” 5. “hp laserjet 5100” im Suchfeld eingeben und folgenden Treiber auswählen 6. Treiberoptionen anwählen… fertig.
Nagios Client for RAID / OpenVZ without sudo
apt-get install nagios-nrpe-server nagios-plugins wget http://www.lsi.com/downloads/Public/SATA/SATA%20Common%20Files/cli_linux_10.2.1_9.5.4.zip unzip cli_linux_10.2.1_9.5.4.zip mv x86_64/tw_cli /usr/local/sbin/ root@vz2010:~# cat /etc/nagios/nrpe_local.cfg command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_raid]=/bin/cat /tmp/3ware command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10M -c 20M -p /dev/sda1 command[check_vz]=/usr/lib/nagios/plugins/check_vz_ubc root@vz2010:~# grep observer /etc/nagios/nrpe.cfg allowed_hosts=observer.vmk.zhdk.ch root@vz2010:~# crontab -l * * * * * cat /proc/user_beancounters > /tmp/user_beancounters * * * * * /usr/lib/nagios/plugins/check_3ware.pl -d c2 >/tmp/3ware […]
Skript zur Auswertung der UBC
Das folgende Skript liefert für jeden UBC-Parameter/VE den Wert: maxheld/limmit. Man sieht so, welche Resourcen von welcher VE am stärksten in Anspruch genommen werden. Gut zu erkennen ist das in folgendem ODS-Diagram (Skriptausgabe Copy/Paste ins Openoffice): VE-Parameters.ods #!/usr/bin/perl $params=`vzsplit -n 20`; @lines=split(/\n/,$params); foreach(@lines) { next if(/^#/); @cols=split(/[“:=]/); foreach(@cols) { $barrier{lc($cols[0])}=$cols[2]; […]
grub after kernel upgrade
Fix MailMan URL after a transfer or change of hostname
./withlist -l -r fix_url list_name –urlhost=host2.domain.com