Nagios setting_how to configure the Nagios Server user group on Linux

Source: Internet
Author: User
We mentioned how to install Nagiosinstallation. The client will introduce it later in the article. This article will introduce how to configure the server side of Nagiosinstallation. We talked about how to install Nagios installation. The client will introduce it later in the article. This article will introduce how to configure the server side of Nagios.


Procedure1: Open the local. cfg file and configure the service user group.

Servicegroup_name Users-Groups User Group
Servicegroup_name Disks-Groups disk user

# vim /usr/loca/nagios/etc/objects/localhost.cfg  define servicegroup{        servicegroup_name       Users-Groups        alias                   Users        }define servicegroup{       servicegroup_name        Disk-Groups        alias                   Disk Usages        }
Step 2:
Open the local host file and configure servicegroups,
# vim /usr/local/nagios/etc/servers/ define host{        use                     linux-server        host_name               host.hostname.com        alias                   hostname.com        address                 192.168.2.0      # Client Host IP        } define service{        use                             generic-service        host_name                        host.hostname.com        service_description             Current Users        check_command                   check_nrpe!check_users        servicegroups                   Users-Groups        }define service{        use                             generic-service        host_name                       host.hostname.com        service_description             Disk Usage        check_command                   check_nrpe!check_disk        servicegroups                   Disks-Groups        }
Once configured restart the Nagios service,
#  service nagios restartRestarting nagios (via systemctl):                         [  OK  ]
Related Article

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.