PDA

View Full Version : Centreon 2.0RC-2: no monitored hosts?


aschaefer
08-15-2008, 12:48 PM
Hello,

althoug i did configured some hosts and activated the nagios configuration i can't see them in my monitoring view, which remain empty.

Here is how i did it:
1. After successfull installation of Centreon 2.0RC-2 i did configure 2 hosts for monitoring. I also did create contacts, contact groups and host groups matching them together...
2. After that i went to menu "Configuration"->"Nagios", did check "Generate configuration files" and "Run Nagios debug (-v), checking the configuration

3. After successfull config check i did run "Move export files" and "Restart Nagios", commiting it with the "Export" button.... but nothing happens. No hosts or services are in monitoring portal ;o(

What do i wrong?

Thanks for all your comments.
Alex

mrcoffee
08-15-2008, 01:03 PM
You got the rights to see the hosts on the webpage? Check your cgi.conf to see if the user you log in with has got the correct rights..

aschaefer
08-15-2008, 01:36 PM
Thanks for the quick reply!

I did follow you advice and add my user account "aschaefer" to each access section, configurable in the Centreon mask for CFG.cfg configuration (there were only "nagiosadmin" as per default)... Saved and regenerating the nagios configuration again, logged out and logged in - > didn't help. I am still unable to see any hosts configured on the Monitoring page :(

Sylvester
08-15-2008, 01:42 PM
Associate your hosts to generic-host template and try again =)
Let us know if it works

aschaefer
08-15-2008, 01:49 PM
One of two hosts was already associated with generic-host template... Now i did both to generic - all the same - no success.

How can i log in as nagiosadmin? How to create new users for cetreon-portal logon (not nagios contacts)... Maybe is is something with ACL-configuration?

Sylvester
08-15-2008, 01:56 PM
Configuration > Users > Add a contact :
There, you should see a field "Reach Centreon frontend" > set it to yes
set a password, and log in with the alias

Btw are you using NDO?

aschaefer
08-15-2008, 02:37 PM
OK, user managent is clear. I can reach "Centreon Frontend" and is also an Admin... I did try it with nagiosadmin - nothing helps.

NDO: During installation procedure i followed the Wiki installation manual and did also configure NDO... the only step i didn't make was the step
7. Installation of NDO (Part 2). It dind't work, because the mysql db 'ndo', which should be created in this step, was already created in the installation step 4. Installation of NDOutils and i have got appopriate error... Furthermore there is no db 'cent_db', which will be referenced in the next part of Step. 7
The wiki seems to be wrong...

Any further advices?

Sylvester
08-15-2008, 10:59 PM
Then, did you run ndo2db? by default it should be :
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg

aschaefer
08-18-2008, 11:51 AM
Hello,

i did start it, but the situation remains the same... What is wrong?

Nagios itself, seems to work: looking at /usr/local/nagios/var/nagios.log i have the following output:
[1219048984] INITIAL SERVICE STATE: Centreon-Server;/;UNKNOWN;HARD;3;ERROR: hrStorageDescr Table : Requested table is empty or does not exist.
[1219048984] INITIAL SERVICE STATE: Centreon-Server;load;UNKNOWN;HARD;3;UNKNOWN: Received noSuchName(2) error-status at error-index 3.
[1219048984] INITIAL SERVICE STATE: Centreon-Server;memory;UNKNOWN;HARD;3;ERROR: Description Table hrStorageType : Requested table is empty or does not exist.
[1219048984] INITIAL SERVICE STATE: Centreon-Server;ping;OK;HARD;1;GPING OK - rtt min/avg/max/mdev = 0.025/0.034/0.040/0.008 ms
[1219048984] INITIAL SERVICE STATE: deingESX01.local.burkert.com;ping;OK;HARD;1;GPING OK - rtt min/avg/max/mdev = 0.210/0.211/0.213/0.001 ms
[1219048984] INITIAL SERVICE STATE: deingSLG01;/;OK;HARD;1;(null)
[1219048984] INITIAL SERVICE STATE: deingSLG01;load;OK;HARD;1;(null)
[1219048984] INITIAL SERVICE STATE: deingSLG01;memory;OK;HARD;1;(null)
[1219048984] INITIAL SERVICE STATE: deingSLG01;ping;OK;HARD;1;(null)
[1219049099] SERVICE ALERT: deingSLG01;/;UNKNOWN;SOFT;1;ERROR: hrStorageDescr Table : No response from remote host '10.40.68.200'.
[1219049159] SERVICE ALERT: deingSLG01;/;UNKNOWN;SOFT;2;ERROR: hrStorageDescr Table : No response from remote host '10.40.68.200'.
[1219049199] SERVICE ALERT: deingSLG01;load;UNKNOWN;SOFT;1;UNKNOWN: No response from remote host '10.40.68.200'.
[1219049219] SERVICE ALERT: deingSLG01;/;UNKNOWN;HARD;3;ERROR: hrStorageDescr Table : No response from remote host '10.40.68.200'.
[1219049259] SERVICE ALERT: deingSLG01;load;UNKNOWN;SOFT;2;UNKNOWN: No response from remote host '10.40.68.200'.

But why it doesn't show anything at the web-interface?

Thanks for your answers
Alex

mrcoffee
08-18-2008, 07:20 PM
Its possible the ndomod module is not succesfull in passing the data to ndo2db. If this happens before you were ever succesfull, hosts don't show up in the webinterface.

Check if ndo2db service is running:
# service ndo2db status (on Fedora)

If you use the unix output file to pass throught the data then see if this file gets filled with perfdata.

I prefer using the tcp method. Check if the port is openend:
# netstat -an|grep 5668

But I'm not sure this is it cause you should get errors in the nagios logfile like that a connection is made by ndomod.o but that it was not succesfull sending the data.

Maybe check if your firewall if not blocking things.

Check the cgi.cfg file again, the one that really resides on the filesystem (/usr/local/nagios/cgi.cfg) to see if the users are really in the config file.

aschaefer
08-20-2008, 05:19 PM
Thanks a lot - the issue is solved!

the problem was the wrong configuration option in nagios.cfg:

instead of:
broker_module=/usr/local/nagios/bin/ndomod-2x.o config_file=/usr/local/nagios/etc/ndomod.cfg

there should be:
broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg

Thaks a lot again!
Alex

Eric G
08-21-2008, 05:21 PM
I use Ubuntu 7.1 and I have the same problem. Can't see host in Centreon but can see them in Nagios wen interface.

Eric G
08-21-2008, 05:30 PM
Then, did you run ndo2db? by default it should be :
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg

When I do that i have "Support for the specified database server is not yet supported or was not found on your system"

aschaefer
08-21-2008, 06:06 PM
It sounds like your mySQL data base is not installed or it is in the wrong version...

Did you follow setup wiki? Although there is no setup wiki for Ubuntu 7.1... I would suggest to upgrade your OS to Ubuntu 8.4 and then install following the wiki for Ubuntu 8.4. Without well configured and working NDO2DB you won't get the Centron interface running.

Alex

droetker
08-22-2008, 07:44 PM
I can confirm this - exactly the same situation, all seems too run perfectly, no errors in the logs, but I see no hosts in then Web frontend.
I have the same nagios log file, ping is ok.

Just another thing: my nagios log file says
[1219422132] Error: Could not safely copy module '/usr/local/nagios/bin//ndomod-2x.o'. The module will not be loaded: No such file or directory
[1219422132] Finished daemonizing... (New PID=13289)
[1219422132] INITIAL HOST STATE: elke;UP;HARD;1;GPING OK - rtt min/avg/max/mdev = 0.112/0.121/0.129/0.014 ms
[1219422132] INITIAL HOST STATE: hugo;UP;HARD;1;GPING OK - rtt min/avg/max/mdev = 0.263/0.276/0.288/0.010 ms
[1219422132] INITIAL HOST STATE: irina;UP;HARD;1;GPING OK - rtt min/avg/max/mdev = 0.179/0.204/0.232/0.021 ms
[1219422132] INITIAL HOST STATE: projekt;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.09 ms
[1219422132] INITIAL HOST STATE: sunshine;UP;HARD;1;GPING OK - rtt min/avg/max/mdev = 0.118/0.127/0.143/0.011 ms
[1219422132] INITIAL SERVICE STATE: elke;/;UNKNOWN;HARD;3;ERROR: hrStorageDescr Table : No response from remote host '10.10.210.40'.
[...]

The point is - i have no /usr/local/nagios/bin//ndomod-2x.o, it's called ndomod.o , without the 2x (BTW, I have nagios 3.0.3...)

droetker
08-22-2008, 07:47 PM
ah - yes, that was the problem - in Centreon, go to
Configuration -> Nagios -> nagios.cfg , select the "Default nagios.cfg", go to the tab "Data" - the broker module is the wrong line - correct it to your needs - et voilá.