Configs verified still give error on reload


#1

Hi all !

I installed nagios some days ago on an Ubuntu virtual machine, and until this morning, I’ve been doing fine…

This morning, I start my VM, then I connect to my nagios page and see everything is still offline, which is OK since my nagios server doesn’t stay online all the time yet.

Thinking about speeding up the process of checking all my hosts, I do : /etc/init.d/nagios reload

This returns me the error :

[blockquote]Running configuration check… CONFIG ERROR! Reload aborted. Check your Nagios configuration.[/blockquote]

Now… I know what this means, but what I don’t understand is last time I worked with my Nagios, I had no problem reloading it, so my configs still should be OK…

Anyway, I’m trying to find out where the error could be by checking my config, but…

THIS
[blockquote]/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg[/blockquote]

RETURNS
[blockquote]Nagios 3.0.3
Copyright © 1999-2008 Ethan Galstad (nagios.org)
Last Modified: 06-25-2008
License: GPL

Reading configuration data…

Running pre-flight check on configuration data…

Checking services…
Checked 28 services.
Checking hosts…
Warning: Host ‘002 St-Denijs-Westrem’ has no services associated with it!
Warning: Host ‘002 St-Denijs-Westrem BO’ has no services associated with it!
Warning: Host ‘003 St-Niklaas’ has no services associated with it!
Warning: Host ‘003 St-Niklaas BO’ has no services associated with it!
Warning: Host ‘004 Gent’ has no services associated with it!
Warning: Host ‘004 Gent BO’ has no services associated with it!
Warning: Host ‘006 Brussel’ has no services associated with it!
Warning: Host ‘006 Brussel BO’ has no services associated with it!
Warning: Host ‘008 Mons’ has no services associated with it!
Warning: Host ‘008 Mons BO’ has no services associated with it!
Warning: Host ‘009 Turnhout’ has no services associated with it!
Warning: Host ‘009 Turnhout BO’ has no services associated with it!
Warning: Host ‘010 Geraardsbergen’ has no services associated with it!
Warning: Host ‘010 Geraardsbergen BO’ has no services associated with it!
Warning: Host ‘011 Veurne’ has no services associated with it!
Warning: Host ‘011 Veurne BO’ has no services associated with it!
Warning: Host ‘012 Bastogne’ has no services associated with it!
Warning: Host ‘012 Bastogne BO’ has no services associated with it!
Warning: Host ‘014 Westerlo’ has no services associated with it!
Warning: Host ‘014 Westerlo BO’ has no services associated with it!
Warning: Host ‘016 Ieper’ has no services associated with it!
Warning: Host ‘016 Ieper BO’ has no services associated with it!
Warning: Host ‘017 Waregem’ has no services associated with it!
Warning: Host ‘017 Waregem BO’ has no services associated with it!
Warning: Host ‘018 Ronse’ has no services associated with it!
Warning: Host ‘018 Ronse BO’ has no services associated with it!
Warning: Host ‘019 Wevelgem’ has no services associated with it!
Warning: Host ‘019 Wevelgem BO’ has no services associated with it!
Warning: Host ‘020 St-Job-in-t-Goor’ has no services associated with it!
Warning: Host ‘020 St-Job-in-t-Goor BO’ has no services associated with it!
Warning: Host ‘021 Froyennes’ has no services associated with it!
Warning: Host ‘021 Froyennes BO’ has no services associated with it!
Warning: Host ‘022 Oostende’ has no services associated with it!
Warning: Host ‘022 Oostende BO’ has no services associated with it!
Warning: Host ‘023 Blankenberghe’ has no services associated with it!
Warning: Host ‘023 Blankenberghe BO’ has no services associated with it!
Warning: Host ‘024 Kuurne’ has no services associated with it!
Warning: Host ‘024 Kuurne BO’ has no services associated with it!
Warning: Host ‘026 Diest’ has no services associated with it!
Warning: Host ‘026 Diest BO’ has no services associated with it!
Warning: Host ‘027 Genk’ has no services associated with it!
Warning: Host ‘027 Genk BO’ has no services associated with it!
Warning: Host ‘028 Antwerpen’ has no services associated with it!
Warning: Host ‘028 Antwerpen BO’ has no services associated with it!
Warning: Host ‘029 Schelle’ has no services associated with it!
Warning: Host ‘029 Schelle BO’ has no services associated with it!
Warning: Host ‘030 Beveren’ has no services associated with it!
Warning: Host ‘030 Beveren BO’ has no services associated with it!
Warning: Host ‘032 St-Truiden’ has no services associated with it!
Warning: Host ‘032 St-Truiden BO’ has no services associated with it!
Warning: Host ‘033 Ninove’ has no services associated with it!
Warning: Host ‘033 Ninove BO’ has no services associated with it!
Warning: Host ‘034 Mt-S-Marchienne’ has no services associated with it!
Warning: Host ‘034 Mt-S-Marchienne BO’ has no services associated with it!
Warning: Host ‘035 Binche’ has no services associated with it!
Warning: Host ‘035 Binche BO’ has no services associated with it!
Warning: Host ‘036 Aalst’ has no services associated with it!
Warning: Host ‘036 Aalst BO’ has no services associated with it!
Warning: Host ‘037 Dendermonde’ has no services associated with it!
Warning: Host ‘037 Dendermonde BO’ has no services associated with it!
Warning: Host ‘038 Nijlen’ has no services associated with it!
Warning: Host ‘038 Nijlen BO’ has no services associated with it!
Warning: Host ‘040 Paal-Beringen’ has no services associated with it!
Warning: Host ‘040 Paal-Beringen BO’ has no services associated with it!
Warning: Host ‘042 Lochristi’ has no services associated with it!
Warning: Host ‘042 Lochristi BO’ has no services associated with it!
Warning: Host ‘043 Mouscron’ has no services associated with it!
Warning: Host ‘043 Mouscron BO’ has no services associated with it!
Warning: Host ‘044 Tielt-Winge’ has no services associated with it!
Warning: Host ‘044 Tielt-Winge BO’ has no services associated with it!
Warning: Host ‘045 Verviers’ has no services associated with it!
Warning: Host ‘045 Verviers BO’ has no services associated with it!
Warning: Host ‘047 Zelzate’ has no services associated with it!
Warning: Host ‘047 Zelzate BO’ has no services associated with it!
Warning: Host ‘048 Mariakerke’ has no services associated with it!
Warning: Host ‘048 Mariakerke BO’ has no services associated with it!
Warning: Host ‘050 Roeselare’ has no services associated with it!
Warning: Host ‘050 Roeselare BO’ has no services associated with it!
Warning: Host ‘051 Tienen’ has no services associated with it!
Warning: Host ‘051 Tienen BO’ has no services associated with it!
Warning: Host ‘052 Brugge’ has no services associated with it!
Warning: Host ‘052 Brugge BO’ has no services associated with it!
Warning: Host ‘053 Wetteren’ has no services associated with it!
Warning: Host ‘053 Wetteren BO’ has no services associated with it!
Warning: Host ‘054 Huy’ has no services associated with it!
Warning: Host ‘054 Huy BO’ has no services associated with it!
Warning: Host '055 Li


#2

OK… I’m sorry about this stupid question I asked…

It appears Nagios doesn’t think it’s relevant to indicate when you have no permission…

Indeed, if I connect with putty on my VM, which I do with root, the reload works fine… same thing if I sudo the reload command… but if I try with the user, it says CONFIG ERROR!

So I have my answer :slight_smile: maybe this can help someone having the same trouble, otherwise it can be deleted for me…

Ch33rz,
Michel