munin-update.log error

Discussion in 'HOWTO-Related Questions' started by wizard, May 4, 2006.

  1. wizard

    wizard New Member

    I have problem aboute server monitoring with munin, i do it from
    http://www.howtoforge.com/server_monitoring_monit_munin but in file
    /var/log/munin/munin-update.log
    show error here .

    May 03 11:00:03 - Starting munin-update
    May 03 11:00:03 [1398] - Processing domain: th.com
    May 03 11:00:03 [1398] - Processing node: ayt.th.com
    May 03 11:00:03 [1402] - Could not connect to ayt.th.com(localhost):
    Connection refused - Attempting to use old configuration
    May 03 11:00:03 [1398] - Processed node: ayt.th.com (0.02 sec)
    May 03 11:00:03 [1398] - Processed domain: th.com (0.02 sec)
    May 03 11:00:03 [1398] - connection from th.com -> ayt.th.com (1402)
    May 03 11:00:03 [1398] - connection from th.com -> ayt.th.com (1402) closed
    May 03 11:00:03 [1398] - Munin-update finished (0.29 sec)
    May 03 11:50:03 - Starting munin-update
    May 03 11:50:03 [3499] - Processing domain: th.com
    May 03 11:50:03 [3499] - Processing node: ayt.th.com
    May 03 11:50:03 [3500] - Could not connect to ayt.th.com(localhost):
    Connection refused - Attempting to use old configuration
    May 03 11:50:03 [3499] - Processed node: ayt.th.com (0.02 sec)
    May 03 11:50:03 [3499] - Processed domain: th.com (0.02 sec)
    May 03 11:50:03 [3499] - connection from th.com -> ayt.th.com (3500)
    May 03 11:50:03 [3499] - connection from th.com -> ayt.th.com (3500) closed
    May 03 11:50:03 [3499] - Munin-update finished (0.31 sec)
    May 03 12:00:02 - Starting munin-update
    May 03 12:00:02 [3927] - Processing domain: th.com
    May 03 12:00:02 [3927] - Processing node: ayt.th.com
    May 03 12:00:02 [3934] - Could not connect to ayt.th.com(localhost):
    Connection refused - Attempting to use old configuration
    May 03 12:00:02 [3927] - Processed node: ayt.th.com (0.04 sec)
    May 03 12:00:02 [3927] - Processed domain: th.com (0.04 sec)
    May 03 12:00:02 [3927] - connection from th.com -> ayt.th.com (3934)
    May 03 12:00:02 [3927] - connection from th.com -> ayt.th.com (3934) closed
    May 03 12:00:02 [3927] - Munin-update finished (0.32 sec)

    What wrong and how to solved this problem ?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/munin/munin.conf?
     
  3. wizard

    wizard New Member

    Detail in file 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, and the logs, severally. They all
    # must be writable by the user running munin-cron.
    dbdir /var/lib/munin
    htmldir /var/www/html/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 [email protected] and [email protected] an email everytime
    # something changes (OK -> WARNING, CRITICAL -> OK, etc)
    #contact.someuser.command mail -s "Munin notification" [email protected]
    #contact.anotheruser.command mail -s "Munin notification" [email protected]
    #
    # 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
    [ayt.th.com]
    address localhost
    use_node_name yes
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please use
    Code:
    [ayt.th.com]
       address 127.0.0.1
       use_node_name yes
    instead of

    Code:
    [ayt.th.com]
       address localhost
       use_node_name yes
    What's in /etc/hosts?
     
  5. wizard

    wizard New Member

    munin-update

    Detail in file /etc/hosts

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 mail.ayt.th.com mail localhost.localdomain localhost
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Did you change /etc/munin/munin.conf and restart munin? Does it work now?
     
  7. wizard

    wizard New Member

    How to restart munin ?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Have a look at the tutorial:
    Code:
    /etc/init.d/munin-node restart
     
  9. wizard

    wizard New Member

    Munin work,but password protect output not work

    Thank you, it work.
    but password protect output directory not work.
    detail in file /var/www/html/munin/.htaccess

    AuthType Basic
    AuthName "Members Only"
    AuthUserFile /var/www/html/munin/.htpasswd
    <limit GET PUT POST>
    require valid-user
    </limit>

    and detail in file
    [root@www ~]# vi /var/www/html/munin/.htpasswd
    admin:xxxxxxxxxx

    When i browse to http://mywebserver/munin/ but not asked password.
    what wrong and how to solve this problem ?

    thank you .
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Please put something like
    Code:
    AllowOverride All
    in your Apache configuration for that directory and restart Apache.
     
  11. wizard

    wizard New Member

    Detail in file httpd.conf

    <Directory />
    Options FollowSymLinks
    # AllowOverride None
    AllowOverride All
    </Directory>

    and restart httpd , but don't work.
     
  12. wizard

    wizard New Member

    Sorry for reply again, i think incorrect to change.


    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    # AllowOverride None
    AllowOverride All

    Now it work.
    Thank you.
     

Share This Page