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 […]
awstats
I use the good old awstats to find out how may site hits and usage is going. Also google analytics… feel free to take a look http://stats.felipeferreira.net/
linux two interfaces same subnet
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 vi /etc/sysctl.conf net.ipv4.conf.default.rp_filter = 2 net.ipv4.conf.all.rp_filter = […]
sudo apt-get update behind proxy
When using sudo apt-get update behind a proxy you must do visudo Defaults env_keep = “http_proxy https_proxy ftp_proxy DISPLAY XAUTHORITY”
check process uptime
Simple script to get any linux process uptime. It could have been done using the /proc/PID too. Here is the code: #!/bin/bash # Script to get a process uptime, alerts if process time is under CRIT value # can be […]