Red hat linux

Pacemaker Cheat Sheet

File and Directory Locations LOCATION DESCRIPTION /var/lib/pacemaker/cib/cib.xml Primary cluster configuration file /var/log/cluster/corosync.log Primary cluster log file /usr/lib/ocf/resource.d/heartbeat/ Directory where resource scripts are located Check Cluster Status COMMAND DESCRIPTION pcs cluster status Display status of cluster nodes pcs status –full (double dashes) Display detailed cluster status of nodes and resources pcs resource Display status of all […]

35-basic-linux-commands-in-sinhala
Red hat linux

35 Basic Linux Commands in Sinhala

1) pwd command ඔබ සිටින වත්මන් වැඩ කරන ඩිරෙක්ටරියේ (ෆෝල්ඩරයේ) මාර්ගය සොයා ගැනීමට pwd විධානය භාවිතා කරන්න . [prabath@mail ~]$ pwd /home/prabath 2) cal command වත්මන් මාසයේ දින දර්ශනය පෙන්වයි. [prabath@mail ~]$ cal November 2020 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 […]

Nagios android and IOS mobile notifications
nagios Red hat linux Shell scripting

Configure Android / IOS notificationfor Network Monitoring With Nagios

Download Source File This PHP API script reads Nagios status.dat file and return the JSON result. This API is desinged for Nagios Client unofficial Nagios status monitoring app. Step 1 Upload nath_status.php to your Nagios web root folder. ###Nagios Core’s 3.5.1 default Web Root folder Web Root Folder – Centos /usr/share/nagios/html/ ###Nagios Core’s default Web Root folder Web […]

Red hat linux

How to remove powered by phplist

If that’s what you want to do, the following hack will do it (it looks like a cleaner solution would require figuring out where the [SIGNATURE] in the email template is coming from and removing that). These instructions are for phplist version 2.10.2. Search lists/admin/sendemaillib.php for $text[“signature”] = “\n\n–\nPowered by PHPlist, www.phplist.com –\n\n”; Immediately after that line, add the line (or replace […]

MySQL Red hat linux

How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication?

This is the full step-by-step procedure to resync a master-slave replication from scratch: At the master: And copy the values of the result of the last command somewhere. Without closing the connection to the client (because it would release the read lock) issue the command to get a dump of the master: Now you can release the […]

Red hat linux

Install and configure LSYNCD on Centos 7

Enviroment: – Server01.192.168.30.201 – Server02.192.168.30.202 – Directory to be Sync : “/opt/web/htdocs/prompt and /opt/vxml ” 2.Step Key based authentication Configuration -Login to Master server & generate the public and Private keys using the following command: [root@server01 ~]# ssh-keygen -t rsa [root@server01 ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.30.202 2.Step Installation Lsyncd [root@server01 ~]# yum install epel-release [root@server01 […]

MySQL Red hat linux

Upgrade MySQL to Version 5.6 in CentOS

Backup all the database and stop mysql mysqldump -u (userid) -p (password) –all-databases > all-databases.sql service mysqld stop Download the Repo for MySql 5.6 wget http://dev.mysql.com/get/mysql-community-release-el6-3.noarch.rpm/from/http://repo.mysql.com/ Install the repository from the local file yum localinstall mysql-community-release-el6-3.noarch.rpm Install the latest MySql yum install mysql-community-server service mysqld start Configure MySQL to start automatically on Server Reboot chkconfig […]

Red hat linux

How to Set up Nginx High Availability with Pacemaker and Corosync

Prerequisites 2 or more CentOS 7 Serverpre web01       10.0.15.10 web02       10.0.15.11 web03       10.0.15.12 Floating IP Address 10.0.15.15 Root Privileges What we will do: Map the Host File Install Epel Repository and Nginx Install and Configure Pacemaker, Corosync, and Pcsd Create and Configure the Cluster Disable STONITH and Ignore the Quorum Policy Add the Floating-IP and […]