... | ... | @@ -134,26 +134,19 @@ The Nagios/Icinga configuration gets generated from the |
|
|
`config/nagios-master.cfg` YAML configuration file stored in the
|
|
|
`admin/tor-nagios.git` repository. The generation works like this:
|
|
|
|
|
|
1. the [git server](git) has a post-receive hook (in
|
|
|
`/srv/git.torproject.org/git-helpers/post-receive-per-repo.d/admin%tor-nagios/trigger-nagios-build`)
|
|
|
|
|
|
2. ... which launches a "trigger" on the Nagios server, like so:
|
|
|
|
|
|
ssh -i ~/.ssh/gitweb -l nagiosadm hetzner-hel1-01 -- -trigger-
|
|
|
|
|
|
3. that SSH key, deployed from Puppet (so in
|
|
|
`/etc/ssh/puppetkeys/nagiosadm`), calls the
|
|
|
`/home/nagiosadm/bin/from-git-rw` which then...
|
|
|
|
|
|
4. creates or updates (`git clone` or `git pull`) the git repository
|
|
|
in `~/tor-nagios/config`...
|
|
|
1. operator pushes changes to the git repository on the Nagios server
|
|
|
(in `/home/nagiosadm/tor-nagios`)
|
|
|
|
|
|
5. then calls `make` in the directory, which calls `./build-nagios`
|
|
|
to generate the files in `~/tor-nagios/config/generated/`
|
|
|
|
|
|
7. then calls `make install` in the `config` directory, which deploys
|
|
|
the config file (using `rsync`) in `/etc/inciga/from-git` and also
|
|
|
pushes the NRPE config to the [Puppet server](puppet) in
|
|
|
2. the `post-receive` hook calls `make` in the `config` sub-directory,
|
|
|
which calls `./build-nagios` to generate the files in
|
|
|
`~/tor-nagios/config/generated/`
|
|
|
|
|
|
3. the hook then calls `make install`, which:
|
|
|
|
|
|
4. deploys the config file (using `rsync`) in
|
|
|
`/etc/inciga/from-git`...
|
|
|
|
|
|
5. pushes the NRPE config to the [Puppet server](puppet) in
|
|
|
`nagiospush@pauli.torproject.org:/etc/puppet/modules/nagios/files/tor-nagios/generated/nrpe_tor.cfg`
|
|
|
|
|
|
8. then finally reloads incinga |
|
|
6. and finally reloads Incinga |