Baixe o app para aproveitar ainda mais
Prévia do material em texto
Inst%l%ç(o do Gr%f%n% Verific%r % vers(o do Ubuntu c"t /etc/issue Inst%l%ç(o do Gr%f%n% wget https://s3-us-west-2."m"zon"ws.com/gr"f"n"-rele"ses/rele"se/ gr"f"n"_4.5.2_"md64.deb sudo dpkg -i gr"f"n"_4.5.2_"md64.deb Inst%l%ç(o do Colletcd "pt-get inst"ll collectd Inst%l%ç(o do Python, b%nco de d%dos, snmp, c%rbon, %p%che e etc "pt-get inst"ll python-memc"che "pt-get inst"ll snmp-mibs-downlo"der snmp "pt-get inst"ll memc"ched "pt-get inst"ll gr"phite-web gr"phite-c"rbon "p"che2 lib"p"che2-mod-wsgi "pt-tr"nsport-https ssl-cert "pt-get inst"ll m"ri"db-server-10.0 "pt-get inst"ll python-pymysql "pt-get inst"ll uuid Adicion%r nome % m%quin%: vim /etc/hostn"me Ex.: gr"f"n"."teky.net.br vim /etc/hosts Ex.: 127.0.0.1 loc"lhost 167.250.153.226 Gr"f"n"."teky.net.br Gr"f"n" # The following lines "re desir"ble for IPv6 c"p"ble hosts ::1 loc"lhost ip6-loc"lhost ip6-loopb"ck ff02::1 ip6-"llnodes ff02::2 ip6-"llrouters Edit%r Documentos: vim /etc/gr"phite/loc"l_settings.py uuid uuid | md5sum Cri%r b%nco de d%dos: mysql CREATE USER 'gr"phite'@'loc"lhost' IDENTIFIED BY 'h"gicepvjr'; CREATE DATABASE IF NOT EXISTS `gr"phite` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_gener"l_ci; GRANT ALL PRIVILEGES ON `gr"phite`.* TO 'gr"phite'@'loc"lhost'; gr"phite-m"n"ge syncdb Edit%r C%rbon: vim /etc/c"rbon/stor"ge-schem"s.conf Cri%r %rquivos C%rbon: vim /etc/c"rbon/c"rbon.conf vim /etc/c"rbon/rewrite-rules.conf local_settings.py.txt texto 10 KB storage-schemas.conf.txt texto 12 KB carbon.conf.txt texto 3 KB rewrite-rules.conf.txt texto 16 KB local_settings.py.txt texto 10 KB storage-schemas.conf.txt texto 12 KB carbon.conf.txt texto 3 KB rewrite-rules.conf.txt texto 16 KB vim /etc/c"rbon/stor"ge-"ggreg"tion.conf St%rt no serviço do C%rbon: systemctl st"rt c"rbon-c"che Configur%ç(o do collectd: cd /etc/collectd vim /etc/collectd/collectd.conf vim /etc/collectd/collection.conf Ex.: d"t"dir: "/v"r/lib/collectd/rrd/" libdir: "/usr/lib/collectd/" vim /etc/collectd/openx_types.db Arquivo snmp: vim /etc/snmp/snmp.conf Coment"r ultim" linh" Ex.: #mibs : ALL Configur%ç(o do Ap%che "2dissite 000-def"ult cp /usr/sh"re/gr"phite-web/"p"che2-gr"phite.conf /etc/"p"che2/sites- "v"il"ble vim /etc/"p"che2/sites-"v"il"ble/"p"che2-gr"phite.conf storage-aggregation.conf.txt texto 11 KB collectd.conf.txt texto 37 KB openx_types.db.txt texto 717 bytes storage-aggregation.conf.txt texto 11 KB collectd.conf.txt texto 37 KB openx_types.db.txt texto 717 bytes vim /etc/"p"che2/ports.conf "2ensite "p"che2-gr"phite systemctl rest"rt "p"che2 vim /etc/"p"che2/sites-"v"il"ble/"p"che2-gr"f"n".conf "2ensite "p"che2-gr"f"n" "2enmod proxy "2enmod proxy_http "2enmod ssl "2enmod xml2enc "2enmod rewrite CERTIFICADO sudo "pt-get upd"te sudo "pt-get inst"ll softw"re-properties-common sudo "dd-"pt-repository pp":certbot/certbot sudo "pt-get upd"te sudo "pt-get inst"ll python-certbot-"p"che sudo certbot --"p"che sudo certbot --"p"che certonly sudo certbot renew --dry-run certbot renew Acesso WEB gr%f%n%: apache2-graphite.conf.txt texto 14 KB ports.conf.txt texto 346 bytes apache2-grafana.conf.txt texto 15 KB apache2-graphite.conf.txt texto 14 KB ports.conf.txt texto 346 bytes apache2-grafana.conf.txt texto 15 KB http://ipdoservidor ou url jg com dns Acess"r D"t" Sources: Cri"r D"t" Source Def"ult: Cri"r opçio su"viz"r: Configur%ç(o do GrRficos: Snmpw"lk p"r" verific"r "s descrições d"s interf"ces: # snmpw"lk -v1 -c MK-ATEKY 172.31.254.8 ifAli"s Obs.: MK-ATEKY (é 1 Community snmp us1d1), (172.31.254.8 é o ip do equip1mento que serH monitor1do) Cri"r "rquivos dentro d" p"st" # cd /etc/colletcd/colletcd.conf.d/ Obs.: nome do "rquivo .conf Exemplo: Configuraçao de Hosts.txt texto 9 KB Configuraçao de Hosts.txt texto 9 KB
Compartilhar