AWS-issue with Cloud-init service/cloud-config script

In certain cases, the cloud-init service might stop and that would cause the AWS instance to not boot. Use the following steps to recover:

Launch a new recovery instance of type t2.micro(x86x64) in the same Availability Zone (ie us-east-1a). Ensure that you enable a public ip or associate an elastic ip with this recovery instance to access . . . → Read More: AWS-issue with Cloud-init service/cloud-config script

AWS – Elasticbeanstalk HTTPS Single Instance

To deploy PHP application on AWS Elastic Beanstalk (HTTPS) make sure to include the following as part of your configuration file

files:
/etc/nginx/conf.d/https.conf:
mode: “000644”
owner: root
group: root
content: |
# HTTPS server

. . . → Read More: AWS – Elasticbeanstalk HTTPS Single Instance

Install Zabbix Agent on CentOS7

First, download the rpm package:

$ sudo rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm

Next, install it using yum:

$ sudo yum -y install zabbix-agent

Make sure to edit /etc/zabbix/zabbix-agent.conf  with the proper zabbix server info/config.

Finally, to start the zabbix service:

$ sudo service . . . → Read More: Install Zabbix Agent on CentOS7

How to upgarde Zabbix – Ubuntu 18

The upgrade is quite simple in Ubuntu. As always, do not forget to backup your files.

Before proceeding with the upgrade, make sure to stop both zabbix server and zabbix agent service:

$ sudo service zabbix-server stop

$ sudo service zabbix-agent stop

If the installation was official Zabbix repo, then the following command will do the . . . → Read More: How to upgarde Zabbix – Ubuntu 18

MS SQL Hyper-V Replication

If you are running MS SQL on Hyper-V, I highly recommend that you enable hyper-V replication. Hyper-v replication is recommended for DR (disaster recovery), however, you can use it if you have two servers within the same network/data-center.

When enabling replication, you must have a valid SSL certificate if you do NOT have an active directory. So . . . → Read More: MS SQL Hyper-V Replication

Audiocodes IP Address

In some cases, you might not be able to access Audiocodes after resetting the unit. This could happen if you are running a DHCP server that response to bootp request.

Audiocodes, whether you have assigned an IP or it is set to DHCP, will send a bootP request…

I have seen this happens when pfsense is used as . . . → Read More: Audiocodes IP Address

SMS to Kuwait – SMS to Saudi Arabia

I came across a great web site for sending SMS to Kuwait and other gulf countries such as Saudi Arabia, United Arab Emirates, Qatar and Bahrain.

They provide direct routes and offer 100% delivery. here is the . . . → Read More: SMS to Kuwait – SMS to Saudi Arabia

Audiocodes Mediant 1000 might lose its network connection if using PoE switch

If you connect Mediant 1000 M1k to a PoE enabled port on a switch, you might lose network connectivity to Audiocodes every 20 seconds. To resolve this issue, simply disable PoE feature on the switch and that should fix the problem.

I had the same issue with Audiocodes when I had it connected to Juniper EX 3300 . . . → Read More: Audiocodes Mediant 1000 might lose its network connection if using PoE switch

Ping NetBIOS name from Debian

In order to ping a Windows hostname/NetBios from Debian you must install the following package:

:~# apt-get install winbind

Please note that you must also have samba installed and enabled the following line under /etc/samba/smb.conf:

wins support = yes
name resolve order = lmhosts host . . . → Read More: Ping NetBIOS name from Debian

MS SQL how to replace line feed or carriage return with space

SQL 2000, SQL 2005 and SQL 2008

You can replace carriage return and line feed in a field by running the following query:

update tbl1 set field1 = replace(field1,0x0a,’ ‘)

And
update tbl1 set field1 = . . . → Read More: MS SQL how to replace line feed or carriage return with space