- Tren Galera, them user:
Quan tri tu xa
CREATE USER 'root'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;
yum update -y | |
yum install -y epel-release wget | |
wget https://mathias-kettner.de/support/1.2.8p21/check-mk-raw-1.2.8p21-el7-44.x86_64.rpm | |
yum install -y check-mk-raw-1.2.* | |
omd create site1 | |
omd start site1 | |
## Open port 80 for httpd | |
check_fw=`rpm -qa | grep firewalld` | |
setenforce 0 |
apt-get update | |
apt-get install wget gdebi-core -y | |
wget https://mathias-kettner.de/support/1.2.8p21/check-mk-raw-1.2.8p21_0.xenial_amd64.deb | |
echo y | gdebi check-mk-raw-1.2.8p21_0.xenial_amd64.deb | |
omd create site1 | |
omd start site1 | |
check_fw=`ufw status | grep -w "active"` | |
if [ -n "$check_fw" ] | |
then |
#user nobody; | |
worker_processes auto; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
Trước khi thực hiện, vui lòng tham khảo những bài viết sau:
Link bài chi tiết về ngưỡng: https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
Link tải plugin: https://github.com/nagios-plugins-rabbitmq/nagios-plugins-rabbitmq
Link hướng dẫn cài đặt: https://github.com/hoangdh/meditech-ghichep-nagios/blob/master/docs/thuchanh-nagios/5.Monitor-RabbitMQ.md
Chú thích
-H
: Hostname của RabbitMQ, trùng với tên hostname khai báo trên cluster RabbitMQ. Có thể sử dụng FQDN hoặc ghi vào file /etc/hosts
của máy OMD.
Trước khi thực hiện, vui lòng tham khảo những bài viết sau:
--hostname
: Địa chỉ server MySQL/MariaDB--port
: Cổng kết nối đến DB. Mặc định: 3306--socket
: Unix Socket của DB#!/bin/bash | |
# SMS Notify | |
####### | |
# | |
# Register free account: http://nexmo.com/ | |
# | |
######## | |
KEY="XXXXXXXX" | |
SECRET="XXXXXXXXXXXXXXX" |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use network installation | |
url --url="http://172.16.1.1/images/centos7_x64" | |
# Install/upgrade in graphic/text mode | |
install | |
graphical | |
# Fix your url into command | |
url --url http://172.16.1.1/images/ubuntu16_x64/ |