Nagios - configure a service
Автор: benlinux-en
Загружено: 2025-03-27
Просмотров: 275
Описание:
In this video, I’ll explain how to add a service for monitoring in Nagios.
I will cover the various parameters you can set for a service and a service template. Additionally, I’ll demonstrate how to add monitoring for this service to a host that is already configured in your Nagios system.
I invite you to check out my Nagios playlist for a complete list of all my videos on Nagios:
• Nagios
You can use your preferred text editor to modify the configuration files. In the video, I use vi, as I am very familiar with it, but other users may prefer nano, which is generally easier to use than vi.
-----
0:00 Intro
1:28 Prerequisites
1:44 Create and configure a service configuration.
16:29 Add the service to a host
18:34 Verify the new configuration
19:08 Test the change
20:49 Conclusion
------
Here are some other videos that may help you with this topic:
Installing a Nagios Core Server on an Ubuntu Server
• Nagios 1 to 4 - How to install Nagios in U...
Nagios - Adding a Host to Monitor
• Nagios - add a host to monitor
Here is the webpage for Nagios object definitions:
https://assets.nagios.com/downloads/n...
----------------
Here are some commands I use in this video.
To navigate to the Nagios objects directory:
cd /etc/nagios4/objects/
To list the contents
ls
To open the service.cfg configuration file previously created in another # video.
sudo nano services.cfg
An example configuration to add:
define service{
use generic-service
hostgroup_name web-server
service_description monitoring port 80
check_command check_tcp!80
}
To view and modify the templates configured in your Nagios environment.
sudo nano /etc/nagios4/objects/templates.cfg
To configure a dedicated file to store host groups:
sudo nano /etc/nagios4/objects/host_groups.cfg
An example of configuring a host group.
define hostgroup {
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: