Tuesday, 28 May 2013

How to install and configure munin monitoring tool on Rhel/Centos/Linux

First check the httpd package install or not
[root@localhost opt]#rpm -qa http*    (If httpd service is not installed first install it)

[root@localhost opt]# yum install http*

[root@localhost opt]# service httpd restart

Stopping httpd: [ OK ]

Starting httpd: [ OK ]

[root@localhost opt]#

Installing munin
[root@localhost ~]# yum install munin*

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirror.nbrc.ac.in

* epel: mirror.smartmedia.net.id

* extras: mirror.nbrc.ac.in

* updates: mirror.nbrc.ac.in

Setting up Install Process

Package munin-cgi-2.0.12-2.el6.noarch already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package munin.noarch 0:2.0.12-2.el6 will be installed

---> Package munin-async.noarch 0:2.0.12-2.el6 will be installed

---> Package munin-common.noarch 0:2.0.12-2.el6 will be installed

---> Package munin-java-plugins.noarch 0:2.0.12-2.el6 will be installed

---> Package munin-node.noarch 0:2.0.12-2.el6 will be installed

---> Package munin-ruby-plugins.noarch 0:2.0.12-2.el6 will be installed

--> Finished Dependency Resolution
Dependencies Resolved

Package Arch Version Repository Size



munin noarch 2.0.12-2.el6 epel 193 k

munin-async noarch 2.0.12-2.el6 epel 23 k

munin-common noarch 2.0.12-2.el6 epel 84 k

munin-java-plugins noarch 2.0.12-2.el6 epel 84 k

munin-node noarch 2.0.12-2.el6 epel 399 k

munin-ruby-plugins noarch 2.0.12-2.el6 epel 20 k
Transaction Summary


Install 6 Package(s)
Total download size: 803 k

Installed size: 2.1 M

Is this ok [y/N]: y

Downloading Packages:

(1/6): munin-2.0.12-2.el6.noarch.rpm | 193 kB 00:01

(2/6): munin-async-2.0.12-2.el6.noarch.rpm | 23 kB 00:00

(3/6): munin-common-2.0.12-2.el6.noarch.rpm | 84 kB 00:00

(4/6): munin-java-plugins-2.0.12-2.el6.noarch.rpm | 84 kB 00:00

(5/6): munin-node-2.0.12-2.el6.noarch.rpm | 399 kB 00:01

(6/6): munin-ruby-plugins-2.0.12-2.el6.noarch.rpm | 20 kB 00:00


Total 173 kB/s | 803 kB 00:04

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : munin-common-2.0.12-2.el6.noarch 1/6

Installing : munin-node-2.0.12-2.el6.noarch 2/6

Installing : munin-2.0.12-2.el6.noarch 3/6

Installing : munin-java-plugins-2.0.12-2.el6.noarch 4/6

Installing : munin-async-2.0.12-2.el6.noarch 5/6

Installing : munin-ruby-plugins-2.0.12-2.el6.noarch 6/6


munin.noarch 0:2.0.12-2.el6 munin-async.noarch 0:2.0.12-2.el6

munin-common.noarch 0:2.0.12-2.el6 munin-java-plugins.noarch 0:2.0.12-2.el6

munin-node.noarch 0:2.0.12-2.el6 munin-ruby-plugins.noarch 0:2.0.12-2.el6

[root@localhost ~]# vi /etc/munin/munin.conf

#dbdir /var/lib/munin

#htmldir /var/www/html/munin

#logdir /var/log/munin

#rundir /var/run/munin

#tmpldir /etc/munin/templates

change to

dbdir /var/lib/munin

htmldir /var/www/html/munin

logdir /var/log/munin

rundir /var/run/munin

tmpldir /etc/munin/templates

save and exit

[root@localhost ~]# /etc/init.d/munin-node restart

Stopping Munin Node agents: cat: /var/run/munin/munin-node.pid: No such file or directory

kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]


Starting Munin Node: [ OK ]

[root@erpserver ~]# chkconfig httpd on

Setup user name and password on munin

[root@localhost ~]# htpasswd -c /etc/munin/munin-htpasswd admin

New password:
Re-type new password:

Adding password for user admin

[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

[root@localhost ~]# /etc/init.d/munin-node restart
Stopping Munin Node agents: [ OK ]
Starting Munin Node: [ OK ]
[root@localhost ~]#

Browser the url: http://yourip/munin
submit the user id and pass

Reset Grace Period of Windows Server 2012 RDS

Error: the remote session was disconnected because there are no remote desktop license servers available to provide license in aws Solu...