LinuxCommandLibrary

icinga2

TLDR

Check configuration

$ icinga2 daemon -C
copy
Start Icinga 2
$ sudo systemctl start icinga2
copy
Reload configuration
$ sudo systemctl reload icinga2
copy
Show features
$ icinga2 feature list
copy
Enable feature
$ sudo icinga2 feature enable [api]
copy
List objects
$ icinga2 object list --type Host
copy

SYNOPSIS

icinga2 command [options]

DESCRIPTION

Icinga 2 is a monitoring system that checks availability of hosts and services. It supports distributed monitoring, advanced configurations, and integrates with various backends.
Icinga 2 uses a domain-specific language (DSL) for configuration, supporting templates, apply rules, and runtime modifications through its API.

PARAMETERS

daemon [-C]

Run daemon (or check config with -C).
feature subcommand
Manage features (list, enable, disable).
object subcommand
Object management (list).
node subcommand
Node/cluster management.
pki subcommand
PKI/certificate management.
console
Open debug console.
--version
Show version.

FEATURES

- Host and service monitoring
- Distributed/clustered setup
- REST API
- Graphite/InfluxDB integration
- Notification system
- Performance data

CAVEATS

Configuration syntax differs from Icinga 1/Nagios. Cluster setup requires PKI. Large installations need tuning. Web interface (Icinga Web 2) installed separately.

HISTORY

Icinga was forked from Nagios in 2009 due to disagreements about project governance. Icinga 2, released in 2014, was a complete rewrite with modern architecture and new configuration language.

SEE ALSO

nagios(8), prometheus(1), zabbix(1)

Copied to clipboard