Ubuntu Server Guide Changes, errors and bugs
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
- Bu sahifa navigatsiya:
- Configuration Overview
Nagios
Installation First, on server01 install the nagios package. In a terminal enter: sudo apt i n s t a l l n a g i o s 3 n a g i o s −nrpe−p l u g i n You will be asked to enter a password for the nagiosadmin user. The user’s credentials are stored in /etc/ nagios3/htpasswd.users. To change the nagiosadmin password, or add additional users to the Nagios CGI scripts, use the htpasswd that is part of the apache2-utils package. For example, to change the password for the nagiosadmin user enter: sudo htpasswd / e t c / n a g i o s 3 / htpasswd . u s e r s nagiosadmin To add a user: sudo htpasswd / e t c / n a g i o s 3 / htpasswd . u s e r s s t e v e Next, on server02 install the nagios-nrpe-server package. From a terminal on server02 enter: sudo apt i n s t a l l n a g i o s −nrpe−s e r v e r Note NRPE allows you to execute local checks on remote hosts. There are other ways of accomplishing this through other Nagios plugins as well as other checks. 284 Configuration Overview There are a couple of directories containing Nagios configuration and check files. • /etc/nagios3: contains configuration files for the operation of the nagios daemon, CGI files, hosts, etc. • /etc/nagios−plugins: houses configuration files for the service checks. • /etc/nagios: on the remote host contains the nagios-nrpe-server configuration files. • /usr/lib/nagios/plugins/: where the check binaries are stored. To see the options of a check use the -h option. For example: /usr/lib/nagios/plugins/check_dhcp −h There are a plethora of checks Nagios can be configured to execute for any given host. For this example Nagios will be configured to check disk space, DNS, and a MySQL hostgroup. The DNS check will be on server02, and the MySQL hostgroup will include both server01 and server02. Note See ??? for details on setting up Apache, ??? for DNS, and ??? for MySQL. Additionally, there are some terms that once explained will hopefully make understanding Nagios configura- tion easier: • Host: a server, workstation, network device, etc that is being monitored. • Host Group: a group of similar hosts. For example, you could group all web servers, file server, etc. • Service: the service being monitored on the host. Such as HTTP, DNS, NFS, etc. • Service Group: allows you to group multiple services together. This is useful for grouping multiple HTTP for example. • Contact: person to be notified when an event takes place. Nagios can be configured to send emails, SMS messages, etc. By default Nagios is configured to check HTTP, disk space, SSH, current users, processes, and load on the localhost. Nagios will also ping check the gateway. Large Nagios installations can be quite complex to configure. It is usually best to start small, one or two hosts, get things configured the way you like then expand. Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling