Nagios
- Table Of Contents · Nagios Core Documentation
- Ansible playbooks for Nagios Installation on Ubuntu 18.04.4 LTS / 20.04 LTS – The Mythryll Log
- 使用Grafana+InfluxDB展示Nagios监控数据 | Wislay
- Nagios Core: Α Beginner’s Guide for 2023
- API
- permission
- default
- check interval is 5 minutes
/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/htpasswd.users
/usr/local/nagios/etc/cgi.cfg
/usr/local/nagios/var/nagios.log
Basic config
- Monitoring Publicly Available Services · Nagios Core Documentation
- Object Configuration Overview · Nagios Core Documentation
- Monitoring Linux/Unix Machines · Nagios Core Documentation
- definition
- Main Configuration File Options · Nagios Core Documentation
- Host and Service Check Scheduling · Nagios Core Documentation
/usr/local/nagios/etc/
/usr/local/nagios/etc/servers foo.cfg boo.cfg
foo.cfg
###############################################################################
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
#
#
# NOTE: This config file is intended to serve as an *extremely* simple
# example of how you can create configuration entries to monitor
# the local (Linux) machine.
#
###############################################################################
###############################################################################
#
# HOST DEFINITION
#
###############################################################################
# Define a host for the local machine
define host {
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name foo
alias foo
address 167.22.10.1
}
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
# Define a service to "ping" the local machine
define service {
use generic-service ; Name of service template to use
host_name foo
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service {
use generic-service ; Name of service template to use
host_name foo
service_description SSH
check_command check_ssh
notifications_enabled 0
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.
define service {
use generic-service ; Name of service template to use
host_name foo
service_description HTTP
check_command check_http
notifications_enabled 0
}