How to install Zabbix yum -y update yum -y install httpd php php-cli php php-ctype php-bcmath php-xmlreader php-xmlwriter php-xmlwriterfping libcurl libiksemel net-snmp php-net-socket php-mbstring php-gettext mysql mysql-server mysql-devel.x86_64 php-mysql.x86_64 libxml2-devel.x86_64 libxml2.x86_64 libxml2-static.x86_64 net-snmp-devel.x86_64 net-snmp-libs.x86_64 net-snmp-utils.x86_64 libcurl-devel.x86_64 libcurl.x86_64 curl.x86_64 gd.x86_64 gd-progs.x86_64 […]
script to autoinstall vmware tools
Login VSphere Choose the VM > Guest > Install VMware Tools Conect via Console VMWare vSphere (not SSH), run the script: copy/paste the script to vminst.sh #!/bin/bash mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom VMT=`/bin/ls /mnt/cdrom/VM*.gz |cut -d “/” -f4` cp -v […]
error while loading shared libraries: libssl.so.6
ERROR: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory or error while loading shared libraries: libssl.so.6: wrong ELF class: ELFCLASS32 nagios check_tcp and check_http may get this errors because they use a […]
rdesktop ERROR: recv: Connection reset by peer
rdesktop ERROR: recv: Connection reset by peer Solution: Run > SystemPropertiesRemote.exe deselect “Allow connections only from computers running Remote Desktop with NLA” Run > mmc Add SnapIn > Terminal Services Configuration RDP-Tcp (Right Click Properties) Encryption – Security layer : […]
How to restream mms to wowza
How to restream mms to wowza (Centos 6 and Linux AMI) Add these repos /etc/yum.repos.d/centos.repo [centos] name=CentOS-6 – Base baseurl=http://mirror.centos.org/centos/6/os/x86_64/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 enabled=1 priority=1 protect=1 includepkgs=SDL libtheora gsm libdc1394 libdrm liboil mesa-dri-drivers mesa-dri1-drivers mesa-dri-filesystem libraw1394 libpciaccess cppunit libLLVM /etc/yum.repos.d/dag.repo [dag] […]
CentOS7 change interface name
In CentOS7 or RedHat7 again we have funky strange network interfaces names… To change the name back to eth0 just follow: 1. Rename the device name vi /etc/sysconfig/network-scripts/ifcfg-ens** 2. Rename the file mv /etc/sysconfig/network-scripts/ifcfg-ens192 /etc/sysconfig/network-scripts/ifcfg-eth0 3. add net.ifnames=0 biosdevname=0 to […]
Benchmark a SSD
I used the sysbench tool, more info at sysbench –test=fileio –file-total-size=1G prepare sysbench –test=fileio –file-total-size=1G –file-test-mode=rndrw –max-time=300 –max-requests=0 run sysbench –test=fileio –file-total-size=1G cleanup RESULT: sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 […]