... | ... | @@ -41,6 +41,27 @@ Nagios server: |
|
|
Alternatively, changing the `.cfg` file and pushing a new commit
|
|
|
should trigger this as well.
|
|
|
|
|
|
## Batch jobs
|
|
|
|
|
|
You can run batch commands from the web interface, thanks to Icinga's
|
|
|
changes to the UI. But there is also a commandline client called
|
|
|
[icli](https://tracker.debian.org/pkg/icli) which can do this from the commandline, on the Icinga
|
|
|
server.
|
|
|
|
|
|
This, for example, will queue recheck jobs on all problem hosts:
|
|
|
|
|
|
icli -z '!o,!A,!S,!D' -a recheck
|
|
|
|
|
|
This will run the `dsa-update-apt-status` command on all problem
|
|
|
hosts:
|
|
|
|
|
|
cumin "$(ssh hetzner-hel1-01.torproject.org "icli -z'"'!o,!A,!S,!D'"'" | grep ^[a-z] | sed 's/$/.torproject.org or/') false" dsa-update-apt-status
|
|
|
|
|
|
It's kind of an awful hack -- take some time to appreciate the quoting
|
|
|
required for those `!` -- which might not be necessary with later
|
|
|
Icinga releases. Icinga 2 has a [REST API](https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/) and its own [command
|
|
|
line console](https://icinga.com/docs/icinga-2/latest/doc/11-cli-commands/#cli-command-console) which makes `icli` completely obsolete.
|
|
|
|
|
|
# Reference
|
|
|
|
|
|
## Design
|
... | ... | |