android 4.4.4 how to hard reset factory moto g

June 29th, 2015 No comments

To hard reset the Motorola Moto G Android 4.4.4
Make sure the phone has over 50% of battery, remove the SIM card

Continue reading “android 4.4.4 how to hard reset factory moto g” »

Categories: Uncategorized Tags: , , , ,

varnishadm ban

June 24th, 2015 No comments

When cleaning the cache on varnish 3.0 there is a way to only ban the specific host.

The command is:

Continue reading “varnishadm ban” »

Categories: Varnish Tags: , , , , , ,

How to get varnish client.ip behind ELB

June 19th, 2015 No comments

How to get varnish client.ip behind ELB

I needed to filter access by IP using varnish acl, but when your varnish is behind a Amazon ELB Load Balancer, by default it doesn’t work, so here is the solution! Tested using Linux Amazon Linux AMI release 2015.03

Continue reading “How to get varnish client.ip behind ELB” »

nagios vmware esx plugin

May 26th, 2015 No comments

The best script to monitor VMWare ESX using nagios was
developed by Steve Shipway.

Continue reading “nagios vmware esx plugin” »

Categories: HowTo, Linux, Nagios Tags: , , , ,

solr peformance

May 25th, 2015 No comments

How to monitor Solr performance under Tomcat.

I keep track of how many access and the performance, based on response time.
For this I have 2 scripts:

Continue reading “solr peformance” »

Categories: Linux Tags: , , ,


May 25th, 2015 No comments

I use the good old awstats to find out how may site hits and usage is going.
Also google analytics…

Continue reading “awstats” »

Categories: Linux Tags:

linux two interfaces same subnet

February 27th, 2015 No comments

On RHEL6 and RHEL7 once you add a second interface on the same subnet, it does not work ( no ping)
The cause of the problem is a change on the parameter rp_filter

Continue reading “linux two interfaces same subnet” »

Categories: HowTo, Windows Tags: , , ,

sudo apt-get update behind proxy

February 26th, 2015 No comments

When using sudo apt-get update behind a proxy you must do
Defaults env_keep = “http_proxy https_proxy ftp_proxy DISPLAY XAUTHORITY”

Categories: HowTo, Linux Tags: , , , , ,

check process uptime

December 10th, 2014 No comments

Simple script to get any linux process uptime.
It could have been done using the /proc/PID too.

Here is the code:

Continue reading “check process uptime” »

Categories: Nagios, plugins Tags: , , , ,

how to install zabbix on centos

November 19th, 2014 No comments

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 php-gd.x86_64 gcc

Continue reading “how to install zabbix on centos” »

Categories: HowTo, Linux Tags: , , , ,