Page 1 of 1

Startprobleme mit Nagios

Posted: 2004-07-25 13:01
by in flames
Hallo,

ich habe folgendes Problem beim starten von nagios:
/etc/init.d/nagios start
Ausgabe:
No lock file found in /usr/local/nagios/var/nagios.lock
Das ganze kommt auch bei stop/status

So nun habe ich dieses File per Hand erstellt, nun sieht es so aus, beim Befehl start:

Starting network monitor: nagios
ERROR: List of process IDs must follow -p.
********* simple selection ********* ********* selection by list *********
-A all processes -C by command name
-N negate selection -G by real group ID (supports names)
-a all w/ tty except session leaders -U by real user ID (supports names)
-d all except session leaders -g by session leader OR by group name
-e all processes -p by process ID
T all processes on this terminal -s processes in the sessions given
a all w/ tty, including other users -t by tty
g all, even group leaders! -u by effective user ID (supports names)
r only running processes U processes for specified users
x processes w/o controlling ttys t by tty
*********** output format ********** *********** long options ***********
-o,o user-defined -f full --Group --User --pid --cols
-j,j job control s signal --group --user --sid --rows
-O,O preloaded -o v virtual memory --cumulative --format --deselect
-l,l long u user-oriented --sort --tty --forest --version
X registers --heading --no-heading
********* misc options *********
-V,V show version L list format codes f ASCII art forest
-m,m show threads S children in sum -y change -l format
-n,N set namelist file c true command name n numeric WCHAN,UID
-w,w wide output e show environment -H process heirarchy
debian:/usr/local/nagios/var#
Vielen Dank

Re: Startprobleme mit Nagios

Posted: 2004-07-25 14:54
by floschi
Das File _nicht_ selbst erstellen! Hat der Daemon denn die benötigten Rechte für das Verzeichnis, in das er das File schreiben will?

Re: Startprobleme mit Nagios

Posted: 2004-07-25 15:35
by in flames
Ja, habe mal 777 probiert, funktioniert leider trotzdem nicht

Re: Startprobleme mit Nagios

Posted: 2004-07-25 15:45
by captaincrunch
Rätselratenderweise: die Verzeichnisrechte passen hinten und vorne nicht.

Re: Startprobleme mit Nagios

Posted: 2004-07-25 17:49
by in flames
Und was genau?

Ich hab nagios auf den Benutzer nagios gechowned das Verzeichnis var auf 777 festgelegt und dann gestartet.

Das logfile wird ja auch geschrieben

Re: Startprobleme mit Nagios

Posted: 2004-07-25 18:38
by captaincrunch
Und was genau?
Ich will den Spruch mit der Glaskugel ja nicht überstrapazieren, aber du lässt mir/uns hier anders herzlich wenig andere Chancen. :roll:

Re: Startprobleme mit Nagios

Posted: 2004-07-25 22:34
by in flames
In den logs steht ja leider auch rein garnichts....und ich bin streng nach Anleitung vorgegangen