Galera Arbitrator <http://galeracluster.com/documentation-webpages/arbitrator.html> is a member of Percona XtraDB Cluster that is used for voting in case you have a small number of servers (usually two) and don’t want to add any more resources. Galera Arbitrator does not need a dedicated server. It can be installed on a machine running some other application. Just make sure it has […]
How to gracefully reboot MariaDB Galera Cluster servers?
Cluster Configuration In this example configuration of two nodes, we assume that the servers are connected over private network. This allows direct connections without requiring SSH tunnels. The most important parts is to enable listening on IP protocol and to configure addresses and names of the cluster nodes. The config files are similar for each […]
Standard Macros in Nagios
Standard macros that are available in Nagios are listed here. On-demand macros and macros for custom variables are described here. Macro Validity Although macros can be used in all commands you define, not all macros may be “valid” in a particular type of command. For example, some macros may only be valid during service notification commands, […]
Sending SNMP Traps from Nagios
As well as receiving SNMP traps in Nagios, you can send SNMP traps from Nagios to a remote SNMP management station like HP OpenView (NNM) or the like. The easiest way to do this is to create a notification command that generates an SNMP trap. This way, you can use an SNMP management station as […]
Docker Cheat Sheet
Docker Terms This section defines some of the most useful Docker terms. Docker Image: A set of read-only files. These files are a part of an operating system that is required to run a Docker container. Dockerfile: A simple text file that contains all the commands a user could call in the command line to […]
Check SSL Certificate mismatch
You can check if an SSL certificate matches a Private Key by using the 3 easy commands below. For your SSL certificate: openssl x509 -noout -modulus -in <file>.crt | openssl md5 For your RSA private key: openssl rsa -noout -modulus -in <file>.key | openssl md5 For your CSR: openssl req -noout -modulus -in <file>.csr | […]
Firewalld Cheat Sheet
Notes and Tips To list all services firewalld is aware in an easy to read format use command firewall-cmd –get-services | tr ” ” “\n” Default firewalld service .xml files can be found under /usr/lib/firewalld/services For all commands that support the –zone= option if no zone is provided it will use the default zone. To make changes persistent add […]
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
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 […]
Setup Let’s Encrypt to Create SSL Certificates
Before you Begin Complete the steps for setting your Server / VPS hostname and timezone. Complete the steps in our Securing Your Server guide to create a standard user account, harden SSH access, and remove unnecessary network services. Update your server’s software packages:CentOS sudo yum update && sudo yum upgrade Debian / Ubuntu sudo apt […]