Nagios zeigt keine Status an

G

Gast123

Hallo Leute,

nach dem Wechsel zu Fedora 16 zeigt Nagios auf der Weboberfläche keine Status mehr an.
Es kommt folgende Fehlermeldung:
Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.

Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
Allerdings scheint die Konfigutation in Ordnung zu sein:
Code:
sudo nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
	Checked 17 services.
Checking hosts...
	Checked 2 hosts.
Checking host groups...
	Checked 1 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
	Checked 1 contacts.
Checking contact groups...
	Checked 1 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 29 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

Das Logfile sagt nach dem Start:
Code:
[1323185844] Nagios 3.2.3 starting... (PID=5815)
[1323185844] Local time is Tue Dec 06 16:37:24 CET 2011
[1323185844] LOG VERSION: 2.0
[1323185844] Finished daemonizing... (New PID=5816)

Woran kann es liegen?

Beste Grüße

Schard
 
Hi

Vlt. SELinux problem? Mal deaktivieren.
Existiert die Apache Passwort Datei noch für den User nagios und kann der Apache User diese lesen?
 
Hey remidemi,

die /etc/nagios/passwd existiert und eine http-Anmeldung funktioniert auch.
SELinux ist deaktiviert.
 
Hmm

Irgendwie habe ich trotzdem das Gefühl der Apache da was nicht lesen kann...
Setze mal in /etc/nagios/cgi.cfg use_authentication von =1 auf =0 und reloade dein Nagios + Apache.
 
Gar nichts? Zumindest die Passwort Abfrage beim Aufruf der nagios Seite dürfte nicht mehr kommen!
 
@remidemi: Doch die Passwortabfrage kam noch.
Ich habe dann Nagios komplett entfernt via yum remove nagios und als root ein rm -R /etc/nagios ausgeführt.
Dann habe ich Nagios über yum neu installiert - hatte also die "jungfräuliche" Fedora-Version. Auch hier hat ein Ändern der cgi.cfg nichts an der Anmeldung verändert.

@HeadCrash:
Nein, ich benutze jetzt Fedora 16. Unter Fedora 15 lief alles einwandfrei

Ich werde mich morgen nochmal melden, da ich gerade in meiner unermesslichen Dummheit die /etc/passwd zerschossen habe.

Danke Euch trotzdem schonmal.

Schard
 
So, im Rahmen einer Neuinstallation gleich auf CentOS 6 umgestiegen.:)
Hier läuft Nagios mit meiner Konfiguration problemlos. ?( :D
 

Ähnliche Themen

Nginx als Reverse Proxy für Nextcloud und Emby

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

X startet nichtmehr

NagiosGrapher 1.7.1 funktioniert nicht

Samba 4 AD Member Server

Zurück
Oben