uncleblues
07-22-2008, 12:13 PM
Hi all,
Because of little documentation on this subject, I wrote the very short howto below based on code reading and some hard time to get it working.
Best,
Jan
Setting up remote pollers with Centreon2/Nagios3
------------------------------------------------
Remote pollers only seem to be supported from version Centreon 2 beta 5.
1. Install Nagios on remote poller (set it up similar to the principal poller)
2. Install NDOutils on remote poller
3. Set up public key authentication from principal to remoter poller for the nagios owner
4. Set up a new poller for the remote poller in Centreon
5. Set up the NDO module config for the remote poller in Centreon
6. Set up the nagios.cfg for the remote poller in Centreon
7. Connect existing or new hosts and services to the new poller in Centreon
8. Generate the config for the remote poller via Centreon
NDOutils do not give a lot information on why things just won't work so make sure NDOutils are compiled with mysql support - review the config.log carefully. If NDO2DB is working, you should see a mysql session for the configured user on the configured database.
The procedures to restart, reload, ... nagios as well as the transfer of configs to remote pollers are called via a command file (/var/lib/centreon/centcore.cmd). Make sure the both the Apache and Centcore owner can modify this command file.
After the hassle, it is worth it :)
Cheers,
Jan Verhaert
Because of little documentation on this subject, I wrote the very short howto below based on code reading and some hard time to get it working.
Best,
Jan
Setting up remote pollers with Centreon2/Nagios3
------------------------------------------------
Remote pollers only seem to be supported from version Centreon 2 beta 5.
1. Install Nagios on remote poller (set it up similar to the principal poller)
2. Install NDOutils on remote poller
3. Set up public key authentication from principal to remoter poller for the nagios owner
4. Set up a new poller for the remote poller in Centreon
5. Set up the NDO module config for the remote poller in Centreon
6. Set up the nagios.cfg for the remote poller in Centreon
7. Connect existing or new hosts and services to the new poller in Centreon
8. Generate the config for the remote poller via Centreon
NDOutils do not give a lot information on why things just won't work so make sure NDOutils are compiled with mysql support - review the config.log carefully. If NDO2DB is working, you should see a mysql session for the configured user on the configured database.
The procedures to restart, reload, ... nagios as well as the transfer of configs to remote pollers are called via a command file (/var/lib/centreon/centcore.cmd). Make sure the both the Apache and Centcore owner can modify this command file.
After the hassle, it is worth it :)
Cheers,
Jan Verhaert