Centos/rhel 5 Platform Installation fan Nagios

Source: Internet
Author: User
Tags rrdtool nameserver fully qualified domain name

First, fan is a CentOS-based mini-version system that can download ISO image installation directly. It can also be installed on the Redhat platform, and FAN 2.1 is typically installed on a 32-bit system on the Redhat 5.x platform.

Official website: http://www.fullyautomatednagios.org/download/


Second, Configure the network and DNS

1.network

[Email protected] desktop]# Cat/etc/sysconfig/network-scripts/ifcfg-eth3


2.dns

[Email protected] desktop]# cat/etc/resolv.conf

Search Localdomain

NameServer 210.21.4.130

NameServer 221.5.88.88


Second, installed on the 32-bit system is very simple

1. Installing Epel-release

[Email protected] desktop]# RPM-UVH http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm


2. Install Graphviz repo:

[Email protected] desktop]# cd/etc/yum.repos.d/

[Email protected] desktop]# wget Http://www.graphviz.org/graphviz-rhel.repo


3. Install FAN repo:

[Email protected] desktop]# wget http://www.fullyautomatednagios.org/FAN/repository/2.4/i386/ fan-repo-2.4-fan.1.noarch.rpm


[email protected] desktop]# Yum localinstall--nogpgcheck fan-repo-2.4-fan.1.noarch.rpm


4.64-bit system can not install this, need fan_nagios_x86_64.repo.tar.gz package (this package is I created a new source), the package is extracted directly into the/etc/yum.repos.d/folder can be


Third, install stable version 2.4

FAN Standalone

[email protected] desktop]# Yum install Fan-standalone


FAN Poller

[email protected] desktop]# Yum install Fan-poller


FAN Central

[email protected] desktop]# Yum install fan-central


FAN Database

[email protected] desktop]# Yum install Fan-database



Iv. plotting historical curves with PnP

    1. PnP is a tool based on PHP and Perl that uses RRDtool to chart data from Nagios, so you must install PHP, Perl, and RRDtool before you install PNP.


2. Install the required plugins

Yum-y Install gcc-c++

Yum-y Install Libxml2-devel

Yum-y Install pango*


3. Installing Cgilib

Tar zxvf cgilib-0.5.tar.gz

CD cgilib-0.5

CP Cgi.h/usr/include


4. Installing RRDtool

Tar zxvf rrdtool-1.4.5.tar.gz

CD RRDtool

./configure

Make all

Make install


5. Edit the file to the last face

Vi/etc/httpd/conf/http.conf

Alias/pnp "/usr/local/nagios/share/pnp"

<directory "/usr/local/nagios/share/pnp" >

Options None

AllowOverride None

Order Allow,deny

Allow from all

AuthName "Nagios Access"

Authuserfile/etc/nagios/htpasswd.users

Require Valid-user

AuthType Basic

</Directory>


This is the end of the installation, the following is the error that occurred during my installation, and the workaround


Five, error

1. Network card Traffic Error: Return Code of 127 is out of bounds-plugin could be missing

/usr/lib/nagios/plugins/The Traffic check script is missing under this folder, then empower

ll/usr/lib/nagios/plugins/check_traffic.sh

Cd/usr/lib/nagios/plugins

chmod 777-r Plugins

Chown-r Nagios.nagios Plugins


2.vi/etc/httpd/conf/httpd.conf

Find #servername www.example.com:80 to remove the # and restart Apache

Starting httpd:httpd:Could not reliably determine the server's fully qualified domain name, using 172.16.195.101 for Ser Vername


3.nagios Alarm all off module error

Error:could not stat () command file '/var/log/nagios/rw/nagios.cmd '!

Copy a Nagios.cmd file to the following directory, and then empower to resolve

Chmod-r 777/var/log/nagios/rw/


4.check_nrpe:error-could not complete SSL handshake.

Vi/usr/local/nagios/etc/nrpe.cfg

Add Nagios IP Address 210.31.118.245

Then restart Nrpe


5. These are only 210.31.118.245 The machine ping does not pass, that is the firewall filter, add

PING Critical-packet loss = 100%


/sbin/iptables-a input-p icmp-s 210.31.118.245-j ACCEPT


6. These are the 5666 port telnet is not a pass, is also a firewall blocked

Check_nrpe:socket timeout after ten seconds.

Check_nrpe:socket timeout after ten seconds.



This article is from "Kaka West" blog, please be sure to keep this source http://whnba.blog.51cto.com/1215711/1617811

Centos/rhel 5 Platform Installation fan Nagios

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.