Instalacja Graphite na Ubuntu 16.10.
-
- Sędziwy Jeż
- Posty: 40
- Rejestracja: 08 lip 2016, 10:40
- Środowisko graficzne: GNOME
- Architektura: x86_64
Instalacja Graphite na Ubuntu 16.10.
Witam wszystkich ponownie.
Mam Ubuntu 16.10 z systemd.
Jak zainstalowac Graphite.
Zmarnowalem cala sobote i bezowocnie, moze ktos pomoze?
Mam Ubuntu 16.10 z systemd.
Jak zainstalowac Graphite.
Zmarnowalem cala sobote i bezowocnie, moze ktos pomoze?
- mario_7
- Administrator
- Posty: 8598
- Rejestracja: 30 sie 2006, 13:11
- Płeć: Mężczyzna
- Wersja Ubuntu: 20.04
- Środowisko graficzne: GNOME
- Architektura: x86_64
Re: Instalacja Graphite na Ubuntu 16.10.
Czyli co robiłeś? Co nie działa? Jakie były błędy?
-
- Sędziwy Jeż
- Posty: 40
- Rejestracja: 08 lip 2016, 10:40
- Środowisko graficzne: GNOME
- Architektura: x86_64
Re: Instalacja Graphite na Ubuntu 16.10.
Celem dzialania byla wizualizacja logow iptables za pomoca Graphite.
Korzystalem z tutoriala: https://www.unixmen.com/full-monitoring ... sd-part-2/.
Zrobilem do "Configure storage schemas"
Problem pojawil sie z "retentions" Wpisywalem rozne a problem ciagle byl.
http://imgur.com/a/rjknm
Sciezka do pliku:
Konfiguracja retentions:
Teraz jestem w tym miejscu.
Mysle, ze to moj blad bo mam Ubuntu 16.10 z systemd gdzie Graphite powinno byc usluga systemd.
Przeszukalem Internet nigdzie ani slowa jak zainstalowac i skonfigurowac Graphite jako usluge systemd.
Konfiguracja pliku uslugi carbon-cache.service:
Ten komunikat:
sugeruje (moim zdaniem) ze aplikacja usiluje polaczyc sie z Upstart (ktorego juz nie ma) a trafia na systemd jako nastepce.
http://imgur.com/a/GM3EU
Mysle,ze warto rozwiazac ten problem i miec czytelna wizualizacje logow.
Korzystalem z tutoriala: https://www.unixmen.com/full-monitoring ... sd-part-2/.
Zrobilem do "Configure storage schemas"
Problem pojawil sie z "retentions" Wpisywalem rozne a problem ciagle byl.
http://imgur.com/a/rjknm
Sciezka do pliku:
Kod: Zaznacz cały
/etc/carbon/storage-schemas.conf
Kod: Zaznacz cały
[collectd]
priority = 100
pattern = ^collectd.*
retentions = 10s:4h, 1m:3d, 5m:8d, 15m:32d, 1h:1y
Mysle, ze to moj blad bo mam Ubuntu 16.10 z systemd gdzie Graphite powinno byc usluga systemd.
Przeszukalem Internet nigdzie ani slowa jak zainstalowac i skonfigurowac Graphite jako usluge systemd.
Kod: Zaznacz cały
root@mike-desktop:/home/mike# systemctl status carbon-cache.service
● carbon-cache.service - Graphite Carbon Cache
Loaded: loaded (/lib/systemd/system/carbon-cache.service; enabled; vendor pre
Active: failed (Result: exit-code) since Sun 2017-04-23 15:24:05 IST; 15s ago
Process: 15775 ExecStart=/usr/bin/carbon-cache --config=/etc/carbon/carbon.con
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: from carbon.writer import
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: File "/usr/lib/python2.7/dis
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: SCHEMAS = loadStorageSchem
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: File "/usr/lib/python2.7/dis
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: retentions = options['rete
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: KeyError: 'retentions'
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Control process e
Apr 23 15:24:05 mike-desktop systemd[1]: Failed to start Graphite Carbon Cache.
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Unit entered fail
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Failed with resul
root@mike-desktop:/home/mike# journalctl -xe
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: File "/usr/lib/python2.7/dis
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: retentions = options['rete
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: KeyError: 'retentions'
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Control process e
Apr 23 15:24:05 mike-desktop systemd[1]: Failed to start Graphite Carbon Cache.
-- Subject: Unit carbon-cache.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit carbon-cache.service has failed.
--
-- The result is failed.
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Unit entered fail
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Failed with resul
Apr 23 15:24:06 mike-desktop kernel: OUTPUTIN= OUT=lo SRC=127.0.0.1 DST=127.0.0.
Apr 23 15:24:06 mike-desktop kernel: OUTPUTIN= OUT=lo SRC=127.0.0.1 DST=127.0.0.
Apr 23 15:24:12 mike-desktop kernel: iptables denied: IN=enp2s0 OUT= MAC=60:a4:4
Apr 23 15:24:22 mike-desktop kernel: iptables denied: IN=enp2s0 OUT= MAC=60:a4:4
Apr 23 15:24:26 mike-desktop kernel: OUTPUTIN= OUT=lo SRC=127.0.0.1 DST=127.0.0.
Apr 23 15:24:26 mike-desktop kernel: OUTPUTIN= OUT=lo SRC=127.0.0.1 DST=127.0.0.
Apr 23 15:24:30 mike-desktop kernel: OUTPUTIN= OUT=lo SRC=127.0.0.1 DST=127.0.1.
Apr 23 15:24:30 mike-desktop kernel: OUTPUTIN= OUT=lo SRC=127.0.0.1 DST=127.0.1.
Apr 23 15:24:30 mike-desktop kernel: iptables denied: IN=enp2s0 OUT= MAC=60:a4:4
lines 1164-1186/1186 (END)
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: File "/usr/lib/python2.7/dis
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: retentions = options['rete
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: KeyError: 'retentions'
Apr 23 15:24:05 mike-desktop systemd[1]: carbon-cache.service: Control process e
Apr 23 15:24:05 mike-desktop systemd[1]: Failed to start Graphite Carbon Cache.
-- Subject: Unit carbon-cache.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit carbon-cache.service has failed.
Kod: Zaznacz cały
systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● carbon-cache.service loaded failed failed Graphite Carbon Cache
Kod: Zaznacz cały
[Unit]
Description=Graphite Carbon Cache
After=network.target
[Service]
Type=forking
StandardOutput=syslog
StandardError=syslog
ExecStart=/usr/bin/carbon-cache --config=/etc/carbon/carbon.conf --pidfile=/var/run/carbon-cache.pid --logdir=/var/log/carbon/ start
PIDFile=/var/run/carbon-cache.pid
[Install]
WantedBy=multi-user.target
Kod: Zaznacz cały
status carbon-cache.service
status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
http://imgur.com/a/GM3EU
Mysle,ze warto rozwiazac ten problem i miec czytelna wizualizacje logow.
- mario_7
- Administrator
- Posty: 8598
- Rejestracja: 30 sie 2006, 13:11
- Płeć: Mężczyzna
- Wersja Ubuntu: 20.04
- Środowisko graficzne: GNOME
- Architektura: x86_64
Re: Instalacja Graphite na Ubuntu 16.10.
Błąd widać w logach które podałeś:
Coś z tymi retentions jest nie tak...
Niestety log jest ucięty więc nie widać dokładnie o co chodzi.
Uruchom ten carbon-cache po prostu z terminala takim poleceniem jakim robi to systemd i zobacz log - powinien być dokładniejszy.
Kod: Zaznacz cały
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: retentions = options['rete
Apr 23 15:24:05 mike-desktop carbon-cache[15775]: KeyError: 'retentions'
Niestety log jest ucięty więc nie widać dokładnie o co chodzi.
Uruchom ten carbon-cache po prostu z terminala takim poleceniem jakim robi to systemd i zobacz log - powinien być dokładniejszy.
Kto jest online
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 28 gości