Hallo!
Ich habe SUSE 10.3 und möchte mal testen ob ich zuhause mit meinen Configfiles Nagios richtig einrichten kann:
Der check mit dem "-v" schalter klappt! Sieht man ja.
Dazu habe ich jetzt aber ein paar fragen!
Ich habe nagios rpm Pakete installiert via YasT und das sieht so aus:
Wenn ich im Browser "localhost" aufrufe, erscheint die Nagios Seite! Das ist schonmal super find ich! Wenn ich dort aber etwas anwähle dann mekkert es:
Und starte apache2 neu mit

Vorbereitend hab ich für apache eine httpd.conf.local im Sysconfig eingetragen! Diese ist jedoch ohne Inhalt bisher. Sie liegt unter:
Der Sysconfigwert ist folgender:
Das File mod_userdir.conf hat bereits folgende Anpassungen bekommen:
in dem Verzeichnis liegt eine index.html die eine Weiterleitung ist auf:
Jetzt habe ich keine Ahnung, wie ich diese .htacess erstellen muss für die Pakete die anscheinent zu keinem der Tutorials die ich online finden kann passen. Die verzeichnisse in den Tuts existieren bei mir einfach nicht oder teilweise. Und da komm ich nicht weiter und deswegen verliere ich leider langsam den Spass daran.
Kann mir bitte jemand helfen die Anmeldung, die Berechtigungen und die .htaccess und httpd.conf.local auf die Reihe zu bekommen?
Einen USER Nagios und eine Gruppe Nagios kann ich im Yast nicht anmelden. Es meldet da würde ein Konflikt mit einem existierenden User bestehen?
Und in der nagios.cfg kann man folgenden wert einstellen:
Müssen die User im "contacts.cfg" im Yast angelegt sein?
Auch frage ich mich immernoch, warum das public_html Verzeichnis via Browser zu Erreichen ist.
HILFE!
Wenn ihr weitere Informationen braucht, lasst mich bitte wissen!
PS.: Die configfiles hab ich nach der Anleitung händisch erstellt:
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
bis auf die nagios.cfg <- diese kam mit dem RPM und diese habe ich nur editiert und angepasst.
Gruß
R
Ich habe SUSE 10.3 und möchte mal testen ob ich zuhause mit meinen Configfiles Nagios richtig einrichten kann:
Code:
(ausgabe als root:)
nagios -v /etc/nagios/nagios.cfg
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Checking services...
Checked 6 services.
Checking hosts...
Checked 2 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 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 22 commands.
Checking time periods...
Checked 4 time periods.
Checking extended host info definitions...
Checked 0 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
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
Dazu habe ich jetzt aber ein paar fragen!
Ich habe nagios rpm Pakete installiert via YasT und das sieht so aus:
Ich habe PHP Apache2 und MySQL!rpm -qa |grep nagios
nagios-plugins-1.4.9-19
nagios-www-2.9-48
nagios-2.9-48
nagios-nsca-2.7.2-11
nagiosgrapher-1.6.1RC3-58
nagios-nsca-client-2.7.2-11
nagios-plugins-extras-1.4.9-19
nagios-plugins-sap-ccms-0.7.3-111
nagios-nrpe-2.8.1-50
Wenn ich im Browser "localhost" aufrufe, erscheint die Nagios Seite! Das ist schonmal super find ich! Wenn ich dort aber etwas anwähle dann mekkert es:
Also lade ich die Konfiguration als "SU" manuell:Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.
3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).
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.
Code:
nagios -d /etc/nagios/nagios.cfg
Code:
rcapache2 restart
Jedoch meldet die Seite immernoch die selbe FehlermeldungSyntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) done
Vorbereitend hab ich für apache eine httpd.conf.local im Sysconfig eingetragen! Diese ist jedoch ohne Inhalt bisher. Sie liegt unter:
Code:
/etc/apache2/httpd.conf.local
Code:
APACHE_CONF_INCLUDE_FILES
/etc/apache2/mod_userdir.conf /etc/apache2/httpd.conf.local
Das File mod_userdir.conf hat bereits folgende Anpassungen bekommen:
die Onlineinhalte sollen in "srv/www/htdocs/" liegen. <- Standard?cat mod_userdir.conf
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot easily be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
#
# To rebuild apache with another setting you need to change the
# %userdir define in the spec file.
# not every user's directory should be visible:
UserDir disabled root
# to enable UserDir only for a certain set of users, use this instead:
#UserDir disabled
UserDir enabled disk
# the UserDir directive is actually used inside the virtual hosts, to
# have more control
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
in dem Verzeichnis liegt eine index.html die eine Weiterleitung ist auf:
Weil zunächst das ganze nur dafür konfiguriert sein soll. Für mich mal zum Verstehen und ausprobieren.http://localhost/nagios/
Jetzt habe ich keine Ahnung, wie ich diese .htacess erstellen muss für die Pakete die anscheinent zu keinem der Tutorials die ich online finden kann passen. Die verzeichnisse in den Tuts existieren bei mir einfach nicht oder teilweise. Und da komm ich nicht weiter und deswegen verliere ich leider langsam den Spass daran.
Kann mir bitte jemand helfen die Anmeldung, die Berechtigungen und die .htaccess und httpd.conf.local auf die Reihe zu bekommen?
Einen USER Nagios und eine Gruppe Nagios kann ich im Yast nicht anmelden. Es meldet da würde ein Konflikt mit einem existierenden User bestehen?
Und in der nagios.cfg kann man folgenden wert einstellen:
Muss dieser im YasT angelegt sein?# NAGIOS USER
# This determines the effective user that Nagios should run as.
# You can either supply a username or a UID.
nagios_user=
Müssen die User im "contacts.cfg" im Yast angelegt sein?
Auch frage ich mich immernoch, warum das public_html Verzeichnis via Browser zu Erreichen ist.
HILFE!
Wenn ihr weitere Informationen braucht, lasst mich bitte wissen!
PS.: Die configfiles hab ich nach der Anleitung händisch erstellt:
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
bis auf die nagios.cfg <- diese kam mit dem RPM und diese habe ich nur editiert und angepasst.
Gruß
R