Linux

Init: Private key not found – Apache Wont Start on CentOS

October 29, 2019 Jordansphere Apache

Problem When attempting to update a certificate in Apache the webserver would not restart. Apache Error Logs: [Tue Oct 29 14:42:07 2019] [error] Init: Private key not found [Tue Oct 29 14:42:07 2019] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag [Tue Oct 29 14:42:07 2019] [error] SSL Library Error: 218640442 error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 […]

More

apache, centos, Init: Private key not found,

Script to Copy Yesterdays DB Backup to Remote Site

October 9, 2019 Jordansphere Linux

The following script will pick out yesterdays backup file and copy it over to a remote site using SCP Note: The format of the backup files are in this format : db-08-10-2019.bak.gz Note: You will need to install sshpass (eg yum -y install sshpass) and be comfortable with your password being in cleartext. #!/usr/bin/bash # […]

More

 User “postgres” Has No Password Assigned

September 25, 2019 Jordansphere Linux

Problem When trying to remotely connect to Postgres 10.10 install for the first time I got and authentication error via pgadmin From the log files (/var/lib/pgsql/10/data/log/postgresql-Wed.log) 2019-09-25 14:05:38.970 BST [22665] FATAL:  password authentication failed for user "postgres" 2019-09-25 14:05:38.970 BST [22665] DETAIL:  User "postgres" has no password assigned.         Connection matched pg_hba.conf […]

More

Script to Customize CentOS 7 Install in a VMware Environment

September 16, 2019 Jordansphere Linux

#!/bin/bash echo "#######################################################################"; echo "This script will Update the OS, install useful tools and configure NTP"; echo "#######################################################################"; #Update OS yum update -y #install useful tools yum install telnet -y yum install bind-utils -y # install vmware tools yum install -y open-vm-tools systemctl enable vmtoolsd.service systemctl status vmtoolsd.service # Disable selinux /usr/bin/sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config […]

More

Route Commands on ESXi, VCSA, Linux & Windows

August 28, 2019 Jordansphere Linux

Sample route commands    Windows Show routing table route print Add a persistent route ROUTE -p ADD 10.10.129.0 MASK 255.255.255.0 10.5.72.254   ESXi Show routing table esxcfg-route -l  Show routing table for specific stack esxcfg-route -l -N (stack name) Add route esxcli network ip route ipv4 add –gateway 10.5.72.254 –network 10.10.129.0/24   VCSA Show routing […]

More

routing table ESxi, routing table Linux, routing table VCSA, routing table Windows, static route Centos,

Upgrade Zabbix from 3.4 to 4.0 with Pacemaker/Corosync

February 6, 2019 Jordansphere Linux

Here are the instructions for upgrading Zabbix from 3.4 to 4.0 in a HA setup in a  Pacemaker and Corosync environment. In this particular setup there are 6 servers – depicted below Two web front ends Two Zabbix Servers Two DB servers   Steps Pre-requisite: As this was running in a VMware environment I snapshotted each […]

More

3.4 to 4.0, corosync, pacemaker, Upgrade Zabbix,

UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

December 6, 2018 Jordansphere Linux

Problem A CentOS VM was rebooted but failed to start with the following error: /dev/ampper/VolGroup-lv_root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY Solution 1)  Enter CLI {Enter root password} 2) Run filesystem check . In my case. # fsck -y /dev/ampper/VolGroup-lv_root 3 Reboot system # reboot  

More

Backup Postgres DB and Rotate using Logrotate – CentOS

November 5, 2018 Jordansphere Linux

Here is a rudimentary script to backup a specific Postgres DB. Logrotate then takes care of the log rotation. As you'll see below we will keep 7 days worth of compressed files.   #! /bin/bash # This script is called from logrotate /etc/logrotate.d/my-dumps # It backs up myDB every evening and logrotate takes care of compression […]

More

automatically backup postrgres database,

Install NRPE on CentOS 7

October 26, 2018 Jordansphere Linux

1) Install required packages yum -y install wget openssl-devel 2)  Download latest NRPE agent   cd /tmp wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz   3)  Unzip NRPEagent tar xzf linux-nrpe-agent.tar.gz 4)  Install agent   cd linux-nrpe-agent ./fullinstall You will get asked which hosts to add. include your Nagios Server here In this case my Nagios server is 10.0.0.50 6)  […]

More

Install Postgres 10 for vCloud Director 9.5

October 25, 2018 Jordansphere Database

Here are the steps to install Postgres 10 on CentOS 7 Spec: OS:          CentOS 7 DB:          Postgres 10.x RAM:       16GB vCPU:      4 HDD:       100 GB   OS Installation: Use Guided GUI installation. Select to partition manually so that all data is on /root LVM.    […]

More

« Previous Posts

Powered by WordPress. Designed by elogi.