이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 2. Nagios Core installation and configuration


As a storage administrator, you can install Nagios Core by downloading the Nagios Core source code; then, configuring, making and installing it on the node that will run Nagios Core instance.

2.1. Installing and configuring the Nagios Core server from source

There is not a Red Hat Enterprise Linux package for the Nagios Core software, so the Nagios Core software must be compiled from source.

Prerequisites

  • Access to OpenSSL.
  • Internet access.

Procedure

  1. Install the prerequisites:

    [user@nagios]# yum install -y httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl openssl-devel wget unzip
  2. Open port 80 for httpd:

    [user@nagios]# firewall-cmd --zone=public --add-port=80/tcp
    [user@nagios]# firewall-cmd --zone=public --add-port=80/tcp --permanent
  3. Create a user and group for Nagios Core:

    [user@nagios]# useradd nagios
    [user@nagios]# passwd nagios
    [user@nagios]# groupadd nagcmd
    [user@nagios]# usermod -a -G nagcmd nagios
    [user@nagios]# usermod -a -G nagcmd apache
  4. Download the latest version of Nagios Core and Plug-ins:

    [user@nagios]# wget --inet4-only https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.3.1.tar.gz
    [user@nagios]# wget --inet4-only http://www.nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
    [user@nagios]# tar zxf nagios-4.3.1.tar.gz
    [user@nagios]# tar zxf nagios-plugins-2.2.1.tar.gz
    [user@nagios]# cd nagios-4.3.1
  5. Run ./configure:

    [user@nagios]# ./configure --with-command-group=nagcmd
  6. Compile the Nagios Core source code:

    [user@nagios]# make all
  7. Install Nagios source code:

    [user@nagios]# make install
    [user@nagios]# make install-init
    [user@nagios]# make install-config
    [user@nagios]# make install-commandmode
    [user@nagios]# make install-webconf
  8. Copy the event handlers and change their ownership:

    [user@nagios]# cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
    [user@nagios]# chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
  9. Run the pre-flight check:

    [user@nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
  10. Make and install the Nagios Core plug-ins:

    [user@nagios]# cd ../nagios-plugins-2.2.1
    [user@nagios]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
    [user@nagios]# make
    [user@nagios]# make install
  11. Create a user for the Nagios Core user interface:

    [user@nagios]$ sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
    Important

    If adding a user other than nagiosadmin, ensure the /usr/local/nagios/etc/cgi.cfg file gets updated with the username too.

    Also modify the /usr/local/nagios/etc/objects/contacts.cfg file with the user name, full name and email address as needed.

2.2. Starting the Nagios Core service

Start the Nagios Core service to monitor the Red Hat Ceph Storage cluster health.

Prerequisites

  • Root-level access to the Nagios Core service.

Procedure

  1. Add Nagios Core as a service and enable it:

    [user@nagios]# chkconfig --add nagios
    [user@nagios]# chkconfig --level 35 nagios on
  2. Start the Nagios Core daemon and Apache:

    [user@nagios]# systemctl start nagios
    [user@nagios]# systemctl enable httpd
    [user@nagios]# systemctl start httpd

2.3. Logging into the Nagios Core server

Log in to the Nagios Core server to view the health status of the Red Hat Ceph Storage cluster.

Prerequisites

  • User name and password for the Nagios web interface.

Procedure

  1. With Nagios up and running, log in to the web user interface:

    http://IP_ADDRESS/nagios

    Nagios Core will prompt for a user name and password.

  2. Input the login and password of the default Nagios Core user.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat, Inc.