How to update FAN (Fully Automated Nagios) 1.1 to 2.0

Update YUM

Make you sure, FAN 1.1 is updated and all packages CentOS 5.4. Is not, run

# yum update

Download update script FAN 2.0

A migration script is available, download it and run :

# wget 'https://fannagioscd.svn.sourceforge.net/svnroot/fannagioscd/tag/fannagioscd-2.0/extensions/update_fan_1.1_to_2.0.sh'
# chmod +x update_fan_1.1_to_2.0.sh
# ./update_fan_1.1_to_2.0.sh 

If you want to get a trace, run

# ./update_fan_1.1_to_2.0.sh | tee update.log

Some questions will ask you, reply first by YES. You must carefully follow all questions. To step 16 : You must to connect to centreon web and run export configuration. Don't restart Nagios. Reply 'y' if you want to continue

To step 19, if you want to rebuild the Reporting in Centreon, run :

su - nagios -c "/usr/bin/perl /usr/share/centreon/cron/archiveDayLog -r"

Example

Please note: Before starting migrating from FAN 1 to FAN 2, make sure that your
system has been updated. Run the "yum update" and reboot if necessary.
Make sure to backup all your data before continuing in case the migration FAILED.
Disclaimer: By executing this script, the user declares to have carefully read all
the information mentioned above, and agrees to the Terms of Use. In no event shall
the author of this Sofware Program be liable for any damages whatsoever, including
damages for loss of data, arising out of the migration from FAN 1 to FAN 2.

Are you aware of the risks and do you wish to continue ?  [YES/no], default to [no]:YES

STEP 1 : Stopping ods
[Info] Stopping ods OK

STEP 2 : Stopping nagios
[Info] Stopping nagios OK

STEP 3 : Stopping ndo2db
[Info] Stopping ndo2db OK

STEP 4 : Removing centreon 1.4.2.X in FAN1
Do you want to remove centreon 1.4.2.X ? [y/n], default to [y]:
[Info] Removing centreon 1.4.2.X : OK

STEP 5 : Removing pear packages in FAN1
Do you want to remove pear packages ? [y/n], default to [y]:
[Info] Removing pear packages : OK

STEP 6 : Update yum repository for FAN2
Do you want to update repository for FAN2 ? [y/n], default to [y]:
Récupération de http://cedrictemple.net/FAN/repository/fan2prod/fan-repo-2.0-fan.1.noarch.rpm
Préparation...              ##################################################
fan-repo                    ##################################################

STEP 7 : Update nagios centreon nareto nagios-ndoutils packages
Do you want to update nagios centreon centreon-database nareto nagios-ndoutils ? [y/n], default to [y]:
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror
Determining fastest mirrors
 * addons: mirror.ate.info
 * base: mirror.ate.info
 * extras: mirror.ate.info
 * updates: mirror.ate.info
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package centreon.noarch 0:2.0.2-fan.15 set to be updated
--> Processing Dependency: centreon-plugins for package: centreon
--> Processing Dependency: pear-centreon for package: centreon
---> Package centreon-database.noarch 0:2.0.2-fan.15 set to be updated
---> Package nagios.i386 0:3.0.6-fan.2 set to be updated
---> Package php-pear.noarch 2:1.5.0-5 set to be updated
--> Running transaction check
---> Package centreon-plugins.noarch 0:2.0.2-fan.15 set to be updated
---> Package pear-centreon.noarch 0:0.1-fan.14 set to be updated
--> Processing Dependency: pear-Log for package: pear-centreon
--> Processing Dependency: pear-Net_Ping for package: pear-centreon
--> Processing Dependency: pear-HTML_QuickForm for package: pear-centreon
--> Processing Dependency: pear-Date for package: pear-centreon
--> Processing Dependency: pear-Validate for package: pear-centreon
--> Processing Dependency: pear-Auth_SASL for package: pear-centreon
--> Processing Dependency: pear-Net_Traceroute for package: pear-centreon
--> Processing Dependency: pear-DB_DataObject for package: pear-centreon
--> Processing Dependency: pear-HTML_Table for package: pear-centreon
--> Processing Dependency: pear-SOAP for package: pear-centreon
--> Processing Dependency: pear-HTML_QuickForm_advmultiselect for package: pear-centreon
--> Processing Dependency: pear-XML_RPC for package: pear-centreon
--> Processing Dependency: pear-DB_DataObject_FormBuilder for package: pear-centreon
--> Processing Dependency: pear-Net_SMTP for package: pear-centreon
--> Processing Dependency: pear-Net_Socket for package: pear-centreon
--> Processing Dependency: pear-MDB2 for package: pear-centreon
--> Processing Dependency: pear-Image_GraphViz for package: pear-centreon
--> Processing Dependency: pear-HTML_Common for package: pear-centreon
--> Processing Dependency: pear-HTTP for package: pear-centreon
--> Running transaction check
---> Package pear-Auth_SASL.noarch 0:1.0.2-2 set to be updated
---> Package pear-DB_DataObject.noarch 0:1.8.8-2 set to be updated
--> Processing Dependency: pear-DB >= 1.7.0 for package: pear-DB_DataObject
---> Package pear-DB_DataObject_FormBuilder.noarch 0:1.0.0RC7-2 set to be updated
---> Package pear-Date.noarch 0:1.4.7-2 set to be updated
---> Package pear-HTML_Common.noarch 0:1.2.4-3 set to be updated
---> Package pear-HTML_QuickForm.noarch 0:3.2.10-2 set to be updated
---> Package pear-HTML_QuickForm_advmultiselect.noarch 0:1.4.1-2 set to be updated
---> Package pear-HTML_Table.noarch 0:1.8.2-2 set to be updated
---> Package pear-HTTP.noarch 0:1.4.0-2 set to be updated
---> Package pear-Image_GraphViz.noarch 0:1.2.1-2 set to be updated
---> Package pear-Log.noarch 0:1.9.11-2 set to be updated
---> Package pear-MDB2.noarch 0:2.4.1-2 set to be updated
---> Package pear-Net_Ping.noarch 0:2.4.3-3 set to be updated
---> Package pear-Net_SMTP.noarch 0:1.3.0-2 set to be updated
---> Package pear-Net_Socket.noarch 0:1.0.8-3 set to be updated
---> Package pear-Net_Traceroute.noarch 0:0.21.1-2 set to be updated
---> Package pear-SOAP.noarch 0:0.11.0-2 set to be updated
--> Processing Dependency: pear-HTTP_Request for package: pear-SOAP
---> Package pear-Validate.noarch 0:0.8.1-3 set to be updated
---> Package pear-XML_RPC.noarch 0:1.4.5-2 set to be updated
--> Running transaction check
---> Package pear-DB.noarch 0:1.7.13-2 set to be updated
---> Package pear-HTTP_Request.noarch 0:1.4.2-2 set to be updated
--> Processing Dependency: pear-Net_URL >= 1.0.12 for package: pear-HTTP_Request
--> Running transaction check
---> Package pear-Net_URL.noarch 0:1.0.15-3 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                               Arch      Version           Repository
                                                                           Size
================================================================================
Installing:
 centreon                              noarch    2.0.2-fan.15      FAN    5.9 M
 centreon-database                     noarch    2.0.2-fan.15      FAN     45 k
 php-pear                              noarch    2:1.5.0-5         FAN    385 k
Updating:
 nagios                                i386      3.0.6-fan.2       FAN    3.8 M
Installing for dependencies:
 centreon-plugins                      noarch    2.0.2-fan.15      FAN     73 k
 pear-Auth_SASL                        noarch    1.0.2-2           FAN    9.1 k
 pear-DB                               noarch    1.7.13-2          FAN    143 k
 pear-DB_DataObject                    noarch    1.8.8-2           FAN     69 k
 pear-DB_DataObject_FormBuilder        noarch    1.0.0RC7-2        FAN     78 k
 pear-Date                             noarch    1.4.7-2           FAN     61 k
 pear-HTML_Common                      noarch    1.2.4-3           FAN    7.3 k
 pear-HTML_QuickForm                   noarch    3.2.10-2          FAN    115 k
 pear-HTML_QuickForm_advmultiselect    noarch    1.4.1-2           FAN    391 k
 pear-HTML_Table                       noarch    1.8.2-2           FAN     24 k
 pear-HTTP                             noarch    1.4.0-2           FAN    7.1 k
 pear-HTTP_Request                     noarch    1.4.2-2           FAN     21 k
 pear-Image_GraphViz                   noarch    1.2.1-2           FAN    7.7 k
 pear-Log                              noarch    1.9.11-2          FAN     47 k
 pear-MDB2                             noarch    2.4.1-2           FAN    134 k
 pear-Net_Ping                         noarch    2.4.3-3           FAN     13 k
 pear-Net_SMTP                         noarch    1.3.0-2           FAN     14 k
 pear-Net_Socket                       noarch    1.0.8-3           FAN    8.2 k
 pear-Net_Traceroute                   noarch    0.21.1-2          FAN    8.4 k
 pear-Net_URL                          noarch    1.0.15-3          FAN    9.2 k
 pear-SOAP                             noarch    0.11.0-2          FAN     78 k
 pear-Validate                         noarch    0.8.1-3           FAN     24 k
 pear-XML_RPC                          noarch    1.4.5-2           FAN     30 k
 pear-centreon                         noarch    0.1-fan.14        FAN    4.2 k

Transaction Summary
================================================================================
Install     27 Package(s)         
Update       1 Package(s)         
Remove       0 Package(s)         

Total download size: 11 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           786 kB/s |  11 MB     00:14     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : nagios                                                  1/29 
warning: /etc/nagios/cgi.cfg created as /etc/nagios/cgi.cfg.rpmnew
warning: /etc/nagios/nagios.cfg created as /etc/nagios/nagios.cfg.rpmnew
warning: /etc/rc.d/init.d/nagios saved as /etc/rc.d/init.d/nagios.rpmsave
  Installing     : php-pear                                                2/29install ok: channel://pear.php.net/PEAR-1.5.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
To install use "pear install pear/PEAR#featurename"
install ok: channel://pear.php.net/PEAR-1.5.0
install ok: channel://pear.php.net/PEAR-1.5.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
To install use "pear install pear/PEAR#featurename"
install ok: channel://pear.php.net/PEAR-1.5.0
 
  Installing     : pear-HTML_Common                                        3/29install ok: channel://pear.php.net/HTML_Common-1.2.4
 
  Installing     : pear-HTML_QuickForm                                     4/29install ok: channel://pear.php.net/HTML_QuickForm-3.2.10
 
  Installing     : pear-Net_Socket                                         5/29install ok: channel://pear.php.net/Net_Socket-1.0.8
 
  Installing     : pear-Date                                               6/29install ok: channel://pear.php.net/Date-1.4.7
 
  Installing     : pear-Net_SMTP                                           7/29install ok: channel://pear.php.net/Net_SMTP-1.3.0
 
  Installing     : pear-HTML_QuickForm_advmultiselect                      8/29install ok: channel://pear.php.net/HTML_QuickForm_advmultiselect-1.4.1
 
  Installing     : pear-HTML_Table                                         9/29install ok: channel://pear.php.net/HTML_Table-1.8.2
 
  Installing     : pear-Log                                               10/29install ok: channel://pear.php.net/Log-1.9.11
 
  Installing     : pear-Net_Ping                                          11/29install ok: channel://pear.php.net/Net_Ping-2.4.3
 
  Installing     : pear-Auth_SASL                                         12/29install ok: channel://pear.php.net/Auth_SASL-1.0.2
 
  Installing     : pear-MDB2                                              13/29install ok: channel://pear.php.net/MDB2-2.4.1
MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2)
MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2)
MDB2: Optional feature mysql available (MySQL driver for MDB2)
MDB2: Optional feature mysqli available (MySQLi driver for MDB2)
MDB2: Optional feature mssql available (MS SQL Server driver for MDB2)
MDB2: Optional feature oci8 available (Oracle driver for MDB2)
MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2)
MDB2: Optional feature querysim available (Querysim driver for MDB2)
MDB2: Optional feature sqlite available (SQLite2 driver for MDB2)
To install use "pear install pear/MDB2#featurename"
 
  Installing     : pear-Net_Traceroute                                    14/29install ok: channel://pear.php.net/Net_Traceroute-0.21.1
 
  Installing     : pear-Image_GraphViz                                    15/29install ok: channel://pear.php.net/Image_GraphViz-1.2.1
 
  Installing     : pear-DB                                                16/29install ok: channel://pear.php.net/DB-1.7.13
 
  Installing     : pear-DB_DataObject                                     17/29install ok: channel://pear.php.net/DB_DataObject-1.8.8
 
  Installing     : pear-DB_DataObject_FormBuilder                         18/29install ok: channel://pear.php.net/DB_DataObject_FormBuilder-1.0.0RC7
 
  Installing     : pear-XML_RPC                                           19/29install ok: channel://pear.php.net/XML_RPC-1.4.5
 
  Installing     : pear-Validate                                          20/29install ok: channel://pear.php.net/Validate-0.8.1
 
  Installing     : pear-Net_URL                                           21/29install ok: channel://pear.php.net/Net_URL-1.0.15
 
  Installing     : pear-HTTP_Request                                      22/29install ok: channel://pear.php.net/HTTP_Request-1.4.2
 
  Installing     : pear-SOAP                                              23/29install ok: channel://pear.php.net/SOAP-0.11.0
 
  Installing     : pear-HTTP                                              24/29install ok: channel://pear.php.net/HTTP-1.4.0
 
  Installing     : pear-centreon                                          25/29install ok: channel://pear.php.net/PEAR-1.5.0
install ok: channel://pear.php.net/Auth_SASL-1.0.2
install ok: channel://pear.php.net/PEAR-1.5.0
install ok: channel://pear.php.net/Date-1.4.7
install ok: channel://pear.php.net/DB_DataObject_FormBuilder-1.0.0RC7
install ok: channel://pear.php.net/DB_DataObject-1.8.8
install ok: channel://pear.php.net/DB-1.7.13
install ok: channel://pear.php.net/HTML_Common-1.2.4
install ok: channel://pear.php.net/HTML_QuickForm_advmultiselect-1.4.1
install ok: channel://pear.php.net/HTML_QuickForm-3.2.10
install ok: channel://pear.php.net/HTML_Table-1.8.2
install ok: channel://pear.php.net/HTTP-1.4.0
install ok: channel://pear.php.net/Image_GraphViz-1.2.1
install ok: channel://pear.php.net/Log-1.9.11
install ok: channel://pear.php.net/MDB2-2.4.1
MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2)
MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2)
MDB2: Optional feature mysql available (MySQL driver for MDB2)
MDB2: Optional feature mysqli available (MySQLi driver for MDB2)
MDB2: Optional feature mssql available (MS SQL Server driver for MDB2)
MDB2: Optional feature oci8 available (Oracle driver for MDB2)
MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2)
MDB2: Optional feature querysim available (Querysim driver for MDB2)
MDB2: Optional feature sqlite available (SQLite2 driver for MDB2)
To install use "pear install pear/MDB2#featurename"
install ok: channel://pear.php.net/Net_Ping-2.4.3
install ok: channel://pear.php.net/Net_SMTP-1.3.0
install ok: channel://pear.php.net/Net_Socket-1.0.8
install ok: channel://pear.php.net/Net_Traceroute-0.21.1
install ok: channel://pear.php.net/PEAR-1.5.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
To install use "pear install pear/PEAR#featurename"
install ok: channel://pear.php.net/SOAP-0.11.0
install ok: channel://pear.php.net/PEAR-1.5.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
To install use "pear install pear/PEAR#featurename"
install ok: channel://pear.php.net/Validate-0.8.1
install ok: channel://pear.php.net/XML_RPC-1.4.5
 
  Installing     : centreon-plugins                                       26/29Arrêt de snmpd :[  OK  ]
Démarrage de snmpd :[  OK  ]
 
  Installing     : centreon                                               27/29 
  Installing     : centreon-database                                      28/29 
  Cleanup        : nagios                                                 29/29 

Installed:
  centreon.noarch 0:2.0.2-fan.15     centreon-database.noarch 0:2.0.2-fan.15    
  php-pear.noarch 2:1.5.0-5         

Dependency Installed:
  centreon-plugins.noarch 0:2.0.2-fan.15                                        
  pear-Auth_SASL.noarch 0:1.0.2-2                                               
  pear-DB.noarch 0:1.7.13-2                                                     
  pear-DB_DataObject.noarch 0:1.8.8-2                                           
  pear-DB_DataObject_FormBuilder.noarch 0:1.0.0RC7-2                            
  pear-Date.noarch 0:1.4.7-2                                                    
  pear-HTML_Common.noarch 0:1.2.4-3                                             
  pear-HTML_QuickForm.noarch 0:3.2.10-2                                         
  pear-HTML_QuickForm_advmultiselect.noarch 0:1.4.1-2                           
  pear-HTML_Table.noarch 0:1.8.2-2                                              
  pear-HTTP.noarch 0:1.4.0-2                                                    
  pear-HTTP_Request.noarch 0:1.4.2-2                                            
  pear-Image_GraphViz.noarch 0:1.2.1-2                                          
  pear-Log.noarch 0:1.9.11-2                                                    
  pear-MDB2.noarch 0:2.4.1-2                                                    
  pear-Net_Ping.noarch 0:2.4.3-3                                                
  pear-Net_SMTP.noarch 0:1.3.0-2                                                
  pear-Net_Socket.noarch 0:1.0.8-3                                              
  pear-Net_Traceroute.noarch 0:0.21.1-2                                         
  pear-Net_URL.noarch 0:1.0.15-3                                                
  pear-SOAP.noarch 0:0.11.0-2                                                   
  pear-Validate.noarch 0:0.8.1-3                                                
  pear-XML_RPC.noarch 0:1.4.5-2                                                 
  pear-centreon.noarch 0:0.1-fan.14                                             

Updated:
  nagios.i386 0:3.0.6-fan.2                                                     

Complete!
Récupération de http://cedrictemple.net/FAN/repository/fan2prod/nagios-ndoutils-database-1.4-fan.21.i386.rpm
Préparation...              ##################################################
nagios-ndoutils-database    ##################################################
Current database version: 1.4b7
** DB upgrade required for 1.4b8
     Using mysql-upgrade-1.4b7.sql for upgrade...
** Upgrade to 1.4b8 complete
Récupération de http://cedrictemple.net/FAN/repository/fan2prod/nareto-database-1.1.6-fan.20.i386.rpm
Préparation...              ##################################################
nareto-database             ##################################################
Récupération de http://cedrictemple.net/FAN/repository/fan2prod/nareto-cron-1.1.6-fan.20.i386.rpm
Préparation...              attention: /etc/cron.d/nareto sauvé en tant que /etc/cron.d/nareto.rpmorig
##################################################
nareto-cron                 ##################################################

STEP 8 : Stopping nagios
[Info] nagios is not running...

STEP 9 : Stopping ndo2db
[Info] ndo2db is not running...

STEP 10 : Stopping centcore
[Info] Stopping centcore OK

STEP 11 : Stopping centstorage
[Info] Stopping centstorage OK

STEP 12 : Update all packages FAN2
Do you want to update all packages ? [y/n], default to [y]:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.ate.info
 * base: mirror.ate.info
 * extras: mirror.ate.info
 * updates: mirror.ate.info
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package bind-libs.i386 30:9.3.6-4.P1.el5_4.1 set to be updated
---> Package bind-utils.i386 30:9.3.6-4.P1.el5_4.1 set to be updated
---> Package dbus-python.i386 0:0.70-9.el5_4 set to be updated
---> Package device-mapper-multipath.i386 0:0.4.7-30.el5_4.4 set to be updated
---> Package dokuwiki.noarch 0:20090214-fan.1 set to be updated
---> Package expat.i386 0:1.95.8-8.3.el5_4.2 set to be updated
---> Package fan-html.noarch 0:0.7-fan.1 set to be updated
---> Package fan-repo.noarch 0:2.0-fan.2 set to be updated
--> Processing Dependency: yum-priorities for package: fan-repo
---> Package fan-sendmailcolor.noarch 0:1.1-fan.1 set to be updated
---> Package fping.i386 0:2.4-1.b2.2_fan.2 set to be updated
---> Package glibc.i686 0:2.5-42.el5_4.2 set to be updated
---> Package glibc-common.i386 0:2.5-42.el5_4.2 set to be updated
---> Package httpd.i386 0:2.2.3-31.el5.centos.2 set to be updated
---> Package kernel.i686 0:2.6.18-164.9.1.el5 set to be installed
---> Package kpartx.i386 0:0.4.7-30.el5_4.4 set to be updated
---> Package libtool-ltdl.i386 0:1.5.22-7.el5_4 set to be updated
---> Package nagios-ndoutils.i386 0:1.4-fan.21 set to be updated
---> Package nagios-plugins.i386 0:1.4.14-fan.7 set to be updated
--> Processing Dependency: samba-client for package: nagios-plugins
---> Package nagios-plugins-setuid.i386 0:1.4.14-fan.7 set to be updated
---> Package nagvis.i386 0:1.4.4-fan.1 set to be updated
---> Package nareto.i386 0:1.1.6-fan.20 set to be updated
---> Package nscd.i386 0:2.5-42.el5_4.2 set to be updated
---> Package ntp.i386 0:4.2.2p1-9.el5.centos.2.1 set to be updated
---> Package openssh.i386 0:4.3p2-36.el5_4.3 set to be updated
---> Package openssh-clients.i386 0:4.3p2-36.el5_4.3 set to be updated
---> Package openssh-server.i386 0:4.3p2-36.el5_4.3 set to be updated
---> Package perl-Config-IniFiles.noarch 0:2.39-1.2_fan.2 set to be updated
---> Package perl-Crypt-DES.i386 0:2.05-3.2_fan.2 set to be updated
---> Package syslog-ng.i386 0:2.0.9-9 set to be updated
--> Running transaction check
---> Package samba-client.i386 0:3.0.33-3.15.el5_4.1 set to be updated
--> Processing Dependency: samba-common = 3.0.33-3.15.el5_4.1 for package: samba-client
---> Package yum-priorities.noarch 0:1.1.16-13.el5.centos set to be updated
--> Running transaction check
---> Package samba-common.i386 0:3.0.33-3.15.el5_4.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch     Version                     Repository
                                                                           Size
================================================================================
Installing:
 kernel                    i686     2.6.18-164.9.1.el5          updates    16 M
Updating:
 bind-libs                 i386     30:9.3.6-4.P1.el5_4.1       updates   857 k
 bind-utils                i386     30:9.3.6-4.P1.el5_4.1       updates   170 k
 dbus-python               i386     0.70-9.el5_4                updates   160 k
 device-mapper-multipath   i386     0.4.7-30.el5_4.4            updates   2.8 M
 dokuwiki                  noarch   20090214-fan.1              FAN       2.0 M
 expat                     i386     1.95.8-8.3.el5_4.2          updates    77 k
 fan-html                  noarch   0.7-fan.1                   FAN       1.0 M
 fan-repo                  noarch   2.0-fan.2                   FAN       2.7 k
 fan-sendmailcolor         noarch   1.1-fan.1                   FAN       3.9 k
 fping                     i386     2.4-1.b2.2_fan.2            FAN        38 k
 glibc                     i686     2.5-42.el5_4.2              updates   5.2 M
 glibc-common              i386     2.5-42.el5_4.2              updates    16 M
 httpd                     i386     2.2.3-31.el5.centos.2       updates   1.2 M
 kpartx                    i386     0.4.7-30.el5_4.4            updates   406 k
 libtool-ltdl              i386     1.5.22-7.el5_4              updates    37 k
 nagios-ndoutils           i386     1.4-fan.21                  FAN       126 k
 nagios-plugins            i386     1.4.14-fan.7                FAN       1.0 M
 nagios-plugins-setuid     i386     1.4.14-fan.7                FAN        80 k
 nagvis                    i386     1.4.4-fan.1                 FAN       786 k
 nareto                    i386     1.1.6-fan.20                FAN       1.4 M
 nscd                      i386     2.5-42.el5_4.2              updates   163 k
 ntp                       i386     4.2.2p1-9.el5.centos.2.1    updates   1.3 M
 openssh                   i386     4.3p2-36.el5_4.3            updates   286 k
 openssh-clients           i386     4.3p2-36.el5_4.3            updates   447 k
 openssh-server            i386     4.3p2-36.el5_4.3            updates   268 k
 perl-Config-IniFiles      noarch   2.39-1.2_fan.2              FAN        47 k
 perl-Crypt-DES            i386     2.05-3.2_fan.2              FAN        37 k
 syslog-ng                 i386     2.0.9-9                     FAN       174 k
Installing for dependencies:
 samba-client              i386     3.0.33-3.15.el5_4.1         updates   5.7 M
 samba-common              i386     3.0.33-3.15.el5_4.1         updates   8.7 M
 yum-priorities            noarch   1.1.16-13.el5.centos        extras     14 k

Transaction Summary
================================================================================
Install      4 Package(s)         
Update      28 Package(s)         
Remove       0 Package(s)         

Total download size: 66 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           789 kB/s |  66 MB     01:26     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : perl-Config-IniFiles                                    1/60 
  Updating       : glibc-common                                            2/60 
  Installing     : yum-priorities                                          3/60 
  Updating       : fan-repo                                                4/60 
  Updating       : fan-sendmailcolor                                       5/60 
  Updating       : dokuwiki                                                6/60 
  Installing     : kernel                                                  7/60 
  Updating       : glibc                                                   8/60 
  Updating       : bind-libs                                               9/60 
  Updating       : expat                                                  10/60 
  Updating       : httpd                                                  11/60 
  Updating       : fping                                                  12/60 
  Updating       : openssh                                                13/60 
  Updating       : nagios-ndoutils                                        14/60 
warning: /etc/nagios/ndo2db.cfg created as /etc/nagios/ndo2db.cfg.rpmnew
  Updating       : kpartx                                                 15/60 
  Installing     : samba-common                                           16/60 
  Installing     : samba-client                                           17/60 
  Updating       : libtool-ltdl                                           18/60 
  Updating       : nagvis                                                 19/60 
warning: /etc/nagios/nagvis.ini.php saved as /etc/nagios/nagvis.ini.php.rpmsave
  Updating       : nagios-plugins                                         20/60 
  Updating       : nagios-plugins-setuid                                  21/60 
  Updating       : dbus-python                                            22/60 
  Updating       : openssh-clients                                        23/60 
  Updating       : ntp                                                    24/60 
  Updating       : nscd                                                   25/60 
  Updating       : fan-html                                               26/60 
  Updating       : openssh-server                                         27/60 
  Updating       : bind-utils                                             28/60 
  Updating       : nareto                                                 29/60 
  Updating       : device-mapper-multipath                                30/60 
  Updating       : perl-Crypt-DES                                         31/60 
  Updating       : syslog-ng                                              32/60 
  Cleanup        : bind-libs                                              33/60 
  Cleanup        : nagvis                                                 34/60 
  Cleanup        : kpartx                                                 35/60 
  Cleanup        : fping                                                  36/60 
  Cleanup        : glibc-common                                           37/60 
  Cleanup        : fan-repo                                               38/60 
  Cleanup        : glibc                                                  39/60 
  Cleanup        : nagios-plugins                                         40/60 
  Cleanup        : nagios-plugins-setuid                                  41/60 
  Cleanup        : expat                                                  42/60 
  Cleanup        : dbus-python                                            43/60 
  Cleanup        : openssh                                                44/60 
  Cleanup        : openssh-clients                                        45/60 
  Cleanup        : ntp                                                    46/60 
  Cleanup        : libtool-ltdl                                           47/60 
  Cleanup        : nscd                                                   48/60 
  Cleanup        : fan-html                                               49/60 
  Cleanup        : openssh-server                                         50/60 
  Cleanup        : dokuwiki                                               51/60 
  Cleanup        : bind-utils                                             52/60 
  Cleanup        : httpd                                                  53/60 
  Cleanup        : nareto                                                 54/60Rechargement de httpd :[  OK  ]
 
  Cleanup        : device-mapper-multipath                                55/60 
  Cleanup        : nagios-ndoutils                                        56/60 
  Cleanup        : perl-Config-IniFiles                                   57/60 
  Cleanup        : fan-sendmailcolor                                      58/60 
  Cleanup        : perl-Crypt-DES                                         59/60 
  Cleanup        : syslog-ng                                              60/60 

Installed:
  kernel.i686 0:2.6.18-164.9.1.el5                                              

Dependency Installed:
  samba-client.i386 0:3.0.33-3.15.el5_4.1                                       
  samba-common.i386 0:3.0.33-3.15.el5_4.1                                       
  yum-priorities.noarch 0:1.1.16-13.el5.centos                                  

Updated:
  bind-libs.i386 30:9.3.6-4.P1.el5_4.1                                          
  bind-utils.i386 30:9.3.6-4.P1.el5_4.1                                         
  dbus-python.i386 0:0.70-9.el5_4                                               
  device-mapper-multipath.i386 0:0.4.7-30.el5_4.4                               
  dokuwiki.noarch 0:20090214-fan.1                                              
  expat.i386 0:1.95.8-8.3.el5_4.2                                               
  fan-html.noarch 0:0.7-fan.1                                                   
  fan-repo.noarch 0:2.0-fan.2                                                   
  fan-sendmailcolor.noarch 0:1.1-fan.1                                          
  fping.i386 0:2.4-1.b2.2_fan.2                                                 
  glibc.i686 0:2.5-42.el5_4.2                                                   
  glibc-common.i386 0:2.5-42.el5_4.2                                            
  httpd.i386 0:2.2.3-31.el5.centos.2                                            
  kpartx.i386 0:0.4.7-30.el5_4.4                                                
  libtool-ltdl.i386 0:1.5.22-7.el5_4                                            
  nagios-ndoutils.i386 0:1.4-fan.21                                             
  nagios-plugins.i386 0:1.4.14-fan.7                                            
  nagios-plugins-setuid.i386 0:1.4.14-fan.7                                     
  nagvis.i386 0:1.4.4-fan.1                                                     
  nareto.i386 0:1.1.6-fan.20                                                    
  nscd.i386 0:2.5-42.el5_4.2                                                    
  ntp.i386 0:4.2.2p1-9.el5.centos.2.1                                           
  openssh.i386 0:4.3p2-36.el5_4.3                                               
  openssh-clients.i386 0:4.3p2-36.el5_4.3                                       
  openssh-server.i386 0:4.3p2-36.el5_4.3                                        
  perl-Config-IniFiles.noarch 0:2.39-1.2_fan.2                                  
  perl-Crypt-DES.i386 0:2.05-3.2_fan.2                                          
  syslog-ng.i386 0:2.0.9-9                                                      

Complete!
[Info] Updating all packages FAN OK
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: mirror.ate.info
 * base: mirror.ate.info
 * extras: mirror.ate.info
 * updates: mirror.ate.info
19 packages excluded due to repository priority protections
Setting up Install Process
Package nagios-ndoutils-database-1.4-fan.21.i386 already installed and latest version
Nothing to do
[Info] Updating all packages FAN - nagios-ndoutils-database OK

STEP 13 : Download migration script for Centreon
Do you want to download migration script for Centreon ? [y/n], default to [y]:
--2009-11-11 10:37:41--  http://fannagioscd.svn.sourceforge.net/svnroot/fannagioscd/tag/fannagioscd-2.0/extensions/update_centreon_1.4.2.7_to_2.0.2.pl
Résolution de fannagioscd.svn.sourceforge.net... 216.34.181.65
Connexion vers fannagioscd.svn.sourceforge.net|216.34.181.65|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 24159 (24K) [text/plain]
Saving to: `update_centreon_1.4.2.7_to_2.0.2.pl'

100%[==================================================================================================>] 24.159      43,1K/s   in 0,5s    

2009-11-11 10:37:42 (43,1 KB/s) - « update_centreon_1.4.2.7_to_2.0.2.pl » sauvegardé [24159/24159]

[Info] Download migration script OK

STEP 14 : Run migration script for Centreon
Do you want to run migration script for Centreon ? [y/n], default to [y]:
Dump 'timeperiod' OK
Dump 'command' OK
Dump 'host' OK
Dump 'service' OK
Dump 'hostgroup' OK
Dump 'hostgroup_relation' OK
Dump 'host_hostparent_relation' OK
Dump 'host_service_relation' OK
Dump 'contact' OK
Dump 'contactgroup' OK
Dump 'contactgroup_contact_relation' OK
Dump 'contactgroup_host_relation' OK
Dump 'contactgroup_service_relation' OK
Dump 'contact_hostcommands_relation' OK
Dump 'contact_servicecommands_relation' OK
Dump 'escalation' OK
Dump 'servicegroup' OK
Dump 'servicegroup_relation' OK
Dump 'meta_service_relation' OK
Dump 'dependency' OK
Dump 'meta_service' OK
Dump 'giv_graphs_template' OK
Dump 'dependency_serviceParent_relation' OK
Dump 'dependency_serviceChild_relation' OK
Dump 'dependency_hostChild_relation' OK
Dump 'dependency_hostParent_relation' OK
Dump 'escalation_service_relation' OK
Dump 'escalation_host_relation' OK
Dump 'dependency_metaserviceChild_relation' OK
Dump 'dependency_metaserviceParent_relation' OK
Dump 'escalation_meta_service_relation' OK
Dump 'meta_contactgroup_relation' OK
Dump 'meta_service_relation' OK
Dump 'dependency_hostgroupChild_relation' OK
Dump 'dependency_hostgroupParent_relation' OK
Dump 'dependency_servicegroupParent_relation' OK
Dump 'dependency_servicegroupChild_relation' OK
Dump 'escalation_hostgroup_relation' OK
Dump 'escalation_servicegroup_relation' OK
Dump 'escalation_contactgroup_relation' OK
Modified 'ns_host_relation' OK
Modified 'host_template_relation' OK
Added service_perfdata_command in NagiosCFG OK
Dump 'log_archive_host' OK
Dump 'log_archive_service' OK
Dump 'data_bin' OK
Dump 'log' OK
Dump 'metrics' OK
Dump 'statistics' OK

STEP 15 : Configure sudoers for Centreon
Do you want to configure sudoers for Centreon ? [y/n], default to [y]:
[Info] Configure sudoers OK

STEP 16 : Export nagios configuration
Connect you to centreon web http://localhost/centreon/ and run export configuration only. Don't restart Nagios
Have you export nagios config with Centreon ? [y/n], default to [n]:y

STEP 17 : Starting all services
Starting ndo2db:
Starting Centcore : centcore                               [  OK  ]
Starting centstorage Collector : centstorage
Try to start Nagios...
Starting nagios: done.

STEP 18 : Rebuild Views
Now, wait few minutes (5 and 15 min) while nagios launch all services.
Go to Administration -> CentStorage -> Manage
Select all data and do Rebuild RRD Database
So all rrd file will be generated in Views
To continu <ENTER> :

STEP 19 : Rebuild Reporting
Be careful, you may lose data on the reporting
If you want rebuild reporting, run : su - nagios -c "/usr/bin/perl /usr/share/centreon/cron/archiveDayLog -r"
Updating COMPLETED !!!!!!!!!!!!!!
supervision/update_fan_1.1_to_fan_2.0.txt · Dernière modification: 2017/07/07 14:42 (modification externe)
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0