#Nagios
Classic open-source monitoring.
#Overview
Nagios has been monitoring infrastructure since 1999.
| Feature | Description |
|---|---|
| Host monitoring | Server health |
| Service monitoring | Application checks |
| Alerting | Email, SMS, etc. |
| Plugins | Extensible checks |
#Installation
bash
1# Ubuntu
2sudo apt install nagios4 nagios-plugins
3
4# Access web UI
5# http://localhost/nagios4#Host Definition
cfg
1# /etc/nagios4/objects/hosts.cfg
2define host {
3 use linux-server
4 host_name webserver
5 alias Web Server
6 address 192.168.1.10
7 max_check_attempts 5
8 check_period 24x7
9 notification_interval 30
10 notification_period 24x7
11}#Service Definition
cfg
1define service {
2 use generic-service
3 host_name webserver
4 service_description HTTP
5 check_command check_http
6}#Strengths
- Proven and stable
- Large plugin ecosystem
- Low overhead
[!TIP] Pro Tip: Nagios is reliable but consider Prometheus for modern stacks!