PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Nagios start probleme



yepemc
28.10.05, 13:27
hi....
ich habe heute Nagios auf meinem PC aufgesetzt (Debian 2.6kernel)

nachdem ich die Grundkonfiguration durchgeführt habe und nagios mit folgendem befehl testet habe

/usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg

kommt diese Meldung:

Nagios 2.0b4
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
Last Modified: 08-02-2005
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Error: There are no host groups defined!
Checked 0 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: Service notification command 'notify-by-email' specified for contact 'nagios' is not defined anywhere!
Error: Host notification command 'host-notify-by-email' specified for contact 'nagios' is not defined anywhere!
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 16 commands.
Checking time periods...
Checked 1 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: 3


wäre nett wenn mir einer sagen könnte wie ich die 3 errors rausbekomme

Danke im Voraus

marce
28.10.05, 14:49
Lesen kannst Du aber schon?


edit: was überlesen

yepemc
28.10.05, 14:57
ja ich denke schon das ich lesen kann...
aber ich weiß nicht wie ich den fehler beheben kann
helf mir doch mal bitte auf die sprünge... wenn du es erkannt

marce
28.10.05, 15:09
Checking host groups...
Error: There are no host groups defined!
Checked 0 host groups.
Du musst in der Datei hostgroups.cfg die zu überwachenden Hosts min. 1 Gruppe zu weisen bzw. es muss min. 1 Gruppe mit min 1. zu überwachendem Host geben...


Checking contacts...
Error: Service notification command 'notify-by-email' specified for contact 'nagios' is not defined anywhere!
Error: Host notification command 'host-notify-by-email' specified for contact 'nagios' is not defined anywhere!
Checked 1 contacts.
Schau mal nach, ob (bei mir) in der misccommands.cfg das definiert ist...

-> Lesen, steht doch alles da, was ihn stört... :-)

yepemc
28.10.05, 17:01
ohje :-S der pfad zu den beiden *.cfg waren nicht richtig angegeben...
aber jetzt läuft er... danke

weißt du zufällig warum ich nicht wenn ich im webinterface bin und die passwort frage kommt micht nicht anmelden kann?
hab eine htpasswd erstellt im verzeichnis /etc/nagios
der user "nagios" ist auch einer contactgroup zugeteilt und in der services.cfg und in der hosts.cfg als contact_groups eingetragen..


[Fri Oct 28 17:52:01 2005] [error] [client 192.168.200.18] access to /nagios/cgi-bin/tac.cgi failed, reason: user nagios not allowed access

marce
28.10.05, 17:20
welche Rechte hat denn die Datei?

yepemc
31.10.05, 08:34
[Mon Oct 31 09:29:32 2005] [error] [client 192.168.200.16] access to /nagios/cgi-bin/tac.cgi failed, reason: unknown require directive:"vaild-user"
[Mon Oct 31 09:29:32 2005] [error] [client 192.168.200.16] access to /nagios/cgi-bin/tac.cgi failed, reason: user tjc not allowed access


also ich hab irgendwie das gefühl das da was mit den *.cgi pfad nicht ganz passt...
das folgende script habe ich in die httpd.conf geschrieben

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
AllowOverride AuthConfig
Options ExecCGI
SetHandler cgi-script
Order allow,deny
Allow from 192.168.200.0/24
</Directory>

Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from 192.168.200.0/24
</Directory>

wo sich aber auch diese dateien befinden

-rwxrwxr-x 1 nagios nagios 173372 2005-10-28 10:11 avail.cgi
-rwxrwxr-x 1 nagios nagios 172724 2005-10-28 10:11 cmd.cgi
-rwxrwxr-x 1 nagios nagios 132956 2005-10-28 10:11 config.cgi
-rwxrwxr-x 1 nagios nagios 191732 2005-10-28 10:11 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 119548 2005-10-28 10:11 history.cgi
-rwxrwxr-x 1 nagios nagios 96 2005-10-28 11:29 .htaccess
-rwxrwxr-x 1 nagios nagios 116092 2005-10-28 10:11 notifications.cgi
-rwxrwxr-x 1 nagios nagios 116008 2005-10-28 10:11 outages.cgi
-rwxrwxr-x 1 nagios nagios 115708 2005-10-28 10:11 showlog.cgi
-rwxrwxr-x 1 nagios nagios 173384 2005-10-28 10:11 status.cgi
-rwxrwxr-x 1 nagios nagios 130044 2005-10-28 10:11 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 115452 2005-10-28 10:11 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 137500 2005-10-28 10:11 summary.cgi
-rwxrwxr-x 1 nagios nagios 133320 2005-10-28 10:11 tac.cgi
alien19:/usr/local/nagios/sbin#

marce
31.10.05, 08:37
SetHandler cgi-script

... und was soll er als cgi-script handlen? Ich finde, da fehlt was...

marce
31.10.05, 08:40
[Mon Oct 31 09:29:32 2005] [error] [client 192.168.200.16] access to /nagios/cgi-bin/tac.cgi failed, reason: unknown require directive:"vaild-user"

vaild-user?

yepemc
31.10.05, 08:44
hmm gute frage...
also nach dem buch Wolfgang Barth soll das so dort stehen aber habs gerade auskommentiert da ich nen 1.3 hab und das für den apache 2.0 ist.
ändert aber auch nichts ander der fehlermedung

yepemc
31.10.05, 08:50
tippfehler valid-user :-S
jetzt funktioniert das webinterface

danke :-)