Installation Munin

Bonjour,

J’ai passé l’après midi à essayer de configurer cette s@|0peri de Munin sans succès.
Mon problème est que lorsque que me connecte depuis la machine qui héberge Munin j’ai l’erreur 403 qui apparait:
You don’t have permission to access /munin/ on this server.

J’ai l’erreur Apache suivante:
[Thu Nov 03 19:41:48 2011] [error] [client ::1] Directory index forbidden by Options directive: /var/cache/munin/www/
[Thu Nov 03 19:42:07 2011] [error] [client 192.168.1.3] Directory index forbidden by Options directive: /var/cache/munin/www/

Par contre lorsque je met un fichier “index.html” dans le dossier “/var/cache/munin/www/”, j’ai une page blanche qui s’affiche.
Comment faire pour pouvoir afficher les graphs Munin? ( :013 J’en peut plus :013 )

Serveur:/var/cache/munin/www# ll
total 24
-rw-r–r-- 1 munin munin 2555 3 nov. 19:20 definitions.html
-rw-r–r-- 1 munin munin 2046 3 nov. 19:20 favicon.ico
-rw-r–r-- 1 munin munin 1794 3 nov. 19:20 logo-h.png
-rw-r–r-- 1 munin munin 473 3 nov. 19:20 logo.png
-rw-r–r-- 1 munin munin 5351 3 nov. 19:20 style.css

Merci

salut

[quote]I had to add the following directive to httpd.conf

Order allow,deny
Allow from all

Now it works very nicely indeed.[/quote]

fonality.com/trixbox/forums/ … ot-working

???

C’est pas pour Apache ta config? (et non Apache2)
Car voici le résultat:

Serveur:~# /etc/init.d/apache2 restart
Syntax error on line 2 of /etc/apache2/httpd.conf:
order not allowed here
Action ‘configtest’ failed.
The Apache error log may have more information.
failed!

!!!

Arf je viens de buter sur le même souci et je m’en suis sorti mais je ne me souviens plus de tout …

Donne le résultat de :

su munin --shell=/bin/bash /usr/share/munin/munin-update --nofork --debug

s’il te plait ?

Si tu pouvais te souvenir ça serait bien parce que je suis à bout.

Sinon pour les commande:
Serveur:~# su munin --shell=/bin/bash
munin@Serveur:/root$ /usr/share/munin/munin-update --nofork --debug
2011/11/03 23:20:12 [DEBUG] Creating new lock file /var/run/munin/munin-update.lock
2011/11/03 23:20:12 [DEBUG] Creating lock : /var/run/munin/munin-update.lock succeeded
2011/11/03 23:20:12 [INFO]: Starting munin-update
2011/11/03 23:20:12 [DEBUG] Creating new lock file /var/run/munin/munin-localdomain-localhost.localdomain.lock
2011/11/03 23:20:12 [DEBUG] Creating lock : /var/run/munin/munin-localdomain-localhost.localdomain.lock succeeded
2011/11/03 23:20:12 [DEBUG] Reading from socket to localhost.localdomain: “# munin node at Serveur”.
2011/11/03 23:20:12 TLS set to “disabled”.
2011/11/03 23:20:12 [DEBUG] Negotiating capabilities
2011/11/03 23:20:12 [DEBUG] Writing to socket: “cap multigraph
”.
2011/11/03 23:20:12 [DEBUG] Reading from socket to localhost.localdomain: “cap multigraph dirtyconfig”.
2011/11/03 23:20:12 [DEBUG] Node says /cap multigraph dirtyconfig/
2011/11/03 23:20:12 [DEBUG] Writing to socket: “list Serveur
”.
2011/11/03 23:20:12 [DEBUG] Reading from socket to localhost.localdomain: “”.
2011/11/03 23:20:12 [WARNING] Config node localhost.localdomain listed no services for Serveur. Please see munin-monitoring.org/wiki/FAQ_no_graphs for further information.
2011/11/03 23:20:12 [DEBUG] Creating new lock file /var/run/munin/munin-datafile.lock
2011/11/03 23:20:12 [DEBUG] Creating lock : /var/run/munin/munin-datafile.lock succeeded
2011/11/03 23:20:12 [INFO]: Munin-update finished (0.01 sec)

Pour que le grapheur soit autorisé à accèder aux informations du noeud, il faut indiquer quels sont les grapheurs qui peuvent se connecter. Cette information est indiquée dans le fichier de configuration /etc/munin/munin-node.conf. À la fin du fichier de configuration, il y a une ligne du style:

allow ^127.0.0.1$

Pour autoriser le grapheur à se connecter, tu dois ajouter une ligne du même type.

allow ^IP_de_ton_serveur$ (avec les points)

[quote=“baxterx”]
2011/11/03 23:20:12 [WARNING] Config node localhost.localdomain listed no services for Serveur. Please see munin-monitoring.org/wiki/FAQ_no_graphs for further information.[/quote]

Il est là ton problème :wink: et j’ai eu le même

JE pense que Serveur est le nom de ta machine et jeça ne lui parle pas à Munin :017 …c’est d’ailleurs expliqué dans le lien munin-monitoring.org/wiki/FAQ_no … donthenode

Fais voir ton /etc/hosts maintenant s’il te plait ?

De mémoire , je crois que j’ai du le modifier pour faire apparaître clairement mon équivalent de “Serveur” et puis j’ai relancé les commandes que je t’ai proposée et ça m’a fait la génération des stats …10 mn plus tard, j’avais mes graphes via mon.site.org/munin :slightly_smiling:

Sinon d’après la FAQ Munin , j’en comprends qu’il faut configurer munin-node avec ton nom “Serveur” mais ce n’est pas ce que j’ai fait. De mémoire toujours :slightly_smiling:

En effet, “Serveur” est le nom de ma machine.
Voici pour le fichier “hosts”:
127.0.0.1 localhost
127.0.1.1 Serveur

The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

[quote=“baxterx”]En effet, “Serveur” est le nom de ma machine.
Voici pour le fichier “hosts”:
127.0.0.1 localhost
127.0.1.1 Serveur

The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts[/quote]

Kesaco le 127.0.1.1 ? ça devrait logiquement 127.0.0.1 non ?

Je t’avoue que ça m’a traversé l’esprit. Qu’est ce que je fais?
Je commente 127.0.0.1 localhost et je modifie 127.0.1.1 en 127.0.0.1?
J’ai quelques craintes quand même à ce niveau là.

[code]pierre-olivier@Serveur:~$ cat /etc/hosts

127.0.0.1 localhost.localdomain localhost Serveur

::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
[/code]

Moi mon /etc/hosts ressemble à ça. j’ai du rajouter Serveur à la main pour faire fonctionner munin.

Dans ton cas je rajouterais localhost.localdomaine et Serveur à ma ligne 127.0.0.1 en laissant la 127.0.1.1 pour le moment … Je ne pense pas qu’elle nuise mais du coup il faut absolument faire le lien entre 127.0.0.1 et Serveur .

Puis tu repasses les commandes que je t’ai donné dans ma première intervention … puis si tout est OK , tes graphes devraient être dispo à …/munin

Ok sur ma préprod où je n’avais pas retouché à Munin , non fonctionnel depuis un bail :

J’ai ajouté Serveur dans la ligne 127.0.0.1 ,commenté la ligne 127.0.1.1 dans /etc/hosts , rebooté et refait la manip munin ci dessus et là ça a fonctionné … j’attends de voir si ç’est OK pour les graphes .

PS: c’était une Machine en Lenny upgradée vers Squeeze à sa sortie et je n’avais pas revu ma conf munin qui ne fonctionnait plus après upgrade.

Voici mon fichier hosts mofifié:
127.0.0.1 localhost localhost.localdomain Serveur
127.0.1.1 Serveur

The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Le problème reste entier:
[Fri Nov 04 10:52:55 2011] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze3 with Suhosin-Patch configured – resuming normal operations
[Fri Nov 04 10:53:58 2011] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/cache/munin/www/

La seule différence est l’adresse du localhost qui s’affiche. Mais la cause reste la même.
Est ce que ça ne serait pas un problème Apache2 plutôt? Car lorsque j’ajoute un fichier “index.html” qui contien “Coucou”, la page s’affiche correctement avec le message “Coucou”.
Et plus d’erreur dans les logs d’Apache.

Quel est le contenu de /var/cache/munin/www ?
Sinon contenu de /var/www/munin éventuel ?
Et le contenu de /etc/munin/munin.conf pendant qu’on y est .

PS : tu es sur quelle version de Debian ? Installée fraîchement ou issue d’un upgrade de version précédente ?

Serveur:/home/xxx# ll /var/cache/munin/www
total 24
-rw-r–r-- 1 munin munin 2555 4 nov. 10:50 definitions.html
-rw-r–r-- 1 munin munin 2046 4 nov. 10:50 favicon.ico
-rw-r–r-- 1 munin munin 1794 4 nov. 10:50 logo-h.png
-rw-r–r-- 1 munin munin 473 4 nov. 10:50 logo.png
-rw-r–r-- 1 munin munin 5351 4 nov. 10:50 style.css

Il s’agit d’une Debian 6. Par contre elle a en effet été mise à jour depuis une Debian 5

Munin.conf:
.

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

(Exactly one) directory to include all files from.

includedir /etc/munin/munin-conf.d

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

munin.projects.linpro.no/wiki/CgiHowto

#graph_strategy cgi

munin-cgi-graph is invoked by the web server up to very many times at the

same time. This is not optimal since it results in high CPU and memory

consumption to the degree that the system can thrash. Again the default is

6. Most likely the optimal number for max_cgi_graph_jobs is the same as

max_graph_jobs.

#munin_cgi_graph_jobs 6

If the automatic CGI url is wrong for your system override it here:

#cgiurl_graph /cgi-bin/munin-cgi-graph

munin-graph runs in parallel, the number of concurrent processes is

6. If you want munin-graph to not be parallel set to 0. If set too

high it will slow down munin-graph. Some experiments are needed to

determine how many are optimal on your system. On a multi-core

system with good SCSI disks the number can probably be quite high.

#max_graph_jobs 6

Drop 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/bin/send_nsca nagios.host.comm -c /etc/nsca.conf

a simple host tree

[localhost.localdomain]
address 127.0.0.1
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

De mon point de vue c’est toujours un problème de génération des graphes … ton dossier /var/cache/munin/www devrait contenir un index.html + un dossier localdomain lui-même contenant un index.html et un dossier localhost.localdomain avec les graphes .

Munin était installé avant upgrade de Lenny vers squeeze ?

PS : Je suis comme toi , toujours bloqué avec ma préprod squeeze issue de Lenny alors que c’est OK sur ma prod en squeeze fresh install :wink: et j’avais deux dossier www pour munin … un dans /var/www/munin et un dans /var/cache/munin/www … je viens de supprimer /var/www/munin et je suis aussi en train d’essayer de faire générer les bons fichiers/dossiers dans /var/cache/munin/www :017

C’est réglé. J’ai trouvé le problème:
Le dossier /var/cache/munin avait les droit “root”. Dés que j’ai passé en “munin”, les graphes se sont affichés…
:030 :030 :030

Ceci étant je te remercie pour ton implication dans mon problème. En espérant pouvoir te rendre la pareil dans d’autres circonstances.

Mort de rire … je viens d’identifier le même souci chez moi :laughing: …j’allais te poster la réponse .

PS: Pour d’éventuels suivants : Comme d’hab pour les problèmes divers , allez voir les logs : /var/log/munin en l’occurence … ça vous évitera de chercher un peu n’importe comment comme moi :023

Le pire c’est que dans ce genre de situation, je sais!!! qu’il faut regarder les droits en premier. Dans le monde de Linux si il y a un problème c’est à 80% de chance un problème de droits!!!