Linux

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

Install RabbitMQ for vCloud Director 9

September 19, 2018 Jordansphere Linux

Here are the step-by-step instructions to install RabbitMQ. This install will be used for a vCloud Director 9.1 installation. Desired versions: Rabbit MQ :  3.7.7 Erlang:          20.1.7.1 (>19.3 is required for Rabbit MQ 3.7.7)   1.   Install EPEL yum -y install epel-release   2. Create Erlang Repo vi /etc/yum.repos.d/rabbitmq-erlang.repo Inset this […]

More

How to Setup NTP on CentOS 7

September 19, 2018 Jordansphere Linux

This is a quick start guide to set up NTP on Centos 7   1. Install NTP service yum install ntp   2.  Start service systemctl start ntpd   3.  Enable service systemctl enable ntpd   4. Edit NTP configuration vi /etc/ntp.conf Edit values for "server" eg # Use public servers from the pool.ntp.org project. # […]

More

centos 7, ntp, quick guide,

Installing Puppet Agent on Ubuntu 16.04

June 19, 2018 Jordansphere Linux

Problem: When trying to install the puppet agent on an Ubuntu 16.04 server the following error appeared Command:  ​curl -k https://puppet:8140/packages/current/install.bash | sudo bash   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed 100 25756  100 25756    0     0   162k      0 –:–:– –:–:– –:–:–  163k […]

More

Zabbix Graphs Showing Incorrect Time

March 16, 2018 Jordansphere Linux

Problem: After a new installation of Zabbix (appliance) 3.4.6 the time on the graphs were 2 hours ahead. The clock on the server was correct.   Solution Edit Zabbix configuration file vi /etc/apache2/conf-enabled/zabbix.conf   It appeared the timezone in the Zabbix settings is set to Europe/Riga Change php_value date.timezone Europe/Riga to you actual timezone for […]

More

Install Zabbix Agent on CentOS

March 16, 2018 Jordansphere Linux

The following describes how to install Zabbix agent 3.4.6 onto CentOS 6.9 1) Add Zabbix Repository rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm   2) Install Zabbix yum install -y zabbix-agent   3) . Edit zabbix_agentd.conf vi /etc/zabbix/zabbix_agentd.conf Server={Zabbix_Monitoring_server} Hostname={your_server_name}   4) Start Zabbix agent service service zabbix-agent start   5) Add Zabbix Agent service to start up scripts […]

More

Reset Lost Root Password – CentOS 7

January 4, 2018 Jordansphere Linux

Issue: I lost the password for my CentOS 7 virtual machine in my cloud VDC.    Resolution: To reset the root password we will firstly need to boot into single user mode. Use the following steps: 1)  Reboot the VM. During startup press "e" in grub menu  2. Find the line starting with linux16.   […]

More

centos 7, recover password centos, reset password centos,

Install Open VM Tools on CentOS 6

November 20, 2017 Jordansphere Linux

Use the following commands to install Open VM Tools (open-vm-tools) in CentOS 6   1. install EPEL repository  yum -y install epel-release   2. Install Open VM Tools yum -y install open-vm-tools   3. Start Open VM Tools service  service vmtoolsd start  

More

« Previous Posts

Powered by WordPress. Designed by elogi.