reset redhat 5 password +boot When you lost your root password in a RedHat Linux Based systems you should first have access to the console, (the machine itself). Power on, or reboot as needed. and as soon as you get […]
vbs script to check services
Script to check services, check_services.vbs I tried developing it so the services could be passed via arguments, but using check_nt (NC_Net) and vbscript I found it impossible when we came along multiple arguments containing spaces, its a shame 🙁 Maybe […]
Slow ssh login
Slow ssh login SSH session slow to start? It’s the DNS fault! Just add “UseDNS no” to /etc/ssh/sshd_config service sshd restart
How varnish can identify mobile users
How varnish can identify mobile users In this example it basically finds out via regex on the user-agent tag if the user is mobile if so it redirect to a mobile site. sub identify_device { unset req.http.hash-input; set req.http.X-Device = […]
script to check event viewer
I have written similar script to check for a single server but this time it scans a list of server. It still not integrated with nagios because of the time it takes to execute such script. It does requires 7z.exe […]
Nagios to check log vbs
I just wrote a quick plugin to check any txt file on windows for a certain keyword. I have written simillar plugins for linux but this one was done in vbs. ‘Script Check for keyword in a specific file ‘Author: […]
install yum centos 5
There is a simple way to install yum, even if you do not have the CD/DVD. CENTOS 5 64 bits. Just run rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-43.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpm […]
