PDA

View Full Version : nagvis + nagiosDataNotUpToDate


ledawa
05-26-2008, 10:30 PM
bonjour,
j'ai le message suivant pour l'affichage d'une map avec nagvis:
nagiosDataNotUpToDate: NDOMy: NDO data to old (Backend ndomy_1)
NDO claims that Nagios did no status Update for more than "180" seconds. Make sure that Nagios and ndo2db are running
si quelqu'un a une idée !!!
je me suis aussi apercu que quand je lance le daemon ndo, au bout d'une minute, j'en ai un deuxieme qui se lance tout seul.
voici ma config:
centreon-1.4.2.6
nagios-3.0.2
nagios-plugins-1.4.11
nagvis-1.3rc3
ndoutils-1.4b7

merci par avance.

Wolfgang
05-26-2008, 11:07 PM
I found a solution (http://www.nagios-portal.de/wbb/index.php?page=Thread&threadID=9747&pageNo=2) in the german forum. Maybe it fixes your problem:

Hi to all

finally we find the problem!!!! the problem is with the CET hour. Our server have CET, not GMT and in the file GlobalBackend-ndomy.php when it made the calc if(time() - strtotime($nagiosState['status_update_time']) > $this->MAINCFG->getValue('backend_'.$backendId, 'maxtimewithoutupdate')) {
$FRONTEND = new GlobalPage($this->MAINCFG,Array('languageRoot'=>'backend:ndomy'));
$FRONTEND->messageToUser('ERROR','nagiosDataNotUpToDate','BAC KENDID~'.$this->backendId.',TIMEWITHOUTUPDATE~'.$this->MAINCFG->getValue('backend_'.$backendId, 'maxtimewithoutupdate'));

the result is greater than 180 sec, because we think that time () is in function GMT hour and strtotime is in function CET hour (gmt +1). Because we don't want to change the server hour we add (time() - 3600 - strto...) and the nagvis is working great.
Thanks to all for the help, especially to LaMi

BTW: having two running ndo processes is OK (one for NDO and one communicating with Nagios)

ledawa
05-27-2008, 06:26 AM
oui, j'avais lu ce post mais pas trop pigé le truc. maintenant c'est ok, comme je suis en caledonie et en gmt +11 , j'ai mis - 39600 et ca marche.
merci pour la piqure de rappel.

pti-kwi
06-11-2008, 10:19 AM
slt quel tuto a tu utilisé pour installé nagvis stp ?

merci d'avance ?