Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Monitoring Overview
- Nagios Installation
Note
This example is very simple, and does not highlight many of Puppet’s features and benefits. For more information see Resources. Resources • See the Official Puppet Documentation web site. • See the Puppet forge, online repository of puppet modules. • Also see Pro Puppet. Monitoring Overview The monitoring of essential servers and services is an important part of system administration. Most net- work services are monitored for performance, availability, or both. This section will cover installation and configuration of Nagios for availability monitoring, and Munin for performance monitoring. 277 The examples in this section will use two servers with hostnames server01 and server02. Server01 will be configured with Nagios to monitor services on itself and server02. Server01 will also be setup with the munin package to gather information from the network. Using the munin-node package, server02 will be configured to send information to server01. Hopefully these simple examples will allow you to monitor additional servers and services on your network. 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. Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling