Website: www.nagios.com
DOWNLOAD Nagios Core: nag.is/coresys
DOWNLOAD Nagios Plugins: nag.is/plugsys
DOWNLOAD Nagios XI: nag.is/xisys
DOWNLOAD Nagios Log Server: nag.is/logsys
DOWNLOAD Nagios Network Analyzer: nag.is/netsys
Why Nagios:
Open-source
Customized Dashboards
Ease of Use
Infinite Scalability
Data in Real Time
Network Security
-------------------------------------------------------------
Starting to adding the host
$ cd /usr/local/nagios/etc/
$ mkdir hosts services
$ chown nagios:nagios hosts/ services/
$ nano -c nagios.cfg
Paste the following in the file
cfg_dir=/usr/local/nagios/etc/hosts
cfg_dir=/usr/local/nagios/etc/services
Go to hosts
$ cd /usr/local/nagios/etc/hosts
$ nano YOURHOSTFILENAME.cfg
Paste the following there
define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}
define host{
use linux-box ; Inherit default values from a template
host_name linux ; The name we're giving to this server
alias linux ; A longer name for the server
address ; IP address of Remote Linux host
}
Go to services
$ cd /usr/local/nagios/services
$ nano YOURSERVICESNAME.cfg
Paste the following there
define service{
use generic-service
host_name changeme
service_description check-host-alive
check_command check-host-alive
}
14 окт 2024