LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2014, 05:21 AM   #1
codename-nos
Member
 
Registered: Apr 2010
Posts: 33

Rep: Reputation: 0
Munin is not updating clientlist on webpage


HI everybody...

I have been trying to deploy munin on my servers, but it seems like its not working. Its not displaying the clients on the webpage.

Here is the screeshot of the webpage - http://postimg.org/image/5brshhr63/

here is the apache.conf file of my monitoring server

Code:
   # Enable this for template generation
   Alias /munin /var/www/munin/

   # Enable this for cgi-based templates
   #Alias /munin-cgi/static /var/cache/munin/www/static
   #ScriptAlias /munin-cgi /usr/lib/munin/cgi/munin-cgi-html
   #<Location /munin-cgi>
   #	Order allow,deny 
   #	Allow from localhost 127.0.0.0/8 ::1
   #	AuthUserFile /etc/munin/munin-htpasswd
   #	AuthName "Munin"
   #	AuthType Basic
   #	require valid-user
   #</Location>

   Alias /munin /var/www/munin
   <Directory /var/www/munin>
	Order allow,deny
   #	Require all granted
	Allow from all
	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> 

   # Enables fastcgi for munin-cgi-html if present
   #<Location /munin-cgi>
   #    <IfModule mod_fastcgi.c>
   #        SetHandler fastcgi-script
   #    </IfModule>
   #</Location>

   #<Location /munin-cgi/static>
   #	SetHandler None
   #</Location>

   # Enables fastcgi for munin-cgi-graph if present 
   ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
   <Location /munin-cgi/munin-cgi-graph>
	Order allow,deny
	Allow from localhost 127.0.0.0/8 ::1
	# AuthUserFile /etc/munin/munin-htpasswd
	# AuthName "Munin"
	# AuthType Basic
	# require valid-user
	<IfModule mod_fcgid.c>
	    SetHandler fcgid-script
	</IfModule>
	<IfModule !mod_fcgid.c>
	    SetHandler cgi-script
	</IfModule>
   </Location>

   ScriptAlias /munin-cgi/munin-cgi-html /usr/lib/munin/cgi/munin-cgi-html
   <Location /munin-cgi/munin-cgi-html>
	Order allow,deny
	Allow from localhost 127.0.0.0/8 ::1
	# AuthUserFile /etc/munin/munin-htpasswd
	# AuthName "Munin"
	# AuthType Basic
	# require valid-user
	<IfModule mod_fcgid.c>
	    SetHandler fcgid-script
	</IfModule>
	<IfModule !mod_fcgid.c>
	    SetHandler cgi-script
	</IfModule>
   </Location>
The munin.conf file of monitoring server:
Code:
   # 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/www/munin
   logdir /var/log/munin
   rundir  /var/run/munin

   # Where to look for the HTML templates
   #
   tmpldir	/etc/munin/templates

   [MuninMonitor]
    address 127.0.0.1
    use_node_name yes

   [Adweaver]
    address 100.100.100.101

   [GitServer]
    address 100.100.100.100

   # Where to look for the static www files
   #
   #staticdir /etc/munin/static

   # temporary cgi files are here. note that it has to be writable by 
   # the cgi user (usually nobody or httpd).
   #
   # cgitmpdir /var/lib/munin/cgi-tmp

   # (Exactly one) directory to include all files from.
   includedir /etc/munin/munin-conf.d

   # You can choose the time reference for "DERIVE" like graphs, and show
   # "per minute", "per hour" values instead of the default "per second"
   #
   #graph_period second

   # Graphics files are generated either via cron or by a CGI process.
   # See http://munin-monitoring.org/wiki/CgiHowto2 for more
   # documentation. 
   # Since 2.0, munin-graph has been rewritten to use the cgi code. 
   # It is single threaded *by design* now.
   #
   #graph_strategy cron

   # 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 /munin-cgi/munin-cgi-graph

   # max_size_x and max_size_y are the max size of images in pixel.
   # Default is 4000. Do not make it too large otherwise RRD might use all
   # RAM to generate the images. 
   # 
   #max_size_x 4000
   #max_size_y 4000

   # HTML files are normally generated by munin-html, no matter if the
   # files are used or not. You can change this to on-demand generation
   # by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2
   # 
   # Notes: 
   # - moving to CGI for HTML means you cannot have graph generated by cron.
   # - cgi html has some bugs, mostly you still have to launch munin-html by hand
   # 
   #html_strategy cron

   # munin-update runs in parallel.
   #
   # The default max number of processes is 16, and is probably ok for you.
   #
   # If set too high, it might hit some process/ram/filedesc limits.
   # If set too low, munin-update might take more than 5 min.
   #
   # If you want munin-update to not be parallel set it to 0.
   #
   #max_processes 16

   # RRD updates are per default, performed directly on the rrd files.
   # To reduce IO and enable the use of the rrdcached, uncomment it and set it to 
   # the location of the socket that rrdcached uses.
   #
   #rrdcached_socket /var/run/rrdcached.sock

   # 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

   #
   # 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
   #
   ## IPv6 host. note that the ip adress has to be in brackets
   # [ip6.foo.com]
   #       address [2001::1234:1]
   #
   ## 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
   #
This is the munin-node.conf of my gitserver :

Code:
#
# 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

# This is the timeout for the whole transaction.
# Units are in sec. Default is 15 min
#
# global_timeout 900

# This is the timeout for each plugin.
# Units are in sec. Default is 1 min
#
# timeout 60

# Regexps for files to ignore
ignore_file [\#~]$
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$
allow ^100\.100\.40\.9$
allow ^::1$

# If you have installed the Net::CIDR perl module, you can use one or more
# cidr_allow and cidr_deny address/mask patterns.  A connecting client must
# match any cidr_allow, and not match any cidr_deny.  Note that a netmask
# *must* be provided, even if it's /32
#
# 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
I have allowed the munin-server to connect on port 4949 on clients in iptables.
I searched the web for the similar issue but no help so far..
Any help is much much appriciated.

Thank you.

Last edited by codename-nos; 12-09-2014 at 05:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring with Munin jeremy LQ Articles Discussion 1 08-22-2013 10:43 AM
problem in openng the http webpage for munin tool mail2ganesh.cse Linux - Networking 1 04-29-2012 09:03 AM
munin graph mahmoud Linux - Software 2 01-08-2009 09:41 AM
Hey guys Having problem with Munin updating graphs zombiefx Linux - Software 0 05-17-2006 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration