This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| gem804:gemnagios [2008/09/26 07:39] – Bernard Condrau | gem804:gemnagios [2026/10/16 22:03] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Install Nagios ====== | ||
| - | ===== Upgrade to Nagios 2.11 (Ubuntu Hardy Heron 8.04, from Edgy 6.10) ===== | ||
| - | |||
| - | Names of the config files have changed, but content remains mainly the same. The config files reside at | ||
| - | / | ||
| - | |||
| - | There are new service definitions for ssh access with ports different from the default port 21: | ||
| - | check_ssh_port!< | ||
| - | |||
| - | The cgi directory has changed in the apt-get install, if you want to use the nagios checker plugin in firefox, use http:// | ||
| - | |||
| - | You might need to chown ownership of the existing backuppc directory if you did a clean install, as the user / group id's might not match the previous installation. | ||
| - | |||
| - | Also note that due to Gnome' | ||
| - | |||
| - | ===== New install ===== | ||
| - | |||
| - | Follow the instructions of this link: https:// | ||
| - | Add a symlink to access the stylesheets: | ||
| - | ln -s / | ||
| - | |||
| - | ===== Administrator ===== | ||
| - | |||
| - | htpasswd -c / | ||
| - | |||
| - | ==== Config file ==== | ||
| - | |||
| - | Add < | ||
| - | |||
| - | ==== Create user ==== | ||
| - | |||
| - | Following command creates the file htpasswd.users in / | ||
| - | htpasswd bco / | ||
| - | |||
| - | ==== Check nagios.cfg ==== | ||
| - | |||
| - | / | ||
| - | |||
| - | ===== Enable external commands ===== | ||
| - | |||
| - | This is necessary to send commands to nagios through the web browser. You need to make the following changes to allow this: | ||
| - | |||
| - | ==== Config file ==== | ||
| - | |||
| - | |||
| - | ==== File permissions ==== | ||
| - | |||
| - | If you did not change the users of the default install, then nagios runs as user " | ||
| - | |||
| - | chgrp www-data / | ||
| - | chmod g+rwx / | ||
| - | chmod g+s / | ||
| - | |||
| - | Then, restart apache and nagios: | ||
| - | / | ||
| - | / | ||