Upgrade FAN 2.2 to FAN 2.3
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.2 is updated and all packages CentOS. FAN repository is http://lkco.gezen.fr/FAN/repository/2.2/$basearch/
(FAN Standalone, Central or Database)
Is not case, modify the file /etc/yum.repos.d/FAN.repo :
[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
Run :
# yum clean all # yum update
Check that you have installed the latest version of Centreon provided by FAN 2.2.
# rpm -qa | grep centreon- centreon-plugins-2.2.2-fan.2 centreon-trap-2.2.2-fan.2 centreon-www-2.2.2-fan.2 centreon-storage-2.2.2-fan.2 pear-centreon-0.1-fan.15 centreon-core-2.2.2-fan.2 centreon-database-2.2.2-fan.2
Upgrade FAN 2.3
FAN Standalone, Central or Database
Modify the file /etc/yum.repos.d/FAN.repo (FAN Standalone, Central or Database) :
[FAN] name=FAN2.3 baseurl=http://www.fullyautomatednagios.org/FAN/repository/2.3/$basearch/ gpgkey=http://www.fullyautomatednagios.org/FAN/repository/RPM-GPG-KEY-FAN-1 enabled=1 priority=5
Create the file /etc/yum.repos.d/graphviz.repo (FAN Standalone or Central) :
[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
On FAN Standalone or Central, run :
# yum remove rrdtool-php # yum --enablerepo=Graphviz update
On FAN Database, run
# yum update
FAN-poller
Modify the file /etc/yum.repos.d/FAN.repo
[FAN] name=FAN2.3 baseurl=http://www.fullyautomatednagios.org/FAN/repository/2.3/$basearch/ gpgkey=http://www.fullyautomatednagios.org/FAN/repository/RPM-GPG-KEY-FAN-1 enabled=1 priority=5
Clear yum cache :
# yum clean all # yum install centreon-trap # yum update
Update centreon 2.2.2 to centreon 2.3.3
Now, connect to interface Centreon and follow the steps to update the database.
(FAN Standalone or Central)
Go to http://FAN-SERVER/centreon/
Reconfigure rrdtool version :
In Centreon, go to Administration > Options > RRDTool set : “1.3″ to RRDTool Version
Finally, reboot the server
# reboot
Postupgrade Distributed mode
On FAN-central, you need to reconfigure fan-database, run :
# system-config-distributed-monitoring configdatabase-createuser
Second, you need to reconfigure all poller who are active
# system-config-distributed-monitoring poller-configtrap
Select a poller to need to reconfigure.
Troubleshooting
Nagios :
If you use check_centreon_snmp_remote_storage plugin maybe, you met this error :
ERROR: Received noSuchName(2) error-status at error-index 4.
Delete all files /tmp/remote_storage_cache_*
# rm /tmp/remote_storage_cache_*
Nagvis :
If you met this error :
Invalid JSON response: Not Found The requested URL /nagvis/frontend/nagvis-js/index.php&_t=1334583708000 was not found on this server.
Solution :
1. Clear the cache of your browser
2. Remove all files in /var/lib/nagvis/tmpl/cache and /var/lib/nagvis/tmpl/compile
about 6 years ago
Hello,
I have upgraded FAn with this help, but in nagvis i have this error :
Javascript error
Javascript error occured: sidebarOpen is not defined http://monitor.econcept-pro.fr/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=Interne (1)
- Stacktrace -
implementation(null)@http://monitor.econcept-pro.fr/nagvis/frontend/nagvis-js/js/ExtStacktrace.js:3
printStackTrace()@http://monitor.econcept-pro.fr/nagvis/frontend/nagvis-js/js/ExtStacktrace.js:3
handleJSError(“sidebarOpen is not defined”,”http://monitor.econcept-pro.fr/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=Interne”,1)@http://monitor.econcept-pro.fr/nagvis/frontend/nagvis-js/js/nagvis.js:808
about 6 years ago
Try to clear the cache of your navigator. When i click on the url, I dont see this bug
about 6 years ago
That’s ok, thank’s!!
about 6 years ago
Hello,
I don’t have the commande “system-config-distributed-monitoring”
and after the upgrade i can’t executed the command “system-config-network”
An idea ?
[root@localhost ~]# system-config-network
Une exception s’est produite. Il s’agit probablement d’un bogue. Veuillez enregistrer le crash dump et envoyez ensuite un rapport détaillé de bogues à system-config-network à l’adresse http://bugzilla.redhat.com/bugzilla
Component: system-config-network
Version: 1.3.99.21
Summary: TB /usr/lib/python2.4/site-packages/rhpl/genClass.py:217:_objToStr:UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 4: ordinal not in range(128)
Traceback (most recent call last):
File “/usr/sbin/system-config-network-tui”, line 230, in ?
loadConfig(screen)
File “/usr/sbin/system-config-network-tui”, line 136, in loadConfig
hardwarelist = getHardwareList()
File “/usr/share/system-config-network/netconfpkg/NCHardwareList.py”, line 510, in getHardwareList
__HWList.load()
File “/usr/share/system-config-network/netconfpkg/NCHardwareList.py”, line 363, in load
self.updateFromSystem()
File “/usr/share/system-config-network/netconfpkg/NCHardwareList.py”, line 269, in updateFromSystem
log.log(5, str(self))
File “/usr/lib/python2.4/site-packages/rhpl/genClass.py”, line 550, in __str__
return GenClass.__str__(self)
File “/usr/lib/python2.4/site-packages/rhpl/genClass.py”, line 179, in __str__
return self._objToStr(parentStr)
File “/usr/share/system-config-network/netconfpkg/NCHardwareList.py”, line 328, in _objToStr
retstr += dev._objToStr(“HardwareList.%s.%s” % (dev.Type,
File “/usr/lib/python2.4/site-packages/rhpl/genClass.py”, line 217, in _objToStr
retstr += “%s.%s=%s\n” % (parentStr, child, str(val))
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 4: ordinal not in range(128)
> /usr/lib/python2.4/site-packages/rhpl/genClass.py(217)_objToStr()
-> retstr += “%s.%s=%s\n” % (parentStr, child, str(val))
(Pdb)
…Thank’s
about 5 years ago
hi,
i found a solution for this problem. It’s a bug in Centos and not in FAN.
Modify the file /usr/share/system-config-network/netconf-tui.py (line 19)
After “import sys” add 2 lines :
reload(sys)
sys.setdefaultencoding('utf-8')
about 6 years ago
Hi,
system-config-distributed-monitoring is only used by a fan-central. By default, the rpm is installed. If this is not the case, run : yum install fan-config-distributed-monitoring
about 6 years ago
Hi
Ok Thanks.
But , I have an other problem.
I lost all reporting in Centreon …
Can you help me ?
Thanks
about 6 years ago
Hi,
run this command :
# su - nagios -c "/usr/share/centreon/bin/logAnalyser -a"
about 6 years ago
Or run :
# su - nagios -c "/usr/share/centreon/cron/dashboardBuilder.pl -r"
# su - nagios -c "/usr/share/centreon/cron/eventReportBuilder.pl -r"
about 6 years ago
Hello,
When i try to update FAN 2.2 (before updating to FAN2.3) I have an error:
–> Finished Dependency Resolution
rrdtool-php-1.2.27-3.el5.x86_64 from installed has depsolving problems
–> Missing Dependency: librrd.so.2()(64bit) is needed by package rrdtool-php-1.2.27-3.el5.x86_64 (installed)
rrdtool-php-1.2.27-3.el5.x86_64 from installed has depsolving problems
–> Missing Dependency: rrdtool = 1.2.27-3.el5 is needed by package rrdtool-php-1.2.27-3.el5.x86_64 (installed)
Error: Missing Dependency: rrdtool = 1.2.27-3.el5 is needed by package rrdtool-php-1.2.27-3.el5.x86_64 (installed)
Error: Missing Dependency: librrd.so.2()(64bit) is needed by package rrdtool-php-1.2.27-3.el5.x86_64 (installed)
You could try using –skip-broken to work around the problem
You could try running: package-cleanup –problems
package-cleanup –dupes
rpm -Va –nofiles –nodigest
The program package-cleanup is found in the yum-utils package.
But rrdtool is installed:
# rpm -qa|grep rrdtool
rrdtool-php-1.2.27-3.el5
rrdtool-1.2.27-3.el5
rrdtool-perl-1.2.27-3.el5
Have you any ideas?
about 6 years ago
Hi Olivier,
since the 2.2.2-fan.2 version, centreon does not need rrdtool-php. So, you can remove this package. Force the removing if yum remove doesn’t work :
rpm --force --nodeps -e rrdtool-php
about 6 years ago
Hi,
When I launch this command I have an error:
# rpm –force –nodeps -e rrdtool-php
rpm: only installation, upgrading, rmsource and rmspec may be forced
But I am not in 2.2.2-fan.2 I am in 2.2.2-fan.1 and I want to update to 2.2.2-fan.2 (to update to 2.3)
Have you any other ideas?
Thank you for your answer.
about 6 years ago
Delete –force option, it is not using with -e.
Also try to force the installation of Centreon 2.2.2-fan.2.
Download from http://www.fullyautomatednagios.org/FAN/repository/2.2/i386/ :
centreon-plugins-2.2.2-fan.2
centreon-trap-2.2.2-fan.2
centreon-www-2.2.2-fan.2
centreon-storage-2.2.2-fan.2
centreon-core-2.2.2-fan.2
centreon-database-2.2.2-fan.2
And run update with rpm -Uvh centreon*2.2.2-fan.2*.rpm
about 6 years ago
Hi,
since we upgraded FAN from 2.2 to 2.3 the NagVis does not work anymore.
Error message in detail:
Syntax error
Invalid JSON response:
Not Found
The requested URL /nagvis/frontend/nagvis-js/index.php&_t=1331742356000 was not found on this server.
Any idea?
about 6 years ago
Hi Timo Denis,
a bug is identified in nagvis 1.6.3 but 1.6.4 solve this issue.
I will try to provide an nagvis-1.6.4 rpm ASAP.
You can read this : https://sourceforge.net/projects/fannagioscd/forums/forum/793280/topic/5110686
about 6 years ago
Great … I will wait for the build.
about 6 years ago
It works!!
Thank you!
Next part: update to 2.3 tomorrow…
about 6 years ago
Hi,
could you test rpm i386/nagvis-1.6.4-fan.1.i386.rpm or x86_64/nagvis-1.6.4-fan.1.x86_64.rpm. They are availables in http://lkco.gezen.fr/FAN/repository/fan2test/
about 6 years ago
works fine … thanks
about 6 years ago
Hi guys,
nagvis-1.6.4 is now in repository 2.3.
Thanks all for your feedback
about 6 years ago
En suivant la procédure, je lance le yum –enablerepo=Graphviz update
Et…
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : centreon-core 1/35
Updating : nagios-ndoutils 2/35
Updating : centreon-www 3/35
Updating : centreon-plugins 4/35
Installing : ruby-libs 5/35
Installing : ruby 6/35
Installing : xorg-x11-fonts-Type1 7/35
Updating : nagios-plugins-setuid 8/35
Updating : wikigenerator 9/35
The plugins documentation will be updated
Mais il reste figé depuis plus de 20 minutes et plus rien ne se passe, puis-je faire un Ctrl-Break puis un yum-complete-transaction pour essayer de continuer l’update ?
Merci d’avance…
about 6 years ago
Hi Bernand,
could you give me some information on your architecture ? 32 or 64 bit ?
fan-standalone ? fan-central ?
about 6 years ago
Hello,
Since update to 2.3 some graphs are not update.
The result of the command is:
OK: \Processus(toto)\% Temps processeur: 3.125|’\Processus(toto)\% Temps processeur’=3.125
It’s only from windows servers with nsclient++ but not all services.
Any ideas?
about 6 years ago
Hi,
have some error in /var/log/centreon/centstorage.log ?
or centstorage deamon is started correctly ?
about 6 years ago
Hi,
yes:
21/3/2012 14:33:42 – Receiving order to stop…
21/3/2012 14:33:42 – Stopping centstrorage engine…
21/3/2012 14:33:42 – Starting centstrorage engine…
21/3/2012 14:33:42 – PID : 8930
21/3/2012 14:34:03 – ERROR while updating /var/lib/centreon/metrics/1034.rrd at 1332336830 -> 30 : /var/lib/centreon/metrics/1034.rrd: illegal attempt to update using time 1332336830 when last update time is 1332336830 (minimum one second step)
21/3/2012 14:34:03 – ERROR while updating /var/lib/centreon/metrics/1036.rrd at 1332336830 -> 30 : /var/lib/centreon/metrics/1036.rrd: illegal attempt to update using time 1332336830 when last update time is 1332336830 (minimum one second step)
21/3/2012 14:34:59 – ERROR while updating /var/lib/centreon/metrics/906.rrd at 1332336886 -> 30 : /var/lib/centreon/metrics/906.rrd: illegal attempt to update using time 1332336886 when last update time is 1332336886 (minimum one second step)
21/3/2012 14:34:59 – ERROR while updating /var/lib/centreon/metrics/908.rrd at 1332336886 -> 30 : /var/lib/centreon/metrics/908.rrd: illegal attempt to update using time 1332336886 when last update time is 1332336886 (minimum one second step)
But this is not the id of the service which not work.
No error about the problematic service (find with: select host_name, service_description,metric_id from metrics, index_data where index_id = id and host_name = “HOSTNAME”;)
about 6 years ago
Hi Olivier,
could you come on the irc chan #fullyautomatednagios. There may be several reasons for your problem
about 6 years ago
I can see the data with:
tail -f /var/log/nagios/service-perfdata
but nothing in the graph since the update.
An idea?
about 6 years ago
I don’t resolve this problem but I have an alternative:
I make a new service for the NRPE client (the problem was the % in the perfdata):
#!/bin/sh
/usr/lib/nagios/plugins/check_nrpe $*|sed “s/\(‘[^'%=]*\)%\([^'%=]*’\)/\1-pc\2/g”
about 6 years ago
hi, thx for this guide.
Before upgrading to 2.3 i need to upgrade 2.1 to 2.2. But I have a problem. Please See my question in the comments of this link :
http://www.fullyautomatednagios.org/wordpress/upgrade-fan-2-1-to-fan-2-2/
Really need your help…
about 6 years ago
After upgrading to version 2.3 i don’t get any messages of my Trap-Pollers.
All configured checks are always in OK state.
Is there a problem with my centTrapHandler?
about 6 years ago
Hi,
check if snmptrapd service is running ?
If not run,
# chkconfig snmptrapd on
# service snmptrapd start
about 6 years ago
Of course my snmptrap is running.
[root@Nagios1 ~]# ps -A|grep snmptrap
2780 ? 00:00:00 snmptrapd
And in my snmptt.log i’ll get new traps:
[root@Nagios1 ~]# grep 10.222 /var/log/snmptt.log
Mon Mar 26 14:00:12 2012 .1.3.6.1.4.1.6889.1.8.1.0.12 0 “Status Event” 10.70.2.4 – An alarm has been resolved on the switch. ‘CM’ ’1000000000′ ‘FPA:00000:0000000000:0326140002::N’ ‘*:\”system IPv4 firewall is ok\”‘ ‘_LX’ ’6′ ” ’10.70.2.4′ ” ”
about 6 years ago
Is it possible to check the correct functionality of /usr/share/centreon/bin/centTrapHandler-2.x?
Maybe i can generate a manual command for a trap. But i don’t understand the correct usage of the parameters.
about 6 years ago
hi,
there are 2 scripts providing by centreon centTrapHandler-2.x and centTrapHandlerForPoller-2.x. centTrapHandler-2.x work when centcore when they are installed on the same server.
The script centTrapHandlerForPoller-2.x works only on poller and need to connect the mysql database
about 6 years ago
I don’t have an extra poller.
about 6 years ago
Enable debug log in /etc/snmp/centreon_traps/snmptt.ini and see /var/log/debug.snmptt file
about 6 years ago
Looks good. Every incoming trap is generating lots of information in my debug logfile.
about 6 years ago
Problem still exisits.
The last critical state of my “Trap checks” was generated minutes before i updated FAN2.2 to FAN2.3.
about 6 years ago
Hi,
The link
http://forge.centreon.com/issues/2821
solved my problem.
It is a bug in /usr/share/centreon/bin/centcore
about 6 years ago
I searched the files in /var/log/centreon and find something interesting in centcore.log (cannot write external command …):
[root@monitoring ~]# tail -f /var/log/centreon/centcore.log
18/4/2012 07:38:00 – Cannot write external command on central server : “[1334727479] PROCESS_SERVICE_CHECK_RESULT;wtg-as-poe-stack;Linkerror;2;Link down on interface Ethernet2/0/5. State: down.
[1334727479] PROCESS_SERVICE_CHECK_RESULT;wtg-as-poe-stack;Linkerror;2;Link down on interface Ethernet2/0/5. State: down.
about 6 years ago
Hi,
it’s bug in centreon 2.3.3 and it’s fixed in 2.3.4. I try to provide an update ASAP.
So, you can add modification in /usr/share/centreon/bin/centcore applying this patch :
http://forge.centreon.com/projects/centreon/repository/revisions/12762/diff/trunk/centreon/bin/centcore
about 6 years ago
Thank you Xavier.
Your tip solved the problem!
about 6 years ago
Bonjour,
je viens de mettre à jour la cersion de FAN en 2.3 et j’ai un problème avec nagvis…
Dès que je suis en mode édition d’une map, j’ai une erreur json du type “Invalid Json response: /nagvis/server/core/aja_handler.php ….”
si quelqu’un a une idée je suis preneur
about 6 years ago
Je n’ai pas rencontré cette erreur en mode édition. Tente un upgrade de nagvis depuis les rpm ou sinon depuis les sources. Une nouvelle version vient de sortir
about 5 years ago
Bonjour,
Je viens d’upgrader notre FAN de la version 2.2 en version 2.3 et je rencontre également une erreur avec nagvis non référencée dans la FAQ.
Lorsque j’accède à l’url de nagvis, j’obtiens bien la mire d’authentification qui fonctionne. Une fois authentifié, j’ai une page blanche avec le logo nagvis,
et un texte “Open”, lorsque je passe la souris sur le text, j’ai le message suivant:
vue générale, les map par défaut et:
Error: (0) Undefined index: langWui (/var/lib/nagvis/tmpl/compile/usr/share/nagvis/share/userfiles/templates/default.header.html.d16.php:96)
#0 var/lib/nagvis/tmpl/compile/usr/share/nagvis/share/userfiles/templates/default.header.html.d16.php(96): nagvisExceptionErrorHandler(Object(Dwoo_Template_File), Array
#1 /usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo.php(363): include(‘/var/lib/nagvis…’)
#2 /usr/share/nagvis/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php(87): Dwoo->get()
#3 /usr/share/nagvis/share/frontend/nagvis-js/classes/FrontendModOverview.php(78): NagVisHeaderMenu->__toString()
#4 /usr/share/nagvis/share/frontend/nagvis-js/classes/FrontendModOverview.php(55): FrontendModOverview->showViewDialog()
#5 /usr/share/nagvis/share/server/core/functions/index.php(120): FrontendModOverview->handleAction()
#6 /usr/share/nagvis/share/frontend/nagvis-js/index.php(58): require(‘/usr/share/nagv…’)
J’ai vidé plusieurs fois le cache du navigateur (testé avec plusieurs navigateur).
J’ai testé les dernier rpm fournit sur le repository de FAN.
Je suis preneur, si vous avez une idée
about 5 years ago
Hi,
see this post : http://sourceforge.net/projects/fannagioscd/forums/forum/793280/topic/5199689
about 5 years ago
Bonjour,
j’ai mis a jour mon FAN en 2.3 et j’ai une erreur pour me logger sur nagvis :
Syntax error
Invalid JSON response:
Not Found
The requested URL /nagvis/frontend/nagvis-js/index.php&_t=1338564696000 was not found on this server.
De plus je ne trouve pas
Reconfigure rrdtool version : RRDTool Set dans Centreon.
J’ai bien été dans l’administration –> Options –> Mais la je n’ai pas de RRDTool
Savez vous d’ou viens ce problème ?
En vous remerciant
about 5 years ago
hi,
read this post for your issue on Nagvis http://sourceforge.net/projects/fannagioscd/forums/forum/793280/topic/5199689
To set RRDTool version, go to in Centreon : Administration>Options. Under, you have RRDTool
about 5 years ago
after I’ve done a little research I decided for your (almost) out-of-box solution. I don’t really do 2.2 to 2.3 upgrade, I downloaded images mounted in VMware and installed poller, db and central on 3 different VMs (following the guide) then I’ve done some changes in repo files, as explained above, and few more other changes. When I try to use yum I get:
[root@fancentral ~]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
FAN | 2.1 kB 00:00
http://www.fullyautomatednagios.org/FAN/repository/2.3/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for FAN: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: FAN. Please verify its path and try again
about 5 years ago
Hi ,
i exported data using queries from 2.2 version to 2.3 version after which listing of poller and hostgroup dropdown are disabled
please help me on this!
about 5 years ago
hi,
i don’t met this bug. Could post your issue in FAN forum and give us more detail