Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Debian, Jak ustawic adres www dla folderu munin'a ?
Forum PHP.pl > Forum > Serwery WWW
Agape
Zainstalowałem na debianie munin i znajduje się on w katalogu /var/www/munin ale nic się nie wyświetla wpisując www.adres.pl/munin. Nie znam się na serwerach dla tego chciałem się spytać, jak mogę ustawić adres dla tego folderu ? Katalogi użytkowników są na /home/.

Z góry zięki za pomoc, powoli się uczę linuxa ;/
gothye
a jaki serwer www apache/httpd ?
l3l0
Wedytuj odpowiednio /etc/munin/munin.conf powinny tam być przykładowe konfiguracje dla innych hostów niż localhost. (w komentarzach)
Tutaj masz dokładnie wszystko napisane (po angielsku):
http://www.debian-administration.org/articles/229
Agape
Dzięki l3l0 jednak nadal ;/
Kod
Not Found

The requested URL /munin was not found on this server.
Apache/2.2.9 Server at *********


Chociaz wpisalem swoj host i adres ip ;/
l3l0
Cytat(Agape @ 3.02.2010, 08:02:36 ) *
Kod
Not Found

The requested URL /munin was not found on this server.
Apache/2.2.9 Server at *********


Chociaz wpisalem swoj host i adres ip ;/


sprawdz jeszcze w /etc/munin/munin-node.conf jaki masz port.
Może 4949 nie pamiętam jaki jest domyślny.

Pozdrawiam
Agape
Też jest ;/.

munin.conf:
Cytat
# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, and the logs, severally. They all
# must be writable by the user running munin-cron.
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin

# Where to look for the HTML templates
tmpldir /etc/munin/templates

# Make graphs show values per minute instead of per second
#graph_period minute

# Graphics files are normaly generated by munin-graph, no matter if
# the graphs are used or not. You can change this to
# on-demand-graphing by following the instructions in
# http://munin.projects.linpro.no/wiki/CgiHowto
#
#graph_strategy cgi

# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
#
# For those with Nagios, the following might come in handy. In addition,
# the services must be defined in the Nagios server as well.
#contact.nagios.command /usr/sbin/send_nsca -H nagios.host.com -c /etc/send_nsca.cfg

# a simple host tree
[rspr.pl]
address 193.121.158.121
use_node_name yes

#
# A more complex example of a host tree
#
## First our "normal" host.
# [fii.foo.com]
# address foo
#
## Then our other host...
# [fay.foo.com]
# address fay
#
## Then we want totals...
# [foo.com;Totals] #Force it into the "foo.com"-domain...
# update no # Turn off data-fetching for this "host".
#
# # The graph "load1". We want to see the loads of both machines...
# # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
# load1.graph_title Loads side by side
# load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
#
# # The graph "load2". Now we want them stacked on top of each other.
# load2.graph_title Loads on top of each other
# load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
# load2.dummy_field.draw AREA # We want area instead the default LINE2.
# load2.dummy_field.label dummy # This is needed. Silly, really.
#
# # The graph "load3". Now we want them summarised into one field
# load3.graph_title Loads summarised
# load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
# load3.combined_loads.label Combined loads # Must be set, as this is
# # not a dummy field!
#
## ...and on a side note, I want them listen in another order (default is
## alphabetically)
#
# # Since [foo.com] would be interpreted as a host in the domain "com", we
# # specify that this is a domain by adding a semicolon.
# [foo.com;]
# node_order Totals fii.foo.com fay.foo.com
#


munin-node.conf
Cytat
#
# Example config-file for munin-node
#

log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid

background 1
setseid 1

user root
group root
setsid yes

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$

# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
#
#host_name localhost.localdomain

# A list of addresses that are allowed to connect. This must be a
# regular expression, due to brain damage in Net::Server, which
# doesn't understand CIDR-style network notation. You may repeat
# the allow line as many times as you'd like

allow ^127\.0\.0\.1$

# Which address to bind to;
host *
# host 127.0.0.1

# And which port
port 4949
l3l0
a tak próbowałeś: www.adres.pl:4949/munin ?
Agape
Dość długo się wczytuje ale jest pusta/czysta strona.

Chrome daje taki komunikat:

Cytat
Błąd 324 (net::ERR_EMPTY_RESPONSE): Nieznany błąd.
l3l0
Cytat(Agape @ 3.02.2010, 15:37:24 ) *
Dość długo się wczytuje ale jest pusta/czysta strona.


Zobacz w logi co się dzieje, logi masz jak wynika z configa w /var/log/munin. Włączyłeś munina wogóle? Próbowałeś www.adres.pl:4949 bez /munin ? Troche pokąbinuj tongue.gif Logi mogą pomóc w dojsciu do tego jaki jest problem.

Pozdrawiam
Portek
Wydaj polecenie:

Kod
/usr/bin/munin-cron


lub jako root

Kod
/usr/bin/munin-cron --force-root
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.