Gentoo Archives: gentoo-user-de

From: chris topher <christopher@××××××.ph>
To: gentoo-user-de@l.g.o
Subject: [gentoo-user-de] Nagios Installation
Date: Wed, 19 Aug 2009 09:28:34
Message-Id: 20090819022830.2FF54E3A@resin09.mta.everyone.net
1
Hallo,

vielleicht hat jmd von euch eine Idee, wo der Fehler meine Nagios Konfiguration liegt.

 
Die Config sieht wie folgt aus:

2
3

Die /etc/apache2/httpd.conf enth��lt folgenden Eintrag:

4
5  
6
7

Include

8 /etc/apache2/modules.d/*.conf

9
10

 

11
12

Somit ist ja auch folgende betroffen:

13
14  
15
16

/etc/apache2/modules.d/99_nagios.conf die wie folgt

17 aussieht:

18
19  
20
21

<IfDefine NAGIOS>

22
23

        ScriptAlias

24 /nagios/cgi-bin/ /usr/lib/nagios/cgi-bin/

25
26

        <Directory

27 "/usr/lib/nagios/cgi-bin/">

28
29

               

30 Options FollowSymLinks

31
32

               

33 AllowOverride None

34
35

               

36 Options ExecCGI

37
38

               

39 Order allow,deny

40
41

               

42 Allow from all

43
44

               

45 AuthName "Nagios Access"

46
47

               

48 AuthType Basic

49
50

               

51 AuthUserFile /etc/nagios/auth.users

52
53

               

54 Require user nagiosadmin

55
56

       

57 </Directory>

58
59

       

60 Alias /nagios /usr/share/nagios/htdocs

61
62

       

63 <Directory "/usr/share/nagios/htdocs">

64
65

               

66 Options FollowSymLinks

67
68

        

69        AllowOverride None

70
71

               

72 Order allow,deny

73
74

               

75 Allow from all

76
77

               

78 AuthName "Nagios Access"

79
80

               

81 AuthType Basic

82
83

               

84 AuthUserFile /etc/nagios/auth.users

85
86

               

87 Require user nagiosadmin

88
89

       

90 </Directory>

91
92

</IfDefine>

93
94  
95
96

Laut Doku l��sst sich via http://localhost/nagios/

97 nun das Webinterface aufrufen ���funzt nicht.

98
99

Gehe ich ��ber http://localhost/nagios/cgi-bin

100 kommt zumindest die user authorisation Abfrage, dabei erscheint folgende
101 Ausgabe:

102
103

~

104
105

Internal Server Error

106
107

The Server

108 encountered an internal error or misconfiguration ans was unable to complete
109 your request.

110
111

.

112
113

.

114
115

.

116
117

Apache

118 Server at localhost Port 80

119
120

~

121
122

 

123
124

Nun findet sich in der /var/log/apache2/error_log folgender

125 Eintrag:

126
127  
128
129

[Tue Aug 18 18:51:54 2009] [error] [client 127.0.0.1]

130 (13)Permission denied: Could not open password file: /etc/nagios/auth.users,
131 bzw. wenn ich ��ber http://localhost/nagios
132 gehe folgender Eintrag:

133
134  
135
136

[Tue Aug 18

137 15:18:11 2009] [error] [client 172.22.254.59] File does not exist:
138 /var/www/localhost/htdocs/nagios

139
140

 

141
142

Folgende Berechtigungen sind gesetzt:

143
144

-rw-------

145 1 nagios root 26 Aug 17 12:20 /etc/nagios/auth.users

146
147

/usr/share/nagios/htdocs/.htaccess

148
149

-rw-r--r--

150 1 root root 96 Aug 14 12:32 /usr/share/nagios/htdocs/.htaccess

151
152

/usr/lib/nagios/cgi-bin/.htaccess

153
154

-rw-r--r--

155 1 nagios root 95 Aug 14 12:31 /usr/lib/nagios/cgi-bin/.htaccess

156
157

Hat jmd von euch einen Tipp wo ich ansetzen kann oder gar eine L��sung des Problems parat?

Gru��,
Chris
 
    Get your free mymail.ph account now!
----------==[  http://mymail.ph  ]==----------

Replies

Subject Author
Re: [gentoo-user-de] Nagios Installation Tobias Scherbaum <dertobi123@g.o>