MySQL

Install and Configure MySQL Cluster on CentOS 7

MySQL Cluster is designed to provide a MySQL compatible database with high availability and low latency. The MySQL Cluster technology is implemented through the NDB (Network DataBase) and NDBCLUSTER storage engines and provides shared-nothing clustering and auto-sharding for MySQL database systems. In the shared-nothing architecture, each of nodes has its own memory and disk, the […]

Red hat linux

PHP 5.6 on CentOS/RHEL 7.4 and 6.9 via Yum

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum: CentOS/RHEL 7.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm CentOS/RHEL 6.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm Remove old php version yum remove php* Now you can install PHP 5.6’s mod_php SAPI (along with an opcode cache) […]

nagios Red hat linux

Send Nagios SMS Alert with Gnokii

Installing Gnokii Requirements – intltool-0.35.0-2.i386.rpm tar -xzvf gnokii-0.6.28.tar.gz cd gnokii-0.6.28 ./configure make make install cp -Rdp /usr/share/doc/gnokii/sample/gnokiirc /root/.gnokiirc or cp -Rdp /usr/share/doc/gnokii/sample/gnokiirc /etc/gnokiirc configure Gnokii for Wavecom GSM modem #vim /root/.gnokiirc [global] port = /dev/ttyS0 model = AT initlength = default connection = serial use_locking = no serial_baudrate = 9600 smsc_timeout = 10 [xgnokii] allow_breakage […]

Red hat linux Shell scripting

AWK and Regular Expressions to Filter Text or String in Files

AWK is an interpreted programming language. It is very powerful and specially designed for text processing. AWK – Basic Examples This chapter describes several useful AWK commands and their appropriate examples. Consider a text file marks.txt to be processed with the following content − 1) Amit Physics 80 2) Rahul Maths 90 3) Shyam Biology […]

Red hat linux Web Hosting

Howto install sar & ksar system activity info in Centos / Redhat

The sar command collect, report, or save UNIX / Linux system activity information. It will save selected counters in the operating system to the /var/log/sa/sadd file. Fromlinux-logo the collected data, you get lots of information about your server: CPU utilization Memory paging and its utilization Network I/O, and transfer statistics Process creation activity All block […]

nagios Red hat linux

Send SNMP Traps from Nagios to Remote Management Host

1. Add ‘send snmp trap’ command to nagios vim /usr/local/nagios/etc/objects/commands.cfg define command{ command_name send_snmptrap command_line /usr/bin/snmptrap -v 2c -c public 10.50.24.34 ” NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s “$HOSTNAME$” nSvcDesc s “$SERVICEDESC$” nSvcStateID i $SERVICESTATEID$ nSvcOutput s “$SERVICEOUTPUT$” } 2. Add this event and enable the event to services which needed to send traps vim /usr/local/nagios/etc/objects/localhost.cfg define service{ […]