Fedora

Fedora

How To Install And Configure Nagios On CentOS

Nagios is a popular networking monitoring software. Nagios lets you monitor your IT infrastructure, be it servers, routers, switches or other devices. In this post, I will walk you through the steps of installing and configuring a basic setup of Nagios on CentOS.

At the end of the tutorial you will be have a working Nagios setup to monitor

  • local disk space usage
  • local system load
  • an external website

Whenever there is a problem or recovery with any of the above, Nagios will alert you via email.

Unless you have a strong reason to compile Nagios yourself, you should use the binary packages available for your Linux distribution.

RPMForge provides packages that are not included in CentOS repositories. We will use the Nagios packages from RPMForge.

Enabling RPMForge repository

For 32 bit machines use these commands:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm

For 64 bit machines use these commands:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm

Installing And Configuring Nagios

How To Get Broadcom BCM4312 Wireless To Work In Fedora

Broadcom provides Linux drivers for most of its wireless chipsets. Prior to the release of official drivers from Broadcom, the open source software community had various workarounds. Some people used Windows drivers through ndiswrapper. Others used fwcutter.

The RPM Fusion Repository for Fedora offers the Broadcom wireless drivers from its repositories. You can install them using yum.

Step 1: Enable the RPM Fusion repositories

rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

Taxonomy upgrade extras: 

How To Play Music And Video In Fedora

How to play music and video(MP3, MPEG, AVI, FLV and other multimedia files) in Fedora 12?

Due to patent encumbrance codecs required to play some proprietary file formats are not shipped with Fedora. Codecs are the programs that encode and decode digital data. These codecs are available in the rpmfusion repository for Fedora. You will be able to play mpeg, mp3, avi, flv and other commonly used file formats for music and video. You will require an Internet connection to download and install these packages on your computer.

video movie playing in gnome mplayer fedora 12 screenshot

Let us get started. Are you ready?

Taxonomy upgrade extras: 

Tip Of The Day : Add The Show Desktop Widget To The Panel And Configure Keyboard Shortcut To Minimize All Windows - KDE 4.3.3

How to configure keyboard short cut to minimze all windows on KDE 4.3.3 on Fedora

Having the Show Desktop button on the panel is something everyone would want. If you are unable to find the settings follow the instructions below.

1. Install the kdeplasma-addons package.

# yum install kdeplasma-addons -y

2. Add the Show Desktop widget to the panel.

  • Click the Cashew button on the panel - the rightmost corner button
  • Click Add Widgets
  • Click Show Desktop
  • Click Add Widget
Taxonomy upgrade extras: 

Enable MySQL General Query And Slow Query Log

MySQL has a query logging feature. In order to use it you have to first enable it.

Enabling the general query log

Step 1: Set your log file in /etc/my.cnf

vi /etc/my.cnf

In the [mysqld] section specify the general log file name:

log=/var/log/mysqld.general.log

Step 2: Create the file and make sure it is owned by the system user mysql

touch /var/log/mysqld.general.log
chown mysql.mysql /var/log/mysqld.general.lo
Taxonomy upgrade extras: 

Setting Up Apache Virtual Hosts on Fedora

Apache HTTP server is capable of hosting multiple websites on the same server. The feature is popularly known as virtual host.

The term Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.com) on a single machine. When you configure virtual hosts your web server runs many websites at any given instance. You don't need to edit Apache configuration file and restart Apache every time you switch to a different website.

Follow the instructions below to configure virtual hosts in Apache.

Taxonomy upgrade extras: 

Tip Of The Day : Use dict

Have you fallen in love with the command line? Do you use a graphical browser to visit dictionary sites like wiktionary.org?

Use dictd.

What does dictd do?

[sudheer@localhost ~]$ yum info dictd
Loaded plugins: fastestmirror, refresh-packagekit
Installed Packages
Name       : dictd
Arch       : i386
Version    : 1.10.11
Release    : 3
Size       : 728 k
Repo       : installed
Summary    : DICT protocol (RFC 2229) command-line client
URL        : http://www.dict.org/
License    : GPL+ and zlib and MIT
Taxonomy upgrade extras: 

How To Configure Yum To Exclude A Mirror

Many of us have suffered from failing package repository mirrors. Some are slow, some won't have updated content, etc. You might want to remove/blacklist a particular mirror in your yum configuration.

Before trying to remove a mirror, install the fastest mirror plugin.

yum install yum-fastestmirror -y

The fastest mirror plugin is capable of determining mirror speeds and cache it. If that works for you well and good.

Nagios Quickstart installation guide (Fedora/CentOS) - Works on CentOS 5.3 as well

If you have freshly install CentOS - 5.3 and if you trying to install Nagios on the same then refer this link mentioned below this works like a gem.

http://www.linux4beginners.info/node/nagiosfedora

Before you start up with the installation of nagios on CentOS 5.3 my recommendation is that you stop your firewall and disable SELinux.

Command to check the status of the firewall on CentOS 5.3 - service iptables status

Command to check the status of the firewall on CentOS 5.3 - service ip6tables status

Taxonomy upgrade extras: 

Pages