Comments on Server Monitoring With munin And monit On CentOS 5.2

Server Monitoring With munin And monit On CentOS 5.2 In this article I will describe how you can monitor your CentOS 5.2 server with munin and monit. munin produces nifty little graphics about nearly every aspect of your server (load average, memory usage, CPU usage, MySQL throughput, eth0 traffic, etc.) without much configuration, whereas monit checks the availability of services like Apache, MySQL, Postfix and takes the appropriate action such as a restart if it finds a service is not behaving as expected. The combination of the two gives you full monitoring: graphics that lets you recognize current or upcoming problems (like "We need a bigger server soon, our load average is increasing rapidly."), and a watchdog that ensures the availability of the monitored services.

10 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Matthew

Latest packages of munin place html to /var/www/html/munin

nano /etc/httpd/conf.d/munin.conf    and paste the following (change *  to the ip of your pc)

 Alias /monitoring /var/www/html/munin

<Location /usage>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from *.*.*.*
</Location>

 

 +After restart Apache deamon

service httpd restart

By: Anonymous

These steps are not solving problem with the munin install on centos. I tried and go through each step but same result. Its giving me the same error as mention aboved. So it means these steps are not worth it. Dont follow these steps.

By: Anonymous

I don't mean to be rude, but if you can't figure this out I don't know if you will have any luck using the stats this produces.

 Let's pretend you have a Vhost in apache called mycoolsite.com with a docroot of /www/mycoosite.com/docs

 Ok... all you do is create a directory called /www/mycoolsite.com/docs/monitoring

Change ownership and group to munin or just do chmod 777 monitoring

 Munin will put html/image files inside whatever directory you tell it to in the config, and you access it by putting in the web address to that directory (in this case www.mycoolsite.com/monitoring)

 Bottom line, create a new directory inside of a website you already have setup and running, then set the munin conf to use that directory, then access the stats by accessing that website/directory.

By: tracepath

I followed all steps but i have i problem. The output folder is /var/www/html/egw/web/monitoring and when i put "hostname.server.com/egw/web/monitoring" is empty. No charts.

 What can i do ?

Thanks

By: jindowin

can u help me clearly?

i get error the same..but i dont know where i have to "include /html"

By: jindowin

i get error when i type to my browser:

Not Found

The requested URL /monitoring/ was not found on this server.


Apache/2.2.3 (CentOS) Server at www.example.com Port 80
 
 
can u help me? do i need install apache before install munin?

 

By: Anonymous

By changing the ownership to munin you are unable to see the content. Also you need to include /html

By: Haider

Hello 

 

I'd installed munin monitoring tool in centos 5.2

I'd completed all the step, but when i open my web browser and try to access 

www.example.com 

i get error 

NOT Found

The Request URL/ monitoring/ was not found on this server

Can u please help me out 

 

By: royalcharlie

Followed instructions and encountered a problem that just got solved due to comments from an anonymous. Many thanks to you!

Am using centos 5.5 64-bit.
and only changed htmldir to /var/www/html/munin

Waited for a while and checked via browser only to get a link to localhost and that's it. Nothing else is displayed. Checked the logs and the munin directory itself and there are files being created. Tried rebooting but no effect.

Read through the steps again and this time including the comments and read about editing /etc/httpd/conf.d/munin.conf and noticed that the alias is pointing to /var/www/munin rather than /var/www/html/munin.

After changing this and restarting apache daemon... the munin site is working. Cheers.

By: ahmet

This is my working way if you have more then one web site
Centos 6.0

vim /etc/munin/munin.conf

 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

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

# a simple host tree
#[x86-10.phx2.fedoraproject.org]
#    address 127.0.0.1
#    use_node_name yes

[www.example.com]
    address 127.0.0.1
    use_node_name yes



vim /etc/httpd/conf/httpd.conf


DocumentRoot "/var/www/html/munin"
ServerName monin.example.com
<Directory "/var/www/html/munin">
allow from all
Options +Indexes
</Directory>



Enter http://monin.example.com/