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 […]
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 […]
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 […]
How to restream mms to wowza
How to restream mms to wowza (Centos 6 and Linux AMI) Add these repos /etc/yum.repos.d/centos.repo [centos] name=CentOS-6 – Base baseurl=http://mirror.centos.org/centos/6/os/x86_64/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 enabled=1 priority=1 protect=1 includepkgs=SDL libtheora gsm libdc1394 libdrm liboil mesa-dri-drivers mesa-dri1-drivers mesa-dri-filesystem libraw1394 libpciaccess cppunit libLLVM /etc/yum.repos.d/dag.repo [dag] […]
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found
ERROR: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found Testes on CentOS 6.4 x64 with Tomcat 6 Instalar o APR, ——————- Install pre-req: yum install apr apr-devel openssl-devel gcc Download tomcat-native-1.1.30-src.tar.gz: […]