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 and configure nagios

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you "how to install the configuration of 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 "how to install the configuration of nagios" this article.

1 prepare before installation:

Apache2

GCC Compiler and Development Library

GD library and development library

Php

2 create an account:

/ usr/sbin/useradd nagios-- create an account group

Mkdir / usr/local/nagios-create the installation directory

Chown nagios:nagios / usr/local/nagios-- modify directory permissions

Usermod-G nagios apache-add the Web account to the nagios group, which can be operated in web.

3 installation:

Wget http://ncu.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.3/nagios-3.2.3.tar.gz

Tar-zxvf nagios-3.2.3.tar.gz

. / configure-- prefix=/usr/local/nagios

Make all

Make install-This installs the main program, CGIs, and HTML files

Make install-init-This installs the init script in / etc/rc.d/init.d

Make install-commandmode-This installs and configures permissions on the

Make install-config-- This installs * SAMPLE* config files in / usr/local/nagios/etc

Make install-webconf-This installs the Apache config file for the Nagios

4. Configuration file:

More / etc/httpd/conf.d/nagios.conf

Please pay $AuthUserFile / usr/local/nagios/etc/htpasswd.users

Cp / etc/httpd/conf.d/nagios.conf / var/www/html/

Nagios page access account:

/ usr/bin/htpasswd-c / usr/local/nagios/etc/htpasswd.users nagiosadmin

New password:-- nagiosadmin account permissions have been set by default.

Re-type new password:-- configuration file view / usr/local/nagios/etc/nagios.cfg

Adding password for user root-focus / usr/local/nagios/etc/cgi.cfg

Note here: as the default user, nagiosadmin operates the CGI function directly from the WEB page, in other words, it can be operated directly on the page. If you need to change the user name, you need to give the new Yongming WEB page operation permission in / usr/local/nagios/etc/cgi.cfg. Of course, page operation is not recommended when you generally use nagios.

Log log

Touch / usr/local/nagios/var/nagios.log

Chown nagios:nagios / usr/local/nagios/var/nagios.log

5. Configure boot up:

Set nagios to boot

[root@localhostnagios] # chkconfig nagios on

[root@localhostnagios] # service nagios start

[root@localhost soft] # service httpd restart

6. test

Http://192.168.28.X/nagios/

Install the primary plug-in: nagios-plugins

These are all the contents of the article "how to install and configure nagios". 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