PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : nagios probleme unter debian sid



spunz
21.07.03, 09:19
ich verwende nagios aus debian sid, grundsätzlich läuft nagios und die config files schauen ok aus, verglichen mit den beispieldateien der online docu.

wenn ich auf das browser interface einsteige, bekomme ich folgende fehler:


Warning: Monitoring process may not be running!


unter infos kann ich dann folgendes lesen:



Process Commands: It appears as though Nagios is not running, so commands are temporarily unavailable


der service läuft aber und startet ohne fehlermeldung?



will ich eines der cgi programme ausführen (zb host map), kommt folgende meldung:


It appears as though you do not have permission to view information for any of the services you requested...


If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file..

die apache cgi config wurde auch von dpkg erstellt und ist die selbe wie in der doku. in den log files von apache und nagios sind keine fehler zu entdecken, suche ich die fehler in googe/nagios faq/nagios forum/doku kann ich leider nichts finden das mich weiterbringt. :(

ist das debian paket mist oder habe ich etwas übersehen? ich hab auch hier öffters gelesen das man nagios lieber aus den sourcen selberbauen soll, nur will ich nicht unbedingt das paketsystem umgehen.

Bauchi
21.07.03, 09:49
ich hab nagios selber zusammengebaut und es funzt wunderbar .. hast du mal die cgi's von der kommandozeile aus aufgerufen??

mach erstmal ein
export REMOTE_USER=einerdeinernagioscontacts; ./einesder.cgi's

spunz
21.07.03, 10:42
WSTEST:/usr/lib/cgi-bin/nagios# export REMOTE_USER nagiosadmin; ./cmd.cgi


ergibt:


getcgivars(): Unsupported REQUEST_METHOD -> ''

I'm guessing you're trying to execute the CGI from a command line.
In order to do that, you need to set the REQUEST_METHOD environment
variable to either "GET", "HEAD", or "POST". When using the
GET and HEAD methods, arguments can be passed to the CGI
by setting the "QUERY_STRING" environment variable. If you're
using the POST method, data is read from standard input. Also of
note: if you've enabled authentication in the CGIs, you must set the
"REMOTE_USER" environment variable to be the name of the user you're
"authenticated" as.


kapier ich jetzt nicht ganz, muß noch get, head oder post mitgegeben werden?

Bauchi
21.07.03, 11:29
jo, steht ja auch in der error message ;)

machs einfach mit get ...

spunz
21.07.03, 11:35
es kommt die selbe fehlermeldung wie im webinterface, der nagios dienst startet aber ohne fehlermeldung. ebenso der config file check läuft fehlerfrei durch:



WSTEST:/usr/lib/cgi-bin/nagios# export REMOTE_USER=nagiosadmin; REQUEST_METHOD=GET ./cmd.cgi
Content-type: text/html

<html>
<head>
<title>
External Command Interface
</title>
<LINK REL='stylesheet' TYPE='text/css' HREF='/nagios/stylesheets/cmd.css'>
</head>
<body CLASS='cmd'>

<!-- Produced by Nagios (http://www.nagios.org). Copyright (c) 1999-2002 Ethan Galstad. -->
<table border=0 width=100%>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>External Command Interface</DIV>
Last Updated: Mon Jul 21 13:44:43 CEST 2003<BR>
Nagios&reg; - <A HREF='http://www.nagios.org' TARGET='_new' CLASS='homepageURL'>www.nagios.org</A><B
R>
Logged in as <i>nagiosadmin</i><BR>
<DIV CLASS='infoBoxBadProcStatus'>Warning: Monitoring process may not be running!<BR>Click <A HREF='
extinfo.cgi?type=0'>here</A> for more info.</DIV></TD></TR>
</TABLE>
</td>
<td align=center valign=top width=33%>
</td>
<td align=right valign=bottom width=33%>
</td>
</tr>
</table>
<P><DIV CLASS='errorMessage'>Error: No command was specified</DIV></P>

<!-- Produced by Nagios (http://www.nagios.org). Copyright (c) 1999-2002 Ethan Galstad. -->
</body>
</html>
WSTEST:/usr/lib/cgi-bin/nagios#