How to configure jenkins to run under different user other then tomcat6 account. I configured it to run a bash script using: sudo -u ubuntu /opt/script NOTE: inside the script debug it using whoami and env I had problems with […]
check_error_log
Yet another log monitoring script.. The date field is very specific for each system and I keep having to refix each time. I like this one about the way it works, it first find the date/time where we want to […]
check_procs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
When monitoring a server process/services using check_procs plugin On new servers x64 many times you will get this error # ./check_procs -bash: ./check_procs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory The solution is to install: glibc.i686 : The […]
yum download package
There is a way to only download the rpm package from a repository using RedHat/CentOS 6.x yum install yum-plugin-downloadonly yum install –downloadonly –downloaddir=/tmp nmap To download a package already installed use yum reinstall –downloaddir=/tmp –downloadonly php-common.x86_64
varnish performance analyser
A script to get the time of each requests and verify how long it took. Example req | [0,1[ | [1,2] | ]2,3] | ]3,4] | ]4,5] | <=10 | <=15 | >15 | min | […]
How to add a disk to lvm
Add disk and expand in a Logical Volume no reboot, but not for /root /(boot). Tested in Linux CentOS/RedHat 5.7 /var First add a disk in (VMWare) Scan echo “- – -” > /sys/class/scsi_host/host0/scan fdisk -l fdisk /dev/sdb n,p,1,w Format […]
vimrc example
This is a nice vi / vim color schema Edit ~/.vimrc set cindent set shiftwidth=3 set tabstop=3 set expandtab set ruler ” some colors: “white on black” hi normal ctermfg=white ctermbg=black guifg=white guibg=black hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black […]