Upgrade FAN 2.1 to FAN 2.2
Take a Backup
The next thing to do is to take a backup of your database. Because if you want go back, you’ll need to restore the database.
(FAN Standalone or Database)
# mysqldump centreon2 | gzip > centreon2-backup.sql.gz # mysqldump centreon2_storage | gzip > centreon2_storage-backup.sql.gz # mysqldump nagios | gzip > nagios-backup.sql.gz
Backup your nagvis maps (FAN Standalone or Central)
# tar czf nagvis-maps-backup.tar.gz /etc/nagvis
Backup Centreon config :
tar czf centreon-config.tar.gz /etc/centreon
Pre-requisites : update YUM
Make you sure, FAN 2.1 is updated and all packages CentOS. FAN repository is http://lkco.gezen.fr/FAN/repository/2.1/$basearch/
(FAN Standalone, Central or Database)
Is not case, modify the file /etc/yum.repos.d/FAN.repo :
[FAN] name=FAN2.1 baseurl=http://lkco.gezen.fr/FAN/repository/2.1/$basearch/ gpgkey=http://lkco.gezen.fr/FAN/repository/RPM-GPG-KEY-FAN-1 enabled=1 priority=5
Run :
# yum clean all # yum update
Upgrade FAN 2.2
Modify Yum repository
Modify the file /etc/yum.repos.d/FAN.repo (FAN Standalone, Central or Database) :
[FAN] name=FAN2.2 baseurl=http://lkco.gezen.fr/FAN/repository/2.2/$basearch/ gpgkey=http://lkco.gezen.fr/FAN/repository/RPM-GPG-KEY-FAN-1 enabled=1 priority=5
Create the file /etc/yum.repos.d/graphviz.repo :
[Graphviz] name=graphviz gpgcheck=1 baseurl=http://www.graphviz.org/pub/graphviz/stable/redhat/el5/$basearch/os/ enabled=0 gpgcheck=0
Clear yum cache :
# yum clean all # yum --enablerepo=Graphviz update
Update centreon 2.2.13 to centreon 2.2.2
Now, connect to interface Centreon and follow the steps to update the database.
(FAN Standalone or Central)
Go to http://FAN-SERVER/centreon/
Finally, reboot the server
# reboot












about 6 months ago
After running:
# yum clean all
# yum –enablerepo=Graphviz update
I see this:
http://www.graphviz.org/pub/graphviz/stable/redhat/e15/i386/os/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Graphviz. Please verify its path and try again
How can I resolve this problem?..
Thank you!
about 6 months ago
Hi,
you have a mistake in the url : it is “el5″ and not “e15″
about 5 months ago
Oh, sorry!… Thank you, lkco!
about 1 month ago
hi, thx for this guide. All steps worked fine for me but at the end of de procedure if i change the configuration of one host of any of my POLLER, centreon’s interface show me a red error : Poller not running.
Some one can help me ? (I need this update beacause i want to make the 2.3 upgrade)
thx.
#####################
Salut, merci pour ce guide. Toutes les étapes a bien fonctionné pour moi, mais à la fin de la procédure de si je change la configuration d’un hôte de n’importe lequel de mes POLLER, l’interface Centreon me montrer une erreur rouge: Poller ne fonctionne pas.
Quelqu’un peut m’aider? (J’ai besoin de cette mise à jour beacause je veux faire la mise à niveau 2.3)
thx.
about 1 month ago
Hi,
When you have the message “poller not running”, this means the ndomod2 on poller can not communicate with ndo2db. Or ndo2db can not communicate with mysql. Check you configuration on ndo2db.cfg and ndomod.cfg
about 1 month ago
Hi, thx for the reply.
Config file seems to be good for ndo2db.cfg and ndomod.cfg.
There no problem after the upgrade, i can reboot all pollers, they still online and the synchronisation is okay and uptodate.
The poller appear offine after I use the option “Move Export Files” in Centreon> Config > Nagios Configuration Files Export.
Please help.
about 1 month ago
hello all !!!
I just made this procedure, but i have a problem when i run nagvis:
“Attribute definition out of object. In map anaconda-ks at line #2.
how can help me ?
thanks in advance !!!