• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

enable

CloudWatch Notifications

September 7, 2022

How to give someone access to enable/disable CloudWatch notifications.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "cloudwatch:DescribeAlarms",
                "cloudwatch:EnableAlarmActions",
                "cloudwatch:DisableAlarmActions"
            ],
            "Effect": "Allow",
            "Resource": "*"
        }
    ]
}

{ "Version": "2012-10-17", "Statement": [ { "Action": [ "cloudwatch:DescribeAlarms", "cloudwatch:EnableAlarmActions", "cloudwatch:DisableAlarmActions" ], "Effect": "Allow", "Resource": "*" } ] }

Filed Under: Cloud Tagged With: aws, cloudwatch, disable, enable, notifications

Enable Core Dumps

December 13, 2021

Core dumps are triggered by kernel when a program crashses. It saves memory to a file.

How to enable core dumps.

ulimit -S -c unlimited

ulimit -S -c unlimited

Enable core dumps permanently. Edit /etc/security/limits.conf. Add the following.

* soft core unlimited

* soft core unlimited

Disable core dumps.

ulimit -S -c 0

ulimit -S -c 0

Disable core dumps permanently. Edit /etc/security/limits.conf. Add the following.

* soft core 0
* hard core 0

* soft core 0 * hard core 0

Filed Under: Linux Tagged With: core, disable, dumps, enable

AWS CloudWatch Alarms

October 25, 2021

How to enable and disable CloudWatch alarms

$ aws cloudwatch disable-alarm-actions --alarm-names myalarm --region us-east-1
$ aws cloudwatch enable-alarm-actions --alarm-names myalarm --region us-east-1

$ aws cloudwatch disable-alarm-actions --alarm-names myalarm --region us-east-1 $ aws cloudwatch enable-alarm-actions --alarm-names myalarm --region us-east-1

Filed Under: Cloud Tagged With: alarm, aws, cloudwatch, disable, enable

Install Syslog

June 2, 2021

How to install syslog-np on Centos 7.

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y reinstall ./epel-release-latest-7.noarch.rpm
chattr +i /etc/yum.repos.d/epel*
yum -y install syslog-ng

cd /tmp wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y reinstall ./epel-release-latest-7.noarch.rpm chattr +i /etc/yum.repos.d/epel* yum -y install syslog-ng

Enable syslog-np. Disable rsyslog.

systemctl enable syslog-ng
systemctl start syslog-ng
yum -y erase rsyslog

systemctl enable syslog-ng systemctl start syslog-ng yum -y erase rsyslog

Filed Under: Linux Tagged With: enable, install, rsyslog, syslog

HTTPD on Redhat & Centos

December 4, 2020

Here are the commands to start, stop, enable and get the status of Apache on RHEL and CentOS.

systemctl enable httpd  # enable on bootup
systemctl status httpd  # get status
systemctl start httpd   # start
systemctl stop httpd    # stop
systemctl restart httpd # restart

systemctl enable httpd # enable on bootup systemctl status httpd # get status systemctl start httpd # start systemctl stop httpd # stop systemctl restart httpd # restart

Filed Under: Linux Tagged With: centos, enable, redhat, start, status, stop

AWS Enable Enhance Network Support

October 13, 2020

When changing machine types, you may be asked to enable the latest ENA driver for Enhanced Network Support on an Amazon EC2 instance. There are several instructions depending on the Linux OS flavor. Here are the instructions to enable. In some cases, you may need to rebuild the kernel module. To verify that the ena module is installed, use the modinfo command as shown in the following example.

modinfo ena

modinfo ena

You also may have to enable the enhanced networking attribute on the instance.

aws ec2 modify-instance-attribute --instance-id instance_id --ena-support

aws ec2 modify-instance-attribute --instance-id instance_id --ena-support

Filed Under: Cloud Tagged With: aws, ec2, ena, enable, enhanced, modinfo, network, support

  • Home
  • About
  • Archives

Copyright © 2023