Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/11/2010, à 16:47

sinbad83

Installation Munin sur Ubuntu 10.10

Bonjour à tous,
l'installation de Munin en suivant la documentation http://doc.ubuntu-fr.org/munin ne fonctionne pas sur Maverick:
-  En entrant http://localhost/munin dans Firefox, la réponse est "Forbidden.
You don't have permission to access /munin/ on this server."
- Les fichiers  de configuration /etc/apache2/conf.d/munin et /etc/munin/apache.conf sont paramétrés avec Allow from all pour le répertoire /var/cache/munin/www.
- En regardant l'arborescence, on voit que le répertoire /var/cache/munin/www/localdomain/localhost.localdomain/ qui devrait contenir, les données est vide:

xxx@LVM:~$ ll /var/cache/munin/www/localdomain/localhost.localdomain/
total 8
drwxr-xr-x 2 munin munin 4096 2010-11-09 16:14 ./
drwxr-xr-x 3 munin munin 4096 2010-11-09 16:14 ../

- J'ai supprimé et réinstallé Munin plusieurs fois sans succès.

J'utilise également Munin sur deux serveurs en Lucid qui fonctionnent. Qu'est-ce-qui a changé avec Maverick ?

Dernière modification par sinbad83 (Le 10/11/2010, à 17:17)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#2 Le 10/11/2010, à 22:08

Yann

Re : Installation Munin sur Ubuntu 10.10

Bon je ferais mieux de la fermer car je connais pas maverick mais...
Vérifie les permissions sur /var/cache/munin, /var/cache/munin/www/ etc - que l'user munin ait bien le droit d'écrire dedans. Je t'avoue je suis un peu perdu, je me souvenais pas que munin stockait quoi que ce soit dans var/cache...

Il y a deux problemes différents a mon avis:
* Munin n'a peut etre pas les permissions pour écrire dans ce répertoire
* L user web (probablement www-data) n'as pas les permissions pour lire dans ce répertoire (sinon tu verrais un repertoire vide, non un forbidden).

Vérifie aussi bien que le virtual host dans /etc/apache2/ pointe bien sur le bon répertoire.


Et pourtant moi, jsuis pas du genre délicat,
Dans un coin de la musse, j'ai posé mon matelas
- Paulo Anarkao

Hors ligne

#3 Le 11/11/2010, à 11:12

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Salut Yann,
cela ne s'arrange pas.J'ai réinstallé complètement et je n'accède toujours pas à l'interface localhost/munin.
Mon interprétation n'est pas la même que la tienne: l'indication "Forbidden. You don't have permission to access /munin/ on this server." correspond pour moi au fait que le répertoire /var/cache/munin/www/ ne contient pas de localdomain/local.domain, comme on le voit ici:

ll /var/cache/munin/www/
total 32
drwxr-xr-x 2 munin munin 4096 2010-11-11 09:20 ./
drwxr-xr-x 3 root  root  4096 2010-11-11 09:17 ../
-rw-r--r-- 1 munin munin 2555 2010-11-11 09:20 definitions.html
-rw-r--r-- 1 munin munin 2046 2010-11-11 09:20 favicon.ico
-rw-r--r-- 1 munin munin 1794 2010-11-11 09:20 logo-h.png
-rw-r--r-- 1 munin munin  473 2010-11-11 09:20 logo.png
-rw-r--r-- 1 munin munin 5351 2010-11-11 09:20 style.css

C'est moi qui l'avais créé pour copier l'arborescence trouvée sur Munin version Lucid, mais il ne s'était pas rempli.
Pour les droits:
/var/cache/munin est en drwxr-xr-x  3 root     root
/var/cache/munin/www est en drwxr-xr-x  2 munin munin
Mon login fait évidemment partie du groupe munin.
Je n'ai pas compris la vérification du virtual host dans /etc/apache2/ .

Dernière modification par sinbad83 (Le 11/11/2010, à 11:19)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#4 Le 12/11/2010, à 16:36

Elemmire

Re : Installation Munin sur Ubuntu 10.10

il faudrait donner un peu plus d'info ...
peux tu, par ex donner les fichiers de conf suivant :
/etc/apache2/conf.d/munin
/etc/munin/munin.conf

Hors ligne

#5 Le 12/11/2010, à 18:35

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Bonjour Elemmire,
je vois que c'est toujours toi qui interviens pour Munin (http://forum.ubuntu-fr.org/viewtopic.php?id=414968). Je me rappelle avoir déjà eu, avec une version précédente, ce genre de problème qui avait dû se régler tout seul après multiples réinstallations, mais ici ce n'est pas le cas. Voici les fichiers demandés:

cat /etc/apache2/conf.d/munin
Alias /munin /var/cache/munin/www
<Directory /var/cache/munin/www>
        Order allow,deny
        Allow from all  # localhost 127.0.0.0/8 ::1
        Options None

    # This file can be used as a .htaccess file, or a part of your apache
    # config file.
    #
    # For the .htaccess file option to work the munin www directory
    # (/var/cache/munin/www) must have "AllowOverride all" or something 
    # close to that set.
    #
    # AuthUserFile /etc/munin/munin-htpasswd
    # AuthName "Munin"
    # AuthType Basic
    # require valid-user

    # This next part requires mod_expires to be enabled.
    #
    # Set the default expiration time for files to 5 minutes 10 seconds from
    # their creation (modification) time.  There are probably new files by
    # that time. 
    #
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault M310
    </IfModule>
</Directory>
cat /etc/munin/munin.conf
# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files.  They all
# must be writable by the user running munin-cron.  They are all
# defaulted to the values you see here.
#
 dbdir    /var/lib/munin
 htmldir /var/cache/munin/www
 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
# http://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 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/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

# Munin sur Athos
#[Athos]
#    address 192.168.123.102
#    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

La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#6 Le 12/11/2010, à 20:10

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Je rajoute des débuts de log pour éclairer davantage.

cat /var/log/munin/munin-html.log
2010/11/12 08:00:02 Opened log file
2010/11/12 08:00:02 [INFO] Starting munin-html, getting lock /var/run/munin/munin-html.lock
2010/11/12 08:00:02 [INFO] Process 3323 is dead, stealing lock, removing file
2010/11/12 08:00:02 [FATAL] There is nothing to do here, since there are no nodes with any plugins.  Please refer to [url]http://munin-monitoring.org/wiki/FAQ_no_$[/url]
...
cat /var/log/munin/munin-node.log
2010/11/12-08:00:02 CONNECT TCP Peer: "127.0.0.1:39489" Local: "127.0.0.1:4949"
2010/11/12-08:05:01 CONNECT TCP Peer: "127.0.0.1:33606" Local: "127.0.0.1:4949"
2010/11/12-08:10:01 CONNECT TCP Peer: "127.0.0.1:53336" Local: "127.0.0.1:4949"
...
cat /var/log/munin/munin-graph.log
2010/11/12 08:00:02 Opened log file
2010/11/12 08:00:02 Starting munin-graph[code
2010/11/12 08:00:02 Munin-graph finished (0.00 sec)
...
cat /var/log/munin/munin-update-log
2010/11/12 08:00:02 Opened log file[code
2010/11/12 08:00:02 [INFO]: Starting munin-update
2010/11/12 08:00:02 [WARNING] Config node localhost.localdomain listed no services for LVM.  Please see [url]http://munin-monitoring.org/wiki/FAQ_no_graphs[/url] for fu$
2010/11/12 08:00:02 [INFO] Reaping Munin::Master::UpdateWorker<localdomain;localhost.localdomain>.  Exit value/signal: 0/0
2010/11/12 08:00:02 [INFO]: Munin-update finished (0.02 sec)
...

Dernière modification par sinbad83 (Le 12/11/2010, à 20:11)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#7 Le 15/11/2010, à 16:01

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Pas de nouvelle suggestion ?


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#8 Le 15/11/2010, à 18:49

Elemmire

Re : Installation Munin sur Ubuntu 10.10

hmmm ...
je vois pas grand chose pour le moment ... si ce n'est que la partie client de munin (munin-node) n'a pas l'air tout a fait opérationnelle.
peut etre peux tu donner le fichier /etc/apache2/sites-enabled/000-default
et aussi /etc/munin/munin-node.conf

sinon as tu lu la page indiqué dans les logs : http://munin-monitoring.org/wiki/FAQ_no_graphs

Hors ligne

#9 Le 15/11/2010, à 19:15

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Voilà pour le premier:

cat /etc/apache2/sites-enabled/000-default 
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
        
    DocumentRoot /var/www
#       DocumentRoot /var/www/munin
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Il y a la ligne   #    DocumentRoot /var/www/munin  qui est commentée. Je ne me rappelle plus y avoir
touché...

cat /etc/munin/munin-node.conf 
#
# 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
setsid 1

user root
group root

# Regexps for files to ignore

ignore_file ~$
#ignore_file [#~]$  # FIX doesn't work. '#' starts a comment
ignore_file DEADJOE$
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, since Net::Server does not understand CIDR-style
# network notation unless the perl module Net::CIDR is installed.  You
# may repeat the allow line as many times as you'd like

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

# If you have installed the Net::CIDR perl module, you can use
# multiple cidr_allow and cidr_deny address/mask patterns.  A
# connecting client must match any cidr_allow, and not match any
# cidr_deny.  Example:

# cidr_allow 127.0.0.1/32
# cidr_allow 192.0.2.0/24
# cidr_deny  192.0.2.42/32

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

# And which port
port 4949

Par contre, en suivant ton lien, la configuration des plugins retourne un message d'erreur:

sudo munin-node-configure --shell | sh -x
[sudo] password for guy: 
# The following plugins caused errors:
# ip_:
#     Nothing printed to stdout
#     No valid suggestions
# postfix_mailqueue:
#     Non-zero exit during autoconf (255)
# postgres_bgwriter:
#     Non-zero exit during autoconf (255)
# postgres_cache_:
#     Non-zero exit during autoconf (255)
# postgres_checkpoints:
#     Non-zero exit during autoconf (255)
# postgres_connections_:
#     Non-zero exit during autoconf (255)
# postgres_connections_db:
#     Non-zero exit during autoconf (255)
# postgres_locks_:
#     Non-zero exit during autoconf (255)
# postgres_querylength_:
#     Non-zero exit during autoconf (255)
# postgres_scans_:
#     Non-zero exit during autoconf (255)
# postgres_size_:
#     Non-zero exit during autoconf (255)
# postgres_transactions_:
#     Non-zero exit during autoconf (255)
# postgres_tuples_:
#     Non-zero exit during autoconf (255)
# postgres_users:
#     Non-zero exit during autoconf (255)
# postgres_xlog:
#     Non-zero exit during autoconf (255)
# tomcat_:
#     Non-zero exit during autoconf (127)
+ ln -s /usr/share/munin/plugins/nfs4_client /etc/munin/plugins/nfs4_client
ln: création d'un lien symbolique `/etc/munin/plugins/nfs4_client': Permission non accordée
+ ln -s /usr/share/munin/plugins/nfsd /etc/munin/plugins/nfsd
ln: création d'un lien symbolique `/etc/munin/plugins/nfsd': Permission non accordée
+ ln -s /usr/share/munin/plugins/nfsd4 /etc/munin/plugins/nfsd4
ln: création d'un lien symbolique `/etc/munin/plugins/nfsd4': Permission non accordée

Mais comment contourner les permissions ?

Dernière modification par sinbad83 (Le 15/11/2010, à 19:16)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#10 Le 15/11/2010, à 19:24

Elemmire

Re : Installation Munin sur Ubuntu 10.10

j'ai pas le temps de regarder le fichier de conf mais l'erreur que tu obtiens c'est normal car la commende sh -x n'est pas lancer en mode sudo !!!
donc sois tu rajoute sudo :

sudo  munin-node-configure --shell | sudo sh -x

soit si ca marche toujours pas tu passe carrément en root :

sudo su

et tu tape la commande tel quel

Hors ligne

#11 Le 15/11/2010, à 19:38

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Effectivement, en sudo, la commande passe mieux. Mais, cela ne change toujours rien:
Forbidden.  You don't have permission to access /munin/ on this server.

Dernière modification par sinbad83 (Le 15/11/2010, à 19:38)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#12 Le 16/11/2010, à 13:45

Elemmire

Re : Installation Munin sur Ubuntu 10.10

as tu regardé les logs apache ?
peux tu redonner les logs munin ?

Hors ligne

#13 Le 16/11/2010, à 19:38

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Après avoir relancé apache2 et munin:
- Un truc intéressant dans /var/log/apache2/error.log:

...
[Tue Nov 16 18:19:42 2010] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.1 with Suhosin-Patch configured -- resuming normal operations
[Tue Nov 16 18:20:24 2010] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/cache/munin/www/

Mais je ne vois pas comment autoriser...

- Dans /var/log/munin/munin-html.log:

2010/11/16 18:20:12 Opened log file
2010/11/16 18:20:12 [INFO] Starting munin-html, getting lock /var/run/munin/munin-html.lock
2010/11/16 18:20:12 [INFO] Process 9301 is dead, stealing lock, removing file
2010/11/16 18:20:12 [FATAL] There is nothing to do here, since there are no nodes with any plugins.  Please refer to http://munin-monitoring.org/wiki/FAQ_no_graphs at /usr/share/munin/munin-html line 38
2010/11/16 18:25:11 Opened log file
2010/11/16 18:25:11 [INFO] Starting munin-html, getting lock /var/run/munin/munin-html.lock
2010/11/16 18:25:11 [INFO] Process 9715 is dead, stealing lock, removing file
2010/11/16 18:25:11 [FATAL] There is nothing to do here, since there are no nodes with any plugins.  Please refer to http://munin-monitoring.org/wiki/FAQ_no_graphs at /usr/share/munin/munin-html line 38

Je n'ai pas compris l'erreur ligne 38 dans /usr/share/munin/munin-html que je poins ici:

cat /usr/share/munin/munin-html
#!/usr/bin/perl
# -*- cperl -*-

=begin comment

Copyright (C) 2002-2009 Jimmy Olsen, Audun Ytterdal, Kjell Magne
Øierud, Nicolai Langfeldt, Linpro AS, Redpill Linpro AS and others.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2 dated June,
1991.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

$Id: munin-html.in 2802 2009-11-02 11:45:04Z janl $

=end comment

=cut

use warnings;
use strict;

use Munin::Master::HTMLOld;

$|=1;

html_startup(\@ARGV);

html_main();

# ### The End

1;

=head1 NAME

munin-html - A program to generate html-pages in an Munin installation

=head1 SYNOPSIS

munin-html [options]

=head1 OPTIONS

=over 5

=item B<< --service <service> >>

Limit services to those of E<lt>serviceE<gt>. Multiple --service options may be supplied. [unset]

=item B<< --host <host> >>

Limit hosts to those of E<lt>host<gt>. Multiple --host options may be supplied. [unset]

=item B<< --config <file> >>

Use E<lt>fileE<gt> as configuration file. [/etc/munin/munin.conf]

=item B<< --help >>

View help message.

=item B<< --[no]debug >>

If set, view debug messages. [--nodebug]

=back

=head1 DESCRIPTION

Munin-html is a part of the package Munin, which is used in combination
with Munin's node.  Munin is a group of programs to gather data from
Munin's nodes, graph them, create html-pages, and optionally warn Nagios
about any off-limit values.

If munin.conf sets "graph_strategy cgi" then munin-html generates URLs
referencing the graph CGI instead of referencing pre-generated
graphs (made by munin-graph).

Munin-html creates the html pages.

=head1 FILES

    /etc/munin/munin.conf
    /var/lib/munin/datafile
    /var/log/munin/munin-html
    /var/cache/munin/www/*
    /var/run/munin/*

=head1 VERSION

This is munin-html version 1.4.5

- Rien de particulier dans /var/log/munin/munin-limits.log

- Fin du fichier /var/log/munin/munin-node.log

2010/11/16-18:15:01 CONNECT TCP Peer: "127.0.0.1:48800" Local: "127.0.0.1:4949"
2010/11/16-18:20:01 CONNECT TCP Peer: "127.0.0.1:54667" Local: "127.0.0.1:4949"
2010/11/16-18:20:01 Server closing!
Process Backgrounded
2010/11/16-18:20:01 Munin::Node::Server (type Net::Server::Fork) starting! pid(9397)
Duplicate configuration (TCP port 4949 on host * - skipping
Binding to TCP port 4949 on host *
Setting gid to "0 0"
2010/11/16-18:25:01 CONNECT TCP Peer: "127.0.0.1:36877" Local: "127.0.0.1:4949"
2010/11/16-18:30:01 CONNECT TCP Peer: "127.0.0.1:44040" Local: "127.0.0.1:4949"

Dernière modification par sinbad83 (Le 16/11/2010, à 19:40)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#14 Le 17/11/2010, à 12:20

Elemmire

Re : Installation Munin sur Ubuntu 10.10

c'est vraiment un problème de conf de munin !!!

as tu redémarré munin-node ?

sudo restart munin-node

qui a-t-il  dans /var/run/munin/ :

ls -l /var/run/munin/

quels sont les process qui tournent :

ps aux

Hors ligne

#15 Le 17/11/2010, à 13:55

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Bonjour Elemmire,
- Pour relancer, j'utilise plutôt

sudo service munin-node restart

Mais, c'est bien la même chose.
- Contenu de  /var/run/munin/:

ll  /var/run/munin/
total 16
drwxr-xr-x  2 munin munin 140 2010-11-17 12:50 ./
drwxr-xr-x 22 root  root  840 2010-11-17 11:13 ../
-rw-r--r--  1 munin munin   4 2010-11-17 12:50 munin-Athos-Athos.lock
-rw-r--r--  1 munin munin   4 2010-11-17 12:45 munin-html.lock
srwx------  1 munin munin   0 2010-11-17 12:50 munin-master-processmanager-4534.sock=
-rw-r--r--  1 root  root    5 2010-11-17 12:48 munin-node.pid
-rw-r--r--  1 munin munin   4 2010-11-17 12:50 munin-update.lock

- Les process actuels:

ps aux | grep munin
root      4212  0.0  0.1   7600  5764 ?        Ss   12:48   0:00 /usr/sbin/munin-node
guy       4549  0.0  0.0   4016   772 pts/0    S+   12:52   0:00 grep --color=auto munin

La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#16 Le 21/11/2010, à 18:53

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Bonjour Elemmire,
j'étais un moment absent. As-tu pu regarder ma dernière réponse ?


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#17 Le 22/11/2010, à 13:06

Elemmire

Re : Installation Munin sur Ubuntu 10.10

je suis un peu sceptique ... je ne comprend pas d'où vient le problème !
peut etre au niveau des plugins ... qui se trouve dans /etc/munin/plugins/
il faudrait alors essayer de lancer chaque plugins grâce à la commande :

munin-run [nom-du-plugin]

Hors ligne

#18 Le 25/11/2010, à 12:32

Elemmire

Re : Installation Munin sur Ubuntu 10.10

as tu eu le temps de tester les plugins ?
j'ai moi même fait une migration de version de munin cette semaine et j'ai eu quelques problème du même genre à cause de plugins qui ne fonctionnaient pas.

Hors ligne

#19 Le 01/12/2010, à 17:14

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Salut Elemmire,
désolé, j'ai eu d'autres priorités ces jours-ci. Il faut que je m'y remette et je fais le point.
J'avais bien vu qu'avec Maverick, l'installation Munin ne tombe pas droit pour l'oeil. Mais le problème est de trouver l'astuce.
Par ailleurs, il faut que je trouve un peu de temps pour regarder SNMP et Cacti...

Dernière modification par sinbad83 (Le 01/12/2010, à 17:15)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#20 Le 07/12/2010, à 08:02

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Bonsoir Elemmire,
je travaille sur un autre poste sous Maverick sur lequel, il y a un semblant de fonctionnement, les graduations apparaissent. Mais  sur les graphes, il n'y aucun tracé à gauche, côté journée et un fonctionnement fugitif à droite côté semaine. Même si, la machine était coupée ces jours-ci et éteinte le soir, mais elle a été gardée allumée depuis hier 19h00 et il n'y a guère de tracé correspondant.
Voici une copie d'écran:

http://img4.hostingpics.net/pics/142315 … 120700.png

Dernière modification par sinbad83 (Le 07/12/2010, à 08:07)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#21 Le 07/12/2010, à 13:00

mazarini

Re : Installation Munin sur Ubuntu 10.10

Bonjour,

"[Tue Nov 16 18:20:24 2010] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/cache/munin/www/"

Pour moi ca veux dire qu'Apache est paramétré pour ne pas afficher le contenu des répartoires lorsqu'il n'y a pas de fichier index (index.html ou autre).

Eventuellement crées un fichier index.html avec juste "Coucou" dedans pour voir si c'est bien le problème ou regarde si tu as un fichier .htaccess dans ton répertoire.

Edit : Pour autoriser l'affichage du répertoire :
<Directory /var/www/repertoire>
        Options +Indexes
</Directory>

Dernière modification par mazarini (Le 07/12/2010, à 14:03)


S'il existait une école de la politique, les locaux devraient être édifiés rue de la Santé. Les élèves pourraient s'habituer. (Pierre Dac)

Hors ligne

#22 Le 07/12/2010, à 15:23

Elemmire

Re : Installation Munin sur Ubuntu 10.10

mazarini a écrit :

Pour moi ca veux dire qu'Apache est paramétré pour ne pas afficher le contenu des répartoires lorsqu'il n'y a pas de fichier index (index.html ou autre).

le problème n'est pas là mais bien dans la récupération des données à grapher par munin.
Perso je penche pour un problème sur un plugin ... il faut donc tester l'ensemble des plugins avec la commande munin-run
ca permettra surement de détecter un problème dans les plugins qui bloque la récup des data !

Hors ligne

#23 Le 07/12/2010, à 19:25

sinbad83

Re : Installation Munin sur Ubuntu 10.10

@ Elemmire,
J'ai regardé le plugin cpu, cela a l'air bon:

guy@LVM:/etc/munin$ munin-run cpu
user.value 1676043
nice.value 111792
system.value 272625
idle.value 32682335
iowait.value 95433
irq.value 1
softirq.value 1962
steal.value 0

Pareil avec d'autres, mais je n'ai pas tout vérifié.

@ mazarini,
J'ai rajouté un fichier index.html dans /var/www/, cela n'a rien changé.


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#24 Le 07/12/2010, à 20:40

sinbad83

Re : Installation Munin sur Ubuntu 10.10

Quand je regarde le contenu de /var/cache/munin/www/Athos/Athos/, il y a un nombre impessionnant de fichiers:

root@LVM:~# ll /var/cache/munin/www/Athos/Athos/
total 2656
drwxr-xr-x 6 munin munin 12288 2010-11-25 09:10 ./
drwxr-xr-x 3 munin munin  4096 2010-11-25 09:10 ../
-rw-r--r-- 1 munin munin 13647 2010-12-07 19:30 apache_processes-day.png
-rw-r--r-- 1 munin munin  5043 2010-12-07 19:30 apache_processes.html
-rw-r--r-- 1 munin munin 14657 2010-12-07 18:50 apache_processes-month.png
-rw-r--r-- 1 munin munin 13950 2010-12-07 19:20 apache_processes-week.png
-rw-r--r-- 1 munin munin 14330 2010-12-07 18:55 apache_processes-year.png
-rw-r--r-- 1 munin munin  9234 2010-12-07 19:30 comparison-day.html
-rw-r--r-- 1 munin munin  9249 2010-12-07 19:30 comparison-month.html
-rw-r--r-- 1 munin munin  9241 2010-12-07 19:30 comparison-week.html
-rw-r--r-- 1 munin munin  9241 2010-12-07 19:30 comparison-year.html
-rw-r--r-- 1 munin munin 13117 2010-12-07 19:30 cpu-day.png
-rw-r--r-- 1 munin munin  9192 2010-12-07 19:30 cpu.html
-rw-r--r-- 1 munin munin 17666 2010-12-07 18:50 cpu-month.png
-rw-r--r-- 1 munin munin 12658 2010-12-07 19:30 cpuspeed-day.png
-rw-r--r-- 1 munin munin  7238 2010-12-07 19:30 cpuspeed.html
-rw-r--r-- 1 munin munin 14239 2010-12-07 18:50 cpuspeed-month.png
-rw-r--r-- 1 munin munin 13743 2010-12-07 19:20 cpuspeed-week.png
-rw-r--r-- 1 munin munin 13697 2010-12-07 18:55 cpuspeed-year.png
-rw-r--r-- 1 munin munin 17864 2010-12-07 19:20 cpu-week.png
-rw-r--r-- 1 munin munin 17188 2010-12-07 18:55 cpu-year.png
-rw-r--r-- 1 munin munin 17722 2010-12-07 19:30 df-day.png
-rw-r--r-- 1 munin munin 11290 2010-12-07 19:30 df.html
....
....

Tous ces fichiers sont à l'heure du dernier restart. Mais, on ne les voit toujours pas sur les graphiques.

Par ailleurs, il y a quelque chose qui m'étonne:

guy@LVM:~$ telnet localhost 4949
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
# munin node at LVM
Connection closed by foreign host.

Pourquoi la connexion se coupe-t-elle ?

Dernière modification par sinbad83 (Le 07/12/2010, à 21:00)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#25 Le 07/12/2010, à 23:53

Elemmire

Re : Installation Munin sur Ubuntu 10.10

sinbad83 a écrit :

Par ailleurs, il y a quelque chose qui m'étonne:

guy@LVM:~$ telnet localhost 4949
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
# munin node at LVM
Connection closed by foreign host.

Pourquoi la connexion se coupe-t-elle ?

perso j'ai la meme réaction sur ma machine ... sur laquelle munin fonctionne très bien !

termine de tester l'ensemble des plugins activé et dis nous.

Hors ligne