When using check_stats.pl on Centos 7 I got a known error but not so easy to fix… PROBLEM: # su – nrpe -c “/usr/lib64/nagios/plugins/check_stats.pl -C -w 90% -c 95%” Can’t locate Sys/Statistics/Linux.pm in @INC (@INC contains: /usr/lib64/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl […]
Relax and Recover
Relax and Recover (ReaR) http://relax-and-recover.org/ . Thread sobre ReaR na Symantec http://www.symantec.com/connect/forums/netbackup-linux-bare-metal-restore-using-open-source-relax-and-recover-rear . Configurando NFS server # service rpcbind start # service nfs start # service nfslock start # lvcreate –name LV_media –size 4G VG_ROOT # mkfs -t ext4 -O […]
iptables block country script
My own server is daily attacked by SSH scanner and bruteforce scripts. My fail2ban solution But as I get hammered by China’s ssh I got tired of it and block all China SSH access using iptables. The concept is simples, […]
apache tuneup
Apache Tune Up I was able to do about 4K concurrent connections with this setup. Using Centos 6.7 64bit Apache httpd-2.2.15-47.el6.centos.x86_64 a Virtual Machine 4x CPU’s and 4GBs of memory, I have 2 disks, one for /var and other for […]
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”
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 […]