Install Munin on CentOS 5 Rumi, January 20, 2013 1 Preliminary Note Our system's hostname is server1.example.com, and we have a web site www.example.com on it with the document root /var/www/www.example.com/web. 2 Enable The RPMforge Repository On CentOS 5.2, munin and monit are not available in the default CentOS repositories. Fortunately we can install them from the RPMforge repository. To enable the RPMforge repository, we run wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm rm -f rpmforge-release-0.3.6-1.el5.rf.i386.rpm on i386 hosts and wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm rm -f rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm on x86_64 hosts (please check out https://rpmrepo.org/RPMforge/Using for the latest versions). 3 Install And Configure munin To install munin on CentOS 5.2, we do this: yum install munin munin-node Then we create the system startup links for munin and start it: chkconfig –levels 235 munin-node on /etc/init.d/munin-node start Next, we must edit the munin configuration file /etc/munin/munin.conf. We want munin to put its output into the directory /var/www/www.example.com/web/monitoring, therefore we change the value of htmldir, and we want it to use the name server1.example.com instead of localhost.localdomain in the HTML output, therefore we replace localhost.localdomain with server1.example.com. Without the comments, the changed file looks like this: vi /etc/munin/munin.conf […] dbdir /var/lib/munin htmldir /var/www/www.example.com/web/monitoring logdir /var/log/munin rundir /var/run/munin # Where to look for the HTML templates tmpldir /etc/munin/templates […] # a simple host tree [server1.example.com] address 127.0.0.1 use_node_name yes […] Next we create the directory /var/www/www.example.com/web/monitoring and change its ownership to the user and group munin, otherwise munin cannot place its output in that directory. Then we restart munin: mkdir -p /var/www/www.example.com/web/monitoring chown munin:munin /var/www/www.example.com/web/monitoring /etc/init.d/munin-node restart Now wait a few minutes so that munin can produce its first output, and then go to http://www.example.com/monitoring/ in your browser, and you see the first statistics. Related Networking CentOSMunin
Install Development Tool on CentOS and Debian June 17, 2022 Well, in my working domain I face these tools to be installed, so that most of the dependent tools or programs that need to be deployed later don’t face much of dependency issue. So here goes the installation process for both the OS. On CentOS/RHEL system use the follwoing command… Read More
Set up the firewall to listen MySQL on port 3306 September 6, 2008 Just a small tweaking comnand that allows MySQL server on a linux server to open & listen to port 3306 for remote connectivity- [root@linux root]# iptables -I INPUT -p tcp –dport 3306 -j ACCEPT Related Read More
Add PHP 7.4 support on Virtualmin GPL on CentOS 7 Distribution April 14, 2022 Install Remi Release repo and clear cache yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm && yum clean all Install PHP packages version 7.4 and/or 8.0 yum -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,opcache,bcmath,imagick,mbstring} yum -y install php80-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,opcache,bcmath,imagick,mbstring} Configuring Individual Virtual Servers You can configure the PHP version being used for a specific Virtual Server by selecting Server Configuration… Read More