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

Chapter 5. Configuring the Nagios Plugins for Ceph


Configure the Nagios plug-ins for Red Hat Ceph Storage cluster.

Prerequisites

  • User-level access to the Ceph Monitor node.
  • A running Red Hat Ceph Storage cluster.
  • Access to the Nagios Core Server.

Procedure

  1. Log in to the monitor server and create a Ceph key and keyring for Nagios.

    Copy to Clipboard Toggle word wrap
    [user@mon]# ssh mon
    [user@mon]# cd /etc/ceph
    [user@mon]# ceph auth get-or-create client.nagios mon 'allow r' > client.nagios.keyring

    Each plug-in will require authentication. Repeat this procedure for each node that contains a plug-in.

  2. Add a command for the check_ceph_health plug-in:

    Copy to Clipboard Toggle word wrap
    [user@mon]# vi /usr/local/nagios/etc/nrpe.cfg

    Example

    Copy to Clipboard Toggle word wrap
    command[check_ceph_health]=/usr/lib/nagios/plugins/check_ceph_health --id nagios --keyring /etc/ceph/client.nagios.keyring

  3. Enable and restart the nrpe service:

    Copy to Clipboard Toggle word wrap
    [user@mon]# systemctl enable nrpe
    [user@mon]# systemctl restart nrpe

    Repeat this procedure for each Ceph plug-in applicable to the node.

  4. Return to the Nagios Core server and define a check_nrpe command for the NRPE plug-in:

    Copy to Clipboard Toggle word wrap
    [user@nagios]# cd /usr/local/nagios/etc/objects
    [user@nagios]# vi commands.cfg
    Copy to Clipboard Toggle word wrap
    define command{
     command_name check_nrpe
     command_line USER1/check_nrpe -H HOSTADDRESS -c ARG1
    }
  5. On the Nagios Core server, edit the configuration file for the node and add a service for the Ceph plug-in.

    Example

    Copy to Clipboard Toggle word wrap
    [user@nagios]# vi /usr/local/nagios/etc/objects/mon.cfg

    Copy to Clipboard Toggle word wrap
    define service {
      use                   generic-service
      host_name             mon
      service_description   Ceph Health Check
      check_command         check_nrpe!check_ceph_health
    }
    Note

    The check_command setting uses check_nrpe! before the Ceph plug-in name. This tells NRPE to execute the check_ceph_health command on the remote node.

  6. Repeat this procedure for each plug-in applicable to the node.
  7. Restart the Nagios Core server:

    Copy to Clipboard Toggle word wrap
    [user@nagios]# systemctl restart nagios
  8. Before proceeding with additional configuration, ensure that the plug-ins are working.

    Example

    Copy to Clipboard Toggle word wrap
    [user@mon]# /usr/lib/nagios/plugins/check_ceph_health --id nagios --keyring /etc/ceph/client.nagios.keyring

    Note

    The check_ceph_health plug-in performs the equivalent of the ceph health command.

Additional Resources

  • See the Ceph Nagios plugins web page for usage.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2025 Red Hat, Inc.