Besoin d’aide pour installer Munin !

26 août 2009
By

Bonjour à tous

Je viens de migrer sur un serveur dédié sous 8.04 Serveur et j’aimerais le monitorer grace à mais malheureusement j’ai un joli « index of »… dossier vide!

J’ai installer Munin via les dépots.

/var/www/munin appartient à munin:munin et dispose des droits 0755.

Mon /etc/munin/munin.conf:

[code]

# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the 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

# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#.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 as well.
#contact.nagios.command /usr/sbin/send_nsca -H nagios.host.com -c /etc/send_nsca.cfg

# a simple host tree
[webynux.net]
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
#[/code]

Mon /etc/munin/munin-node.conf:

[code]#
# Example config-file for munin-node
#

log_level 4
log_file /var/log/munin/munin-node.log
port 4949
pid_file /var/run/munin/munin-node.pid
background 1
setseid 1

# Which port to bind to;
host *
user munin
group munin
setsid yes

# Regexps for files to ignore

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

# 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$[/code]

Il semblerait qu’il y ai un soucis de droits ou de permissions…

Il y a t’il une bonne ame dans mon lectorat pour m’aider??

Sur le même thème:

  1. Installer Linux Ubuntu
  2. Des dépôts Linux pour les logiciels Google
  3. Wikipedia a besoin de vous
  4. Ubuntu 9.04 optimisé pour les netbooks?
  5. Bilan 2008 pour Webynux

Tags: , , , , , , , , , ,

7 Responses to Besoin d’aide pour installer Munin !

  1. Pfff on 27 août 2009 at 7 h 35 min

    Grace à Webmin, je sais que la tache Cron donne une erreur de permissions:

    Sortie de la commande munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi ..

    /bin/sh: munin: not found
    cp: accessing `/var/www/munin/’: Permission denied
    cp: accessing `/var/www/munin/’: Permission denied
    cp: accessing `/var/www/munin/’: Permission denied
    Cannot open /var/www/munin/net/webynux.net-apache_processes.html at /usr/share/munin/munin-html line 488.

    • Pfff on 27 août 2009 at 17 h 57 min

      j’ai des mails de Cron qui disent:

      De root@webynux.net (Cron Daemon)
      À munin@webynux.net
      Date 27/08/2009 17:55
      Sujet Cron munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi >/dev/null
      Contenu du Message
      /bin/sh: munin: not found
      cp: accessing `/var/www/munin/’: Permission denied
      cp: accessing `/var/www/munin/’: Permission denied
      cp: accessing `/var/www/munin/’: Permission denied
      Cannot open /var/www/munin/net/webynux.net-apache_processes.html at /usr/share/munin/munin-html
      line 488.

  2. Pfff on 2 septembre 2009 at 7 h 42 min

    Resolu en reconfigurant le domaine sous apache2, en desinstallant completement munin et munin-node avec en plus un sudo rm -r /var/lib/munin

    puis une réinstallation complete

  3. Formamotion.com on 30 septembre 2009 at 16 h 05 min

    Bonjour,

    Pour ceux que ça intéresse, voici une vidéo formation, tutoriel vidéo sur la présentation du monitoring avec Munin :
    –Edit de Pfff–
    je fais du dofollow, OK mais ce n’est pas la peine dabuser…. les visiteurs de Webynux iront visiter ton site et trouveront la réponse en cliquant sur ton pseudo…

    Merci de ta compréhension.

  4. eddymoul on 13 novembre 2009 at 18 h 56 min

    heureux que ton soucis soit résolu.
    en fait il fallait juste changer les droits du repertoire /var/www/munin

    chown -R munin:munin /var/log/munin/

    et c’est tout… bonne chance pour les newbies.

    • Pfff on 13 novembre 2009 at 20 h 48 min

      Merci, ca pourra resservir, a moi ou a quelqu’un d’autre ;-)

  5. Superrefman on 29 novembre 2009 at 19 h 19 min

    En effet, j’ai moi même passé pas mal de temps la dessus et c’est ici que j’ai trouvé ce qui clochait :)

    MErci

Télécharger l'application Androïd de Webynux

Rejoignez Webynux sur:



Rejoignez Webynux sur TwitterWebynux sur Facebook

Suivez Webynux sur son flux RSSRejoignez moi sur Google+