Install Grafana on centos and Zabbix plugin



https://grafana.com/docs/grafana/latest/installation/rpm/
repo

create repo
For OSS / Open Source Software releases:
-----------------------------------------

vi /etc/yum.repos.d/grafana.repo

[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

yum install grafana -y
start the service

sudo systemctl daemon-reload

sudo systemctl start grafana-server

sudo
systemctl status grafana-server

Start at boot:


sudo systemctl enable grafana-server
modify iptables

cat /etc/sysconfig/iptables

*filter
:GRAFANA - DROP [0:0]

### GRAFANA
-A INPUT -s 0/0 -p tcp -m multiport --dports 3000 -j GRAFANA

restart iptables
iptables
cat /etc/sysconfig/iptables
   60  firefox &
   61  exit
   62  iptables -L --line-numbers   >>>> Before the "DROP" rule

   64  iptables -N GRAFANA
   67  iptables -I INPUT 10 -j GRAFANA
   68  iptables -L --line-numbers
   69  iptables -A GRAFANA -s 0/0 -p tcp --dport 3000 -j ACCEPT
   70  iptables -L --line-numbers

Save the iptables:
iptables-save > /etc/sysconfig/iptables
cat /etc/sysconfig/iptables
Testhttp://172.30.95.89:3000/login

Default:  admin / admin  >>>>>changed to admin / junioper123
Pluginhttps://grafana.com/grafana/plugins/alexanderzobnin-zabbix-app

grafana-cli plugins install alexanderzobnin-zabbix-app
restart the serversystemctl restart grafana-server

http://172.30.95.89:3000/login