The best script to monitor VMWare ESX using nagios was developed by Steve Shipway. 1. Download the script wget https://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”
how to install zabbix on centos
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 […]
script to autoinstall vmware tools
Login VSphere Choose the VM > Guest > Install VMware Tools Conect via Console VMWare vSphere (not SSH), run the script: copy/paste the script to vminst.sh #!/bin/bash mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom VMT=`/bin/ls /mnt/cdrom/VM*.gz |cut -d “/” -f4` cp -v […]
