Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install FAN nagios on CentOS/RHEL 5 platform

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "CentOS/RHEL 5 platform how to install FAN nagios", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "CentOS/RHEL 5 platform how to install FAN nagios" this article.

First, FAN is a centos-based mini version of the system, you can directly download the iso image installation. It can also be installed on the redhat platform, which is generally installed on 32-bit systems on the redhat 5.x platform.

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

Second, configure the network and dns

1.network

[root@oracle64 Desktop] # cat / etc/sysconfig/network-scripts/ifcfg-eth4

2.dns

[root@oracle64 Desktop] # cat / etc/resolv.conf

Search localdomain

Nameserver 210.21.4.130

Nameserver 221.5.88.88

Second, it is easy to install on a 32-bit system

1. Install epel-release

[root@oracle64 Desktop] # rpm-Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

two。 Install Graphviz repo:

[root@oracle64 Desktop] # cd / etc/yum.repos.d/

[root@oracle64 Desktop] # wget http://www.graphviz.org/graphviz-rhel.repo

3. Install FAN repo:

[root@oracle64 Desktop] # wget http://www.fullyautomatednagios.org/FAN/repository/2.4/i386/fan-repo-2.4-fan.1.noarch.rpm

[root@oracle64 Desktop] # yum localinstall-- nogpgcheck fan-repo-2.4-fan.1.noarch.rpm

4. 64-bit systems cannot be installed in this way. You need a fan_nagios_x86_64.repo.tar.gz package (this is a new source created by myself). You can extract the package directly to the / etc/yum.repos.d/ folder.

3. Install stable version 2.4

FAN standalone

[root@oracle64 Desktop] # yum install fan-standalone

FAN poller

[root@oracle64 Desktop] # yum install fan-poller

FAN central

[root@oracle64 Desktop] # yum install fan-central

FAN database

[root@oracle64 Desktop] # yum install fan-database

Fourth, draw historical curves with PNP

Pnp is a tool based on php and perl to chart the data collected by nagios with rrdtool, so you must install php, perl and rrdtool before installing pnp.

two。 Install the required plug-ins

Yum-y install gcc-c++

Yum-y install libxml2-devel

Yum-y install pango*

3. Install cgilib

Tar zxvf cgilib-0.5.tar.gz

Cd cgilib-0.5

Cp cgi.h / usr/include

4. Install rrdtool

Tar zxvf rrdtool-1.4.5.tar.gz

Cd rrdtool

. / configure

Make all

Make install

5. Edit the file to add to the end

Vi / etc/httpd/conf/http.conf

Alias / pnp "/ 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

6. Start apache and nagios and then ok. The default user name and password for browsers to access http://ip/nagios Nagios is nagiosadmin.

Fifth, report errors

1. Network card traffic error: Return code of 127is out of bounds-plugin may be missing

/ usr/lib/nagios/plugins/ the traffic check script is missing under this folder, and then empower it

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, remove #, and restart apache.

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

3.nagios alarm all turn off module error report

Error: Could not stat () command file'/ varip _ log _

Copy a nagios.cmd file to the following directory, and then authorize the solution

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 machine ping can not get through, that is, the firewall is blocked, add

PING CRITICAL-Packet loss = 100%

/ sbin/iptables-An INPUT-p icmp-s 210.31.118.245-j ACCEPT

6. These are all blocked by port 5666 telnet and blocked by the firewall.

CHECK_NRPE: Socket timeout after 10 seconds.

CHECK_NRPE: Socket timeout after 10 seconds.

/ sbin/iptables-An INPUT-p tcp-- dport 5666-I eth2-j ACCEPT

The above is all the contents of the article "how to install FAN nagios on CentOS/RHEL 5 platform". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report