PDA

View Full Version : hosts not visible


YvesDM
1st April 2008, 10:21
hi,

I''ve just started to explore centreon/nagios.
Installation went fine. (nagios 3.0a4 / centreon 1.4.2.3)
In configuration/hosts I added some hosts.
I also created hostgroups and assigned similar hosts to the same group.
Created a service which performs the check_host_alive command.
Restarted nagios from the centreon interface and check isn't showing me errors:

Nagios 3.0a4
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-08-2007
License: GPL

Reading configuration data...

Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Warning: comment_file variable ignored. Comments are now stored in the status and retention files.
Warning: Extended service information (serviceextinfo) definitions are deprecated in Nagios 3.x and will not be supported in future versions. Please merge variables in these definitions with your service definitions.
Warning: Extended host information (hostextinfo) definitions are deprecated in Nagios 3.x and will not be supported in future versions. Please merge variables in these definitions with your host definitions.
Running pre-flight check on configuration data...

Checking services...
Checked 5 services.
Checking hosts...
Checked 4 hosts.
Checking host groups...
Checked 3 host groups.
Checking service groups...
Checked 1 service groups.
Checking contacts...
Checked 3 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 44 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check



But, when I then go to monitoring/hosts, I don't see any of my hosts.
Can someone point me in the right direction or link me to a good manual where this is explained?

Many tnx
Yves

YvesDM
1st April 2008, 15:50
It looks like there is no link between nagios and the centreon database.
(Already installed nagios 2.9 instead of 3.0 to make sure of compatibility)
My /etc/nagios2/resource.cfg has no database entries. Is this normal?
It has only one line:

################################################## #################
# #
# GENERATED BY OREON #
# #
# Developped by : #
# - Julien Mathis #
# - Romain Le Merlus #
# #
# www.oreon-project.org #
# For information : contact@oreon-project.org #
################################################## #################

################################################## #################
# #
# Last modification April 1, 2008, 1:01 pm #
# By Yves #
# #
################################################## #################

$USER1$=/usr/lib/nagios/plugins/
~

Silkut
1st April 2008, 16:11
Hi,

did you correctly exported the configuration ?

In Configuration, Nagios, Export, Result part (above Reload Nagios), did you put all options to "Yes".

just my 0.02cts

YvesDM
1st April 2008, 16:19
Hi,

did you correctly exported the configuration ?

In Configuration, Nagios, Export, Result part (above Reload Nagios), did you put all options to "Yes".

just my 0.02cts

Yes, i just noticed that too :-)
Files are filled now, but still no hosts visible in monitoring/hosts :(

Silkut
1st April 2008, 16:28
Hi,

Hm strange
By default, the monitoring link leads to "Service problems" (which is void if you don't have any problems), but if you click on "hosts" as you seem to say, you should see your hosts, with a "assumed to be ok" or something like that (since it does the check after some times). :confused:

EDIT: err forgot to say you need to check the host status window, in the top right corner.

YvesDM
2nd April 2008, 08:58
Hi,

Tnx for your help.
But something must be wrong. I don't see any hosts under monitoring/hosts.
In the upper right corner, all host status and service status fields are filled with question marks (?) I try to look into it further today, but have some urgent things to do first.

Kind regards
Yves

YvesDM
2nd April 2008, 14:03
Ok, light in the tunnel :)
I found this in the nagios log:

root@ocsinventory:/usr/local/nagios/var# cat nagios.log
[1207133709] Nagios 2.6 starting... (PID=25136)
[1207133709] LOG VERSION: 2.0
[1207133709] Finished daemonizing... (New PID=25137)
[1207133709] Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.
[1207133709] Bailing out due to errors encountered while trying to initialize the external command file... (PID=25137)


When I checked, the rw/ dir wasn't there. So I created the rw/ dir and gave it the right permissions.
Running now, and hosts showing under hosts.

Kind regards
Y