How to use selenium with nagios_server 1. Install mozilla firefox headless(no GUI) yum install xorg-x11-server-Xvfb.x86_64 xfonts-base xfonts-75dpi xfonts-100dpi firefox ImageMagick.x86_64 — Starts firefox on virtual gui DISPLAY=:1 firefox http://google.com & — test and check Xvfb :1 -screen 1 1024x768x24 & […]
memcached 1.4.13 rpm
I have compiled the rpm for CentOS/RedHat 5.x 32bits and 64bits The steps are to create a rpm package from source. If you need to just install, download it x64bits x32bits Requires # yum install libevent livevent-devel (make sure its […]
Linux network tools
This is a small list of some really nice linux tools I recommend every sysadmin to have somewhere. dstat Combines vmstat, iostat, ifstat, netstat information and more http://dag.wieers.com/home-made/dstat/#documentation vnstat The best to monitor how much data was transfered tx/rxhttp://humdi.net/vnstat/ iftop […]
mountd: refused mount request: unmatched host
mountd: refused mount request: unmatched host Most likely the problem is on /etc/exports, add your IP or range after the directory you want to share. vim /etc/exports /opt/smr 172.17.0.0/16(rw,sync,no_root_squash) Check also /etc/hosts.allow /etc/hosts.deny Good material for troubleshooting: http://www.cs.bgu.ac.il/~arik/usail/network/nfs/tips.html http://osr507doc.sco.com/en/PERFORM/NFS_monitoring.html http://tldp.org/HOWTO/NFS-HOWTO/troubleshooting.html […]
yum cdrom repo
How to use the cdrom RedHat .iso I tested using Vmware ESX and RedHat 5.7 1 . Mount or insert the RedHat CD 2. Mount the cdrom mount /dev/cdrom /mnt/cdrom 3. Write the repo file vim /etc/yum.repos.d/rhel-cdrom.repo [rhel-cdrom] name=rhel-cdrom baseurl=file:/mnt/cdrom/Server […]
change linux hostname
change linux RedHat / CentOS hostname vim /etc/sysconfig/network HOSTNAME=servername vim /etc/hosts 10.10.10.10 servername hostname servername verify hostname service network restart
add new disk in linux
This is without using LVM. try fdisk -l to find the new disk path (as in /dev/sdxx) # fdisk -l use fdisk /dev/sdxx to create partition. # fdisk /dev/sdd1 n p 1 , t,83 w use mkfs to create a […]
