Linux command
icinga2 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Check configuration
icinga2 daemon -C
Start Icinga 2
sudo systemctl start icinga2
Reload configuration
sudo systemctl reload icinga2
Show features
icinga2 feature list
Enable feature
sudo icinga2 feature enable [api]
List objects
icinga2 object list --type Host
说明
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.
参数
- 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.
FAQ
What is the icinga2 command used for?
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.
How do I run a basic icinga2 example?
Run `icinga2 daemon -C` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does daemon -C do in icinga2?
Run daemon (or check config with -C).