สอนติดตั้ง Grafana to Plot Beautiful Graphs from Zabbix on CentOS 7

สอนติดตั้ง Grafana เพื่อทำงานร่วมกับ Zabbix Server on CentOS7

    ขั้นตอนที่ 1 
         เพิ่ม Repo ใน CentOS7 โดยไปที่ 
         [root@zabbix ~]# cd /etc/yum.repos.d/
        
        สร้างไฟล์ grafana.repo
        [root@zabbix ~]# vi grafana.repo

        เพิ่มข้อความนี้ในไฟล์ grafana.repo

[grafana]
name=grafana
baseurl=https://packagecloud.io/grafana/stable/el/6/$basearch
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt


  เสร็จแล้ว บันทึกแล้วปิด

  [root@zabbix ~]# reboot
  [root@zabbix ~]# yum update -y

   ขั้นตอนที่ 2 เริ่มติดตั้ง Grafana
 
   [root@zabbix ~]#  yum install -y grafana


   ติดตั้ง Grafana Service
   [root@zabbix ~]#  systemctl daemon-reload
   [root@zabbix ~]#  systemctl start grafana-server

   ตรวจสอบว่า Service ทำงานหรือไม่
   [root@zabbix ~]# systemctl status grafana-server

    เปิดให้ Service Grafana-Server ทำงานทุกครั้งที่เปิดเครื่อง
    [root@zabbix ~]#  systemctl enable grafana-server

    เริ่มติดตั้ง Zabbix plugin for Grafana
    [root@zabbix ~]#  grafana-cli plugins install alexanderzobnin-zabbix-app

    [root@zabbix ~]#  systemctl restart grafana-server

    อนุญาติ Port ของ Grafana ที่ Firewall

    [root@localhost~]# firewall-cmd --permanent --add-port=3000/tcp
    [root@localhost~]# firewall-cmd --reload
    [root@localhost~]# systemctl restart httpd

เสร็จสิ้นขั้นตอนการติดตั้ง 

ทดลองเข้าระบบได้ที่ 
http:// ไอพี หรือ ชื่อของ Server :3000 ตามด้วย Port 3000

User :  admin 
Password : admin


    

Share:

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

ค้นหาบล็อกนี้

ขับเคลื่อนโดย Blogger.

ผู้ให้ข้อมูลร่วมกัน

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Pages

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.