Install AWS SSM agent on CentOS 7 on Prem

Under Systems Manager go to Hybrid Activation’s and create activation Get activation code and ID Download ssm manager with this link replacing region names with your region wget Replace the placeholder values with the Activation Code and Activation ID generated when you create a managed-instance activation, and with the identifier of the AWS Region

Collecting Logs from Amazon EC2 CentOS Instances

Create IAM roles or users that enable the agent to collect metrics from the server and optionally to integrate with AWS Systems Manager. Install the agent package. Modify the CloudWatch agent configuration file and specify the metrics that you want to collect. Install and start the agent on your servers. As you install the agent

Monitor users activity on Linux system with psacct

We will look into tracking users activities on Linux – CentOS or REL system in particular. psacct is application for monitoring users activities on the system. In many cases you would like to know what was done on the system, while someone else working on it. 1. Lest install psacct utilitie yum install psacct 2.

Install and configure Zimbra 8.8 PolicyD

This example works for single server running Zimbra 8.8 su - zimbra zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd Next step must be executed as root cd /opt/zimbra/data/httpd/htdocs/ ln -s ln -s ../../cbpolicyd/share/webui Edit config file putting “#” on front of all the lines beginning with $DB_DSN and adding the following line just before the

How to extend Centos 7 Linux LVM partition in AWS

This is how you would expand / partition on CenetOS based AWS image lsblk Install grpowpart yum install cloud-utils-growpart -y Grow partition growpart /dev/xvda 2 Reboot your instance Extend Volume pvresize /dev/xvda2 Extend logical volume lvextend -l +100%FREE /dev/mapper/centos-root Extend filesystem For ext4 resize2fs /dev/mapper/centos-root For XFS xfs_growfs /dev/centos/root

How to enable PolicyD on Zimbra server

Lets take a look at how to activate policyd 1. Enable policy su – zimbra zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd 2. Activate web interface Activate Policyd WebUI ( must run as root ) cd /opt/zimbra/data/httpd/htdocs/ ln -s /opt/zimbra/common/share/webui/ . 3. Edit configuration file edit /opt/zimbra/common/share/webui/includes/config.php #$DB_DSN=”sqlite:////tmp/cluebringer.sqlite”; #$DB_DSN=”mysql:host=localhost;dbname=cluebringer”; $DB_DSN=”sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb”; $DB_USER=”root”; 4. Setup .htaccess file

CentOS 7 Deploy samba share with AD integration

We will use SAMBA and WINBIND to setup shares and to join Microsoft domain Install all necessary packages using yum manager. yum -y install samba-winbind samba-winbind-clients pam_krb5 krb5-workstation mdadm samba samba-client realmd Join your windows domain. In our case the name of the domain is lab.local realm join --user=administrator --client-software=winbind lab.local Start winbind service and

Linux system monitoring and statistics gathering

We will look at some Linux commands which will help us monitor system performance, gather statistics and view historical resource usage. Monitoring connections with ss command ss should be preinstalled for most modern Linux distributions Show established TCP connection ss -t Show established UDP connections ss -u Show ports listening for TCP connections ss -ltn

Install SoftEther server on Linux CentOS 7.2

We will take a look at hot to install SoftEther VPN on CentOS 7 and connect to it from Windows system running VPN manager. 1. We install CentOS 7 minimal with firewalld and selinux disabled. Make sure gcc is installed with all updates yum update -y yum install gcc 2. Download softether-vpnserver* package for Linux

How to install zabbix monitoring tool on CentOS7

This is very quick how to on installing zabbix on CentOS 7. Install LAMP ' yum -y install httpd systemctl start httpd systemctl enable httpd yum -y install epel-release rpm -Uvh yum -y install mod_php72w php72w-cli php72w-common php72w-devel php72w-pear php72w-gd php72w-mbstring php72w-mysql php72w-xml php72w-bcmath yum -y install mariadb-server systemctl start mariadb systemctl enable mariadb