Category: Server

  • Software RAID monitoring in Zabbix

    To monitor software RAID in Zabbix 1.8 you need to make following changes in Zabbix: in /etc/zabbix/zabbix-agent*.conf on client add in the end of the file: #CONTROLLO RAID UserParameter=custom.mdstat,/bin/cat /proc/mdstat | grep -c _ You need to restart zabbix Agent sudo service zabbix-agent restart On the Zabbix server add to the Linux Template: Items: Host:…

  • Ändra MYSQL datadir

    Som root behöver man göra följande steg för att kunna ändra mysqls databas katalog (datadir): /etc/init.d/mysql stop cp -rp /var/lib/mysql  /new/mysql/dir vi /etc/apparmor.d/usr.sbin.mysqld Lägg till dessa rader innan avslutande } : /new/mysql/dir r, /new/mysql/dir/** rwk, /etc/init.d/apparmor restart vi /etc/mysql/my.cnf Ändra datadir till din nya katalog: datadir=/var/lib/mysql till: datadir=/new/mysql/dir Starta sedan om mysql: /etc/init.d/mysql restart

  • Queues in Asterisk

    ================= Building Queues ================= Written by: Leif Madsen Initial version: 2010-01-14 In this article, we’ll look at setting up a pair of queues in Asterisk called ‘sales’ and ‘support’. These queues can be logged into by queue members, and those members will also have the ability to pause and unpause themselves. All configuration will be…

  • SSH keys

    First, install OpenSSH on two UNIX machines, hurly and burly. This works best using DSA keys and SSH2 by default as far as I can tell. All the other HOWTOs I’ve seen seem to deal with RSA keys and SSH1, and the instructions not surprisingly fail to work with SSH2. On each machine type ssh…

  • IPV6 Centos

    Edit /etc/sysconfig/network and set “NETWORKING_IPV6” to “no” Add the following to /etc/modprobe.conf : alias ipv6 off alias net-pf-10 off Run /sbin/chkconfig ip6tables off to disable the IPv6 firewall

  • VMWare on Centos 5

    rpm –import http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pub /etc/yum.repos.d/vmware-tools.repo [vmware-tools] name=VMware Tools for Red Hat Enterprise Linux $releasever – $basearch baseurl=http://packages.vmware.com/tools/esx/<esx-version>/rhel5/<arch> enabled=1 gpgcheck=1 yum install vmware-tools /etc/sysconfig/kernel INITRD_MODULES=pvscsi mkinitrd -f –with=pvscsi /boot/initrd-2.6.18-164.el5PAE.img 2.6.18-164.el5PAE mkinitrd -f –with=pvscsi /boot/initrd-`uname -r`.img `uname -r` För att kolla att pvscsi.ko finns med i initrd filen gzip -dc ../initrd.img | cpio -ivd

  • VemRingde.se AGI in Astersik (PERL) – Ubuntu

    För att kunna använda VemRingde.se API behöver man göra följande ändringar. Det finns säkert smartare lösningar än denna! Lägg till moduler i PERL: sudo cpan install Asterisk::AGI install LWP::UserAgent Filen: /usr/share/asterisk/agi-bin/vemringdese.agi (Grunden tagen ifrån http://apiwiki.vemringde.se/wiki/Asterisk_AGI_f%C3%B6r_vemringde_%28Perl%29) #!/usr/bin/perl -w use Asterisk::AGI; $AGI = new Asterisk::AGI; require LWP::UserAgent; my $ua = LWP::UserAgent->new; $AGI->verbose(“caller: ” . $ARGV[0]); my $response…

  • X11 program remote

    yum install xorg-x11-xauth yum install libXtst yum install xorg-X11-server-Xorg

  • IOstat

    lkp3 Linux 2.6.28-11-generic (lkp3)     01/29/2010     _x86_64_    (8 CPU) avg-cpu:  %user   %nice %system %iowait  %steal   %idle 0.47    0.01    4.14    5.07    0.00   90.74 Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn sda             127.79      4882.74      2847.06 2750630983 1603856106 sda1              0.01         0.59         0.00     330423          2 sda2              0.00         0.00         0.00          4          0 sda3             11.39         1.05       144.24     592232   81256144 sda4            116.39     …

  • sasc-ng – install

    Install SASC-NG From Dolot Jump to:navigation, search Read the *old* tutorial here: Install Open-SASC-NG Open-SASC-NG is dead, long live vdr-SASC-NG! Development on open-sasc-ng has halted a long time ago. Contents [hide] * 1 Introduction * 2 Preparation o 2.1 Got root? o 2.2 Installing dependencies * 3 Installing sasc-ng o 3.1 Getting sasc-ng source o…