zabbix+grafana deploy distributed monitoring system

Preface: Zabbix is an excellent distributed monitoring server, which consists of two parts: 1. "ZABBIX server" is used to collect and display data on the web 2. "ZABBIX agent" is used to collect data and send it to the server   When Zabbix was installed, three virtual machines were used to test whether the monito ...

Posted on Wed, 27 May 2020 01:54:43 -0700 by apocryia

Redis High Availability Cluster Practice

1. Environmental Instructions redis version: Redis-5.0.8System version: Redhat6.8 Host IP redispri1 110.50.1.55 redispri2 110.50.1.56 redispri3 110.50.1.57 redisbck1 110.50.1.57 redisbck2 110.50.1.59 redisbck3 110.50.1.60 2. Build a redis highly available cluster Each node closes NetworkManager, selinux=disable # /etc/init.d ...

Posted on Mon, 18 May 2020 09:34:46 -0700 by kansaschuck

Linux script for defining variables

The existing two pieces of code are basically the same, but the variables are changed, and the others are unchanged, but the results are different during execution Code 1: vi back.sh #backup import file,such as /etc/rc.local /var/spool/cron/root IP=$(ifconfig eth1|sed -nr '2s#.*addr:(.*) B.*#\1#gp') Path=/backup if [ $(date +%w) -eq 0 ] then ...

Posted on Fri, 01 May 2020 22:38:25 -0700 by tigomark

Public network virtual machine sshd anti brute force attack

Brute force bot attempts to use various user names and passwords to crack. For example, I found the following user names under / var/log/secure, and they try to use ssh to log in to my public virtual host. sed -n '/Jan 19/p' /var/log/secure | sed -n '/invalid user/p' | awk '{print $(NF-1)}' | sort | uniq 0 0101 1 ...

Posted on Fri, 01 May 2020 21:36:08 -0700 by bobbybrown

CENTER OS7 turn off firewall

CentOS 7.0 uses firewall as the firewall by default, and the previous version used iptables. Therefore, you cannot view the firewall status by executing the following command in CentOS 7. [root@localhost ~]# service iptables status Redirecting to /bin/systemctl status iptables.service Unit iptables.service could not be found. ...

Posted on Sat, 04 Apr 2020 09:40:53 -0700 by uNF

Firewall policy of Mysql remote access in Centos7

Firewall policy - port access Setup steps Detection port If you cannot connect to Mysql remotely, check whether the default 3306 port allows access: [root@localhost /]# iptables -L -n|grep 3306 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:3306 allow access to If not, you ne ...

Posted on Fri, 03 Apr 2020 03:22:47 -0700 by jennyp

flannel-a NI network plugin for k8s

k8s designed the network model, but gave the implementation to the network plug-in, and the main function of the CNI network plug-in is POD cross-host resource access to each other. flannel installation: There are two main operations for hdss7-21 and hdss7-22: wget https://github.com/coreos/flannel/releases/download/v0.11.0/flannel-v0.11.0-lin ...

Posted on Fri, 27 Mar 2020 10:58:28 -0700 by mikeweb

squid cache server -- traditional mode

1, Working mechanism of web agentTwo serversIn the traditional mode, the client knows that it is an agentIn transparent mode, the client does not need to be set2, Basic types of agents Traditional agent: suitable for internet, need to specify the server clearly Transparent proxy: clients do not need to specify the address and port of the prox ...

Posted on Wed, 25 Mar 2020 20:37:24 -0700 by TGLMan

Summary of problems in k8s starting container application

1. Create a deployment of nginx, and view the ip information allocated by the pod. ping is used on the node node where the pod is located, but not on the master node Analysis: the first thing I think about is that flanneld is not running normally on two nodes 1. View the network card information of flanneld [root@k8s2-1 ~]# ifconfig docker0: f ...

Posted on Sat, 14 Mar 2020 08:45:29 -0700 by timbo6585

Use postfix and dovecot to deploy your mail system--Learn Notes

The experimental environment is redhat 7.0 systemAs shown in the figure aboveClient uses outlook to send and receive mailThe server sends outgoing mail using postfix, receives mail using dovecot, and forwards the changed user 1. Install dns domain name resolution service 1.1 Configure the server host name, which is consistent with the sending ...

Posted on Sat, 15 Feb 2020 08:27:43 -0800 by murpe