Closed joschi99 closed 9 years ago
Upgrade procedure from version 1.7.10 to version 1.8.5
./install.sh
+------------------------------------------------------------------------------+
| Welcome to NagVis Installer 1.8.5 |
+------------------------------------------------------------------------------+
| This script is built to facilitate the NagVis installation and update |
| procedure for you. The installer has been tested on the following systems: |
| - Debian, since Etch (4.0) |
| - Ubuntu, since Hardy (8.04) |
| - SuSE Linux Enterprise Server 10 and 11 |
| |
| Similar distributions to the ones mentioned above should work as well. |
| That (hopefully) includes RedHat, Fedora, CentOS, OpenSuSE |
| |
| If you experience any problems using these or other distributions, please |
| report that to the NagVis team. |
+------------------------------------------------------------------------------+
| Do you want to proceed? [y]: y
+------------------------------------------------------------------------------+
| Starting installation of NagVis 1.8.5 |
+------------------------------------------------------------------------------+
| OS : ################################################### |
| |
+--- Checking for tools -------------------------------------------------------+
| Using packet manager /bin/rpm found |
| |
+--- Checking paths -----------------------------------------------------------+
| Please enter the path to the nagios base directory [/usr/local/nagios]: /usr/share/centreon-engine/
| nagios path /usr/share/centreon-engine/ found |
| Please enter the path to NagVis base [/usr/local/nagvis]:
| |
+--- Checking prerequisites ---------------------------------------------------+
| PHP 5.3 found |
| PHP Module: gd php found |
| PHP Module: mbstring php found |
| PHP Module: gettext compiled_in found |
| PHP Module: session compiled_in found |
| PHP Module: xml php found |
| PHP Module: pdo php found |
| Apache mod_php found |
| Do you want to update the backend configuration? [n]: n
| Graphviz 2.26 found |
| Graphviz Module dot 2.26.0 found |
| Graphviz Module neato 2.26.0 found |
| Graphviz Module twopi 2.26.0 found |
| Graphviz Module circo 2.26.0 found |
| Graphviz Module fdp 2.26.0 found |
| SQLite 3.6 found |
| |
+--- Trying to detect Apache settings -----------------------------------------+
| Please enter the web path to NagVis [/nagvis]:
| Please enter the name of the web-server user [apache]:
| Please enter the name of the web-server group [apache]:
| create Apache config file [y]: y
| |
+--- Checking for existing NagVis ---------------------------------------------+
| NagVis 1.7.10 found |
| Do you want the installer to update your config files when possible? [y]:
| Remove backup directory after successful installation? [n]:
| |
+------------------------------------------------------------------------------+
| Summary |
+------------------------------------------------------------------------------+
| NagVis home will be: /usr/local/nagvis |
| Owner of NagVis files will be: apache |
| Group of NagVis files will be: apache |
| Path to Apache config dir is: /etc/httpd/conf.d |
| Apache config will be created: yes |
| |
| Installation mode: update |
| Old version: 1.7.10 |
| New version: 1.8.5 |
| Backup directory: /usr/local/nagvis.old-2015-10-12_22:06:54 |
| |
| Note: The current NagVis directory will be moved to the backup directory. |
| The backup directory will be NOT removed after successful installation |
| Your configuration files will be copied. |
| The configuration files will be updated if possible. |
| |
| Do you really want to continue? [y]: y
+------------------------------------------------------------------------------+
| Starting installation |
+------------------------------------------------------------------------------+
| Moving old NagVis to /usr/local/nagvis.old-2015-10-12_22:06:54.. done |
| Creating directory /usr/local/nagvis... done |
| Creating directory /usr/local/nagvis/var... done |
| Creating directory /usr/local/nagvis/var/tmpl/cache... done |
| Creating directory /usr/local/nagvis/var/tmpl/compile... done |
| Creating directory /usr/local/nagvis/share/var... done |
| Copying files to /usr/local/nagvis... done |
| Creating directory /usr/local/nagvis/etc/profiles... done |
| Creating main configuration file... done |
| Adding webserver group to file_group... done |
| *** /etc/httpd/conf.d/nagvis.conf will NOT be overwritten ! |
| *** creating /etc/httpd/conf.d/nagvis.conf.2015-10-12_22:06:54 instead (comm |
| Creating web configuration file... done |
| Setting permissions for web configuration file... done |
| |
| Restoring main configuration file(s)... done |
| Restoring custom map configuration files... done |
| Restoring custom geomap source files... done |
| Restoring user configuration files... done |
| Restoring conf.d/ configuration files... done |
| Restoring custom map images... done |
| Restoring custom gadget images... done |
| Restoring custom iconsets... done |
| Restoring custom shapes... done |
| Restoring custom templates... done |
| Restoring custom template images... done |
| Restoring custom gadgets... done |
| Restoring custom scripts... done |
| Restoring auth database file... done |
| Restoring custom stylesheets... done |
| |
+------------------------------------------------------------------------------+
| Handling changed/removed options |
+------------------------------------------------------------------------------+
| Removing allowedforconfig option from main config... done |
| Removing autoupdatefreq option from main config... done |
| Removing htmlwuijs option from main config... done |
| Removing wuijs option from main config... done |
| Removing showautomaps option from main config... done |
| Removing usegdlibs option from main config... done |
| Removing displayheader option from main config... done |
| Removing hovertimeout option from main config... done |
| Removing allowed_for_config option from map configs... done |
| Removing allowed_user from map configs... done |
| Removing hover_timeout from map configs... done |
| Removing usegdlibs from map configs... done |
+------------------------------------------------------------------------------+
| HINT: Please check the changelog or the documentation for changes which |
| affect your configuration files |
| |
+--- Setting permissions... ---------------------------------------------------+
| /usr/local/nagvis/etc/nagvis.ini.php-sample done |
| /usr/local/nagvis/etc done |
| /usr/local/nagvis/etc/maps done |
| /usr/local/nagvis/etc/maps/* done |
| /usr/local/nagvis/etc/geomap done |
| /usr/local/nagvis/etc/geomap/* done |
| /usr/local/nagvis/etc/profiles done |
| /usr/local/nagvis/etc/profiles/* done |
| /usr/local/nagvis/share/userfiles/images/maps done |
| /usr/local/nagvis/share/userfiles/images/maps/* done |
| /usr/local/nagvis/share/userfiles/images/shapes done |
| /usr/local/nagvis/share/userfiles/images/shapes/* done |
| /usr/local/nagvis/var done |
| /usr/local/nagvis/var/* done |
| /usr/local/nagvis/var/tmpl done |
| /usr/local/nagvis/var/tmpl/cache done |
| /usr/local/nagvis/var/tmpl/compile done |
| /usr/local/nagvis/share/var done |
| |
+------------------------------------------------------------------------------+
| Installation complete |
| |
| You can safely remove this source directory. |
| |
| For later update/upgrade you may use this command to have a faster update: |
| ./install.sh -n /usr/share/centreon-engine -p /usr/local/nagvis -u apache -g apache -w /etc/httpd/conf.d -a y
| |
| What to do next? |
| - Read the documentation |
| - Maybe you want to edit the main configuration file? |
| Its location is: /usr/local/nagvis/etc/nagvis.ini.php |
| - Configure NagVis via browser |
| <http://localhost/nagvis/config.php> |
| - Initial admin credentials: |
| Username: admin |
| Password: admin |
+------------------------------------------------------------------------------+
Delete demo maps
/usr/local/nagvis/etc/maps
rm -rf demo*
edit global.php -> define('SESSION_NAME', 'PHPSESSID');
Upgrade NagVis 1.7.10 to 1.8.x with centreon-nagvis-module support