This script was written by me a while back (still has an old version of the CLI) I found a minor bug, when using non integer values (decimal values) causes a problem, bash does not handle it very well. Anyone […]
solr index command
Not sure if there is another better way to do it. But I wrote this script to perform full or delta imports. more details http://wiki.apache.org/solr/DataImportHandler #!/bin/bash # script to index Solr # by Felipe Ferreira Sept 2013 TYPE=$1 DATE=`date +%d_%m_%y` […]
How to find what process are using Swap
How to find what process are using Swap /proc/meminfo – This file reports statistics about memory usage on the system. It is used by free to report the amount of free and used memory (both physical and swap) on the […]
varnishadm ban
When cleaning the cache on varnish 3.0 there is a way to only ban the specific host. The command is: varnishadm -T localhost:1234 ban req.http.host ~ “site.com” && req.url ~ “/path”
How to get varnish client.ip behind ELB
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 […]
nagios vmware esx plugin
The best script to monitor VMWare ESX using nagios was developed by Steve Shipway. 1. Download the script wget http://felipeferreira.net/wp-content/uploads/2015/05/VMWare.zip unzip VMWare.zip cd VMWare chmod +x check_vmware.pl && sed -i -e ‘s/\r$//’ check_vmware.pl ./check_vmware.pl OBS: It is normal to get […]
solr peformance
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: Here is the code: #!/bin/bash # script to check how many erros in […]