Jak wy

Konfiguracja serwerów, usług, itp.
monroo
Posty: 7
Rejestracja: 03 lutego 2010, 18:06

Jak wyświetlić zainstalowanie munin na www?

Post autor: monroo »

Zainstalowałem z repozytorium munin i munin-node ale po wejściu na http://www.adres.pl/munin:

Kod: Zaznacz cały

Not Found

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

Kod: Zaznacz cały

# 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
# [url=http://munin.projects.linpro.no/wiki/CgiHowto]http://munin.projects.linpro.no/wiki/CgiHowto[/url]
#
#graph_strategy cgi

# Drop [email]somejuser@fnord.comm[/email] and [email]anotheruser@blibb.comm[/email] an email everytime 
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" [email]somejuser@fnord.comm[/email]
#contact.anotheruser.command mail -s "Munin notification" [email]anotheruser@blibb.comm[/email]
#
# 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:

Kod: Zaznacz cały

#
# 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
Próbowałem też wejść przez port:

Kod: Zaznacz cały

www.adres.pl:4949/munin
ale nic z tego.
Powoli się uczę Debiana i nie wiem nawet gdzie szukać błędu?
widmak
Posty: 1
Rejestracja: 31 marca 2010, 01:29

Post autor: widmak »

Nie łącz się na port, który podałeś, tylko zobacz co masz w /var/www i połącz się na:

Kod: Zaznacz cały

adres.pl/munin
lub to co znalazłeś w wyżej wymienionym folderze.
palik
Posty: 7
Rejestracja: 06 sierpnia 2007, 09:56

Post autor: palik »

Ja to zrobiłem nieelegancko ale z katalogu gdzie munin wrzuca pliki (domyślnie /var/www/munin) robię co 10 minut kopię do katalogu, który mam już ustawiony w apache (np. adres.pl/roboczy/munin), może niezbyt to optymalne ale do niedawna działało bezbłędnie, bez modyfikacji conf munina.

Dlaczego do niedawna o tym w innym wątku.
Awatar użytkownika
lessmian2
Member
Posty: 1088
Rejestracja: 30 kwietnia 2008, 19:38
Lokalizacja: Kraków

Post autor: lessmian2 »

A od czego masz w munin.conf parametr:

Kod: Zaznacz cały

htmldir	/var/www/munin
?? ;)
Awatar użytkownika
hello_world
Posty: 66
Rejestracja: 15 maja 2009, 21:03

Post autor: hello_world »

Bardzo istotne:
nie http://ip/munin
tylko http://ip/munin/
Awatar użytkownika
lessmian2
Member
Posty: 1088
Rejestracja: 30 kwietnia 2008, 19:38
Lokalizacja: Kraków

Post autor: lessmian2 »

hello_world, z powodu? Działa i tak i tak.
Awatar użytkownika
hello_world
Posty: 66
Rejestracja: 15 maja 2009, 21:03

Post autor: hello_world »

Ponieważ plik konfiguracyjny munina dla apache ma alias:

Kod: Zaznacz cały

Alias /munin/ /var/www/munin/
Oczywiście że wystarczy tylko usunąć ostatni znak i będzie wszystko w porządku.

Kod: Zaznacz cały

Alias /munin /var/www/munin
lessmian2, zapewne masz to już skonfigurowane jak wyżej.
ODPOWIEDZ