View Full Version : Centreon2b2 Hosts states
smarechal
05-19-2008, 04:39 PM
Bonjour,
Je viens d'installer Centreon2b2 sur une machine (Debian etch).
L'installation s'est très bien passée grâce au tutoriel du wiki.
Simplement dans l'état des hôtes, je n'ai rien qui s'affiche.
Tout reste sur 0 alors que j'ai trois hôtes de paramétrées.
En parallèle, j'utilise toujours la version 1.4.2.6 sur une autre machine (Cela fonctionne bien). J'ai paramétré les hôtes comme sur cette version (Juste en check_host_alive pour commencer).
J'ai mis une capture avec.
Merci de votre aide.
PS: j'ai déjà des graphs avec l'hôte par défaut (Localhost).
jeff0672
05-20-2008, 06:33 PM
I'm pretty sure I'm having the same issue (My french is pretty rusty).
Any NDO based functions work fine. I'm getting all my historical data and graphs in the View tab, but the monitoring tab doesn't seem able to talk to the nagios backend.
If I go to the Nagios backend manually, I see the host / service status data. But under Centreon2b2, I get 0's. I'm using the nagiosadmin account to log in. I don't see an option to specify a passwd for centreon to log into nagios however, just the account name.
smarechal
05-21-2008, 09:19 AM
I think it's the same issue ;)
gregorybel
05-21-2008, 04:53 PM
SAlut, je suis dans le meme cas que vous. Dans nagios je vois mes hosts et services mais dans centreon rien du tout. Par contre dans le event log de centreon j'ai bien tous les warning, etc et j'ai aussi le réporting.... Donc il communique bien avec nagios par contre monitoring et accueil reste désespérément vide!
@+
julio
05-22-2008, 01:03 AM
Is ndo tables empty in MySQL ??
I haven't this problem...
Ethan !!!! We wait ndo in stable !! :)
jeff0672
05-22-2008, 01:30 AM
Appears that my tables are empty:
mysql> show tables;
+----------------------------------------+
| Tables_in_ndo |
+----------------------------------------+
| centreon_acl |
| nagios_acknowledgements |
| nagios_commands |
| nagios_commenthistory |
| nagios_comments |
| nagios_configfiles |
| nagios_configfilevariables |
| nagios_conninfo |
| nagios_contact_addresses |
| nagios_contact_notificationcommands |
| nagios_contactgroup_members |
| nagios_contactgroups |
| nagios_contactnotificationmethods |
| nagios_contactnotifications |
| nagios_contacts |
| nagios_contactstatus |
| nagios_customvariables |
| nagios_customvariablestatus |
| nagios_dbversion |
| nagios_downtimehistory |
| nagios_eventhandlers |
| nagios_externalcommands |
| nagios_flappinghistory |
| nagios_host_contactgroups |
| nagios_host_contacts |
| nagios_host_parenthosts |
| nagios_hostchecks |
| nagios_hostdependencies |
| nagios_hostescalation_contactgroups |
| nagios_hostescalation_contacts |
| nagios_hostescalations |
| nagios_hostgroup_members |
| nagios_hostgroups |
| nagios_hosts |
| nagios_hoststatus |
| nagios_instances |
| nagios_logentries |
| nagios_notifications |
| nagios_objects |
| nagios_processevents |
| nagios_programstatus |
| nagios_runtimevariables |
| nagios_scheduleddowntime |
| nagios_service_contactgroups |
| nagios_service_contacts |
| nagios_servicechecks |
| nagios_servicedependencies |
| nagios_serviceescalation_contactgroups |
| nagios_serviceescalation_contacts |
| nagios_serviceescalations |
| nagios_servicegroup_members |
| nagios_servicegroups |
| nagios_services |
| nagios_servicestatus |
| nagios_statehistory |
| nagios_systemcommands |
| nagios_timedeventqueue |
| nagios_timedevents |
| nagios_timeperiod_timeranges |
| nagios_timeperiods |
+----------------------------------------+
mysql> select * from nagios_hostchecks;
Empty set (0.00 sec)
mysql> select * from nagios_hosts;
Empty set (0.01 sec)
gregorybel
05-22-2008, 09:28 AM
J'ai la meme chose dans la base sql...Empty set
smarechal
05-22-2008, 05:25 PM
Idem :confused:
Apparemment cela vient d'un bug avec NDO ...
Essayez ça:
Lancez NDOutils en précisant le fichier de configuration à utiliser. Pensez à consultez le fichier de configuration "/usr/local/nagios/var/nagios.log" pour vérifier son bon lancement.
# cp /usr/local/src/ndoutils-1.4b7/config/ndo2db.cfg /usr/local/nagios/etc/
# /usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
# tail -f /usr/local/nagios/var/nagios.log | grep ndomod
(Une ligne de la forme "ndomod: Successfully connected to data sink." doit apparaître.)
Source:http://en.doc.centreon.com/Setup_Fedora_core_8:installation_bdd_ndo/fr
J'ai tué tous les processus NDO (j'en avais 3), refait la manip ci-dessus et rebooter le serveur Centreon.
Maintenant ça fonctionne.
jeff0672
05-23-2008, 01:24 AM
I got this resolved. Was 2 issues.
1) When using the install documentation for fedora it instructs to copy the ndo2db.cfg file from the centreon source. This file is set to set up a unix socket by default. Centreon however by default is looking for a TCP socket. So it cannot connect. I modified the ndo2db file to use a TCP socket.
2) In the nagios config section in the data tab, you need to have:
/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
in the field for the broker module. My install only had the 'config_file=...' part.
Once those 2 options were fixed all is working fine.
I got this resolved. Was 2 issues.
1) When using the install documentation for fedora it instructs to copy the ndo2db.cfg file from the centreon source. This file is set to set up a unix socket by default. Centreon however by default is looking for a TCP socket. So it cannot connect. I modified the ndo2db file to use a TCP socket.
2) In the nagios config section in the data tab, you need to have:
/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
in the field for the broker module. My install only had the 'config_file=...' part.
Once those 2 options were fixed all is working fine.
Hi,
I have ubuntu 7.1 server edition box, Nagios 3.0 and Centreon 2 beta and I have same problem. I can see down notification about a host in the Monitoring/Event Logs section about a host . But there is no down message in the Monitoring/Host Sectin. Altough I have 3 host I see 0 hsot in the Home section.
After I look at your thread I check my ndo2db.cfg file and see that there is a tcp socket shown below:
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=tcp
socket_name=/var/run/ndo.sock
tcp_port=5668
db_servertype=mysql
db_host=localhost
db_name=ndo
db_port=3306
db_prefix=nagios_
db_user=centreon
max_timedevents_age=1440
max_systemcommands_age=1440
max_servicechecks_age=1440
max_hostchecks_age=1440
max_eventhandlers_age=1440
And there is a there is a line about ndo in the nagios.cfg:
...
...
broker_module=/usr/sbin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
...
...
But when I try to run your second offer manually I get segmantation error message:
root@ubuntuwm:/usr/local/nagios/etc# /usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios//etc/ndomod.cfg
Segmentation fault
root@ubuntuwm:/usr/local/nagios/etc#
I have to say I copied ndomod-3x.o as ndomod.o into /usr/sbin.
What is this segmentation error?
Another comment for smarechal:
I did what you told.
here is the result:
[1211862376] ndomod: Still unable to connect to data sink. 205969 items lost, 5000 queued items to flush.
[1211863288] ndomod: Still unable to connect to data sink. 209855 items lost, 5000 queued items to flush.
[1211864201] ndomod: Still unable to connect to data sink. 213747 items lost, 5000 queued items to flush.
[1211865115] ndomod: Still unable to connect to data sink. 217659 items lost, 5000 queued items to flush.
[1211866027] ndomod: Still unable to connect to data sink. 221560 items lost, 5000 queued items to flush.
[1211866939] ndomod: Still unable to connect to data sink. 225463 items lost, 5000 queued items to flush.
[1211867403] ndomod: Successfully connected to data sink. 227449 items lost, 5000 queued items to flush.
[1211867420] ndomod: Successfully flushed 5000 queued items to data sink.
is this correct?
Yes it is coorect :)
After run that coomand. I can see hosts and their alarms.
can you do a summary TFC please ? i don't understand what do you do.
(et si tu parles francais, fait toi plaisir ;-) !)
merci
I did all things in the posts :)
Then it works :)
ok :)
Where is the location of ndo2db.cfg, because in my debian i have few files (nagios, centreon, ndo) ?
thx :)
Hi,
here is the my output
root@ubuntuwm:/home/tevfik# find / -name ndo2db.cfg
/usr/local/nagios/etc/ndo2db.cfg
/usr/local/centreon/filesGeneration/nagiosCFG/1/ndo2db.cfg
ok, i have one other but it's the binaries NDO
you have modified they both ?
Actually no. Both are not modified.I just run :
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
But first I copy my ndomod3x.o under /usr/sbin/ as ndomod.o
ok but it doesn't work, i think they are something that i don't do !
i have do that :
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
cp /usr/local/nagios/bin/ndomod-3x.o /usr/sbin/ndomod.o
and when i use tail -f /usr/local/nagios/var/nagios.log | grep ndomod :
ndomod : Could not open data sink! I'll keep tryning, but some output may get lost ...
Event broker module '/usr/sbin/ndomod.o' initialized successfully
i don't understand ...
thanks for your help and sorry for my english :)
Hi,
Today I try to install beta 2b3 (becaue stil i cant achieve to work centreon healty)
there is no problem during isntalaltion.
But after I add some hosts , I observe that, there are some host exist, someone is down ( I see that in event logs)
But in home page I see 0 host, 0 problem...
I did posted message offers. But still same.
Here is the nagios.log output:
[1212060006] ndomod: Still unable to connect to data sink. 0 items lost, 4113 queued items to flush.
[1212060920] ndomod: Still unable to connect to data sink. 2928 items lost, 5000 queued items to flush.
[1212061823] ndomod: Still unable to connect to data sink. 6728 items lost, 5000 queued items to flush.
...
...
2008/05/29 07:05:04 Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
2008/05/29 07:05:04 ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
oops sorry.
I made a mistake.Pls forget my previous post.
Thanks
Sandro
06-11-2008, 05:06 PM
Hi tfc!
I have same error but i did not get the mistake :-)
Can you give me a hint?
Thanks a lot!