24.09.2011, 05:23 UTC+2

Sie sind nicht angemeldet.

Nagvis Installationsproblem

-Xylakant-

Schüler

Beiträge: 100

Geburtstag: 11.06.1986 (25)

Geschlecht: Männlich

Anzahl Nagios-Server: 3

Hobbys: Volleyball

Nagios-Version(en): Icinga 1.4

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 200

Anzahl Services: 400

Betriebssystem(e): Ubuntu 10.04.2 LTS

Plugin-Version(en): Nagios-plugins-1.4.15

1

21.09.2011, 12:29

Nagvis Installationsproblem

Hallo,

ich wollte mal Nagvis auf unserem Icinga Server installieren, was auch ordentlich soweit geklappt hat. Nur leider hat das Installationsscript Fehler beim Apache Server gemacht, denn die Log vom Apache sieht beim Zugriff so aus:

Quellcode

1
2
3
4
5
6
7
8
9
10
[Tue Sep 20 17:09:25 2011] [error] [client 10.20.0.188] File does not exist: /usr/local/icinga/share/nagvis
[Tue Sep 20 17:09:29 2011] [error] [client 10.20.0.188] File does not exist: /usr/local/icinga/share/nagvis
[Tue Sep 20 17:19:35 2011] [error] [client 10.20.0.188] File does not exist: /usr/local/icinga/share/nagvis
[Tue Sep 20 17:19:43 2011] [error] [client 10.20.0.188] File does not exist: /usr/local/icinga/share/nagvis
[Tue Sep 20 17:19:51 2011] [error] [client 10.20.0.188] File does not exist: /var/www/nagvis
[Tue Sep 20 17:21:05 2011] [error] [client 10.20.0.188] File does not exist: /var/www/nagvis
[Tue Sep 20 17:21:14 2011] [error] [client 10.20.0.188] File does not exist: /var/www/nagvis
[Wed Sep 21 09:57:12 2011] [error] [client 10.20.0.188] File does not exist: /usr/local/icinga/share/nagvis
[Wed Sep 21 09:57:19 2011] [error] [client 10.20.0.188] File does not exist: /var/www/nagvis
[Wed Sep 21 10:11:06 2011] [error] [client 10.20.0.188] File does not exist: /var/www/nagvis


Die nagvis.conf wird von Apache Server includet mit dem richtigen Pfad.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
root-eu:/etc/apache2/conf.d# vi nagvis.conf
# NagVis Apache2 sample configuration file
#
# #############################################################################

Alias /nagvis "/usr/local/nagvis/share"


  Options FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all

  # To enable Nagios basic auth on NagVis use the following options
  # Just uncomment it. Maybe you need to adjust the path to the
  # Auth user file.
  #
  # If you use the NagVis internal auth mechanism based on the web
  # for you won't need this.
  #
  #AuthName "NagVis Access"
  #AuthType Basic
  #AuthUserFile /usr/local/icinga/etc/htpasswd.users
  #Require valid-user

  # With installed and enabled mod_rewrite there are several redirections
  # available to fix deprecated and/or wrong urls. None of those rules is
  # mandatory to get NagVis working.
  
        RewriteEngine On
        RewriteBase /nagvis

        # Use mod_rewrite for old url redirection even if there are php files which
        # redirect the queries itselfs. In some cases the mod_rewrite redirect
        # is better than the php redirect.
        RewriteCond %{REQUEST_URI} ^/nagvis(/index\.php|/|)(\?.*|)$
        RewriteRule ^(index\.php|)(\?.*|)$ /nagvis/frontend/nagvis-js/$1$2 [R=301,L]
        RewriteCond %{REQUEST_URI} ^/nagvis/config\.php.*$
        RewriteRule ^config\.php(.*) /nagvis/frontend/wui/$1 [R=301,L]

        # Redirect old regular map links
        RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js
        RewriteCond %{QUERY_STRING} map=(.*)
        RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=%1 [R=301,L]

        # Redirect old wui map links
        RewriteCond %{REQUEST_URI} ^/nagvis/frontend/wui
        RewriteCond %{QUERY_STRING} map=(.*)
        RewriteRule ^(.*)$ /nagvis/frontend/wui/index.php?mod=Map&act=edit&show=%1 [R=301,L]

        # Redirect old rotation calls
        RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js
        RewriteCond %{QUERY_STRING} !mod
        RewriteCond %{QUERY_STRING} rotation=(.*)
        RewriteRule ^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Rotation&act=view&show=%1 [R=301,L]
  


Der Pfad von Icinga ist "/usr/local/icinga/". Nagvis ist auch ordentlich installiert am Pfad "/usr/local/nagvis/".
Der Zugriff auf Icinga funktioniert einwandfrei.

Was muss ich noch beachten bei der Installation von Nagvis. Bzw. was ist mein Fehler?

Herzlichen Dank

Wolfgang

Erleuchteter

Beiträge: 5 652

Geschlecht: Männlich

Anzahl Nagios-Server: 2

Nagios-Version(en): 3.2.1

Icinga-Version(en): Icinga 1.5.0

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: >70

Anzahl Services: >200

Betriebssystem(e): SLES10

Plugin-Version(en): 1.4.11

Sonstige Addon's: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.14

2

21.09.2011, 13:27

Welche URL hast du aufgerufen?
Nagios-Doc: Wiki-Format (3.x) oder als (3.0.6)

Icinga-Doc: (de) (en)

PNP-Troubleshooting (de) (en)

-Xylakant-

Schüler

Beiträge: 100

Geburtstag: 11.06.1986 (25)

Geschlecht: Männlich

Anzahl Nagios-Server: 3

Hobbys: Volleyball

Nagios-Version(en): Icinga 1.4

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 200

Anzahl Services: 400

Betriebssystem(e): Ubuntu 10.04.2 LTS

Plugin-Version(en): Nagios-plugins-1.4.15

3

21.09.2011, 15:32

schon die richtige ^^, habs selbst gelöst bekommen. Hab vermutlich irgendwo einen Tippfehler gehabt, denn nach der Neuinstallation gings.

dnsmichi

Meister

Beiträge: 2 531

Geburtstag: 30.05.1983 (28)

Geschlecht: Männlich

Wohnort: Wien

Beruf: DNS & Monitoring Developer

Anzahl Nagios-Server: 4x Icinga prod, 2x test/dev

Nagios-Version(en): s/nagios/icinga/

Icinga-Version(en): 1.5.1 / GIT

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1000+

Anzahl Services: 15000+

Betriebssystem(e): RHEL 5.7 / 6 x64

Plugin-Version(en): 1.4.15

IDO-Version: 1.5.1 / GIT MySQL/Postgresql/Oracle

Sonstige Addon's: PNP 0.6.11, check_mk GIT

4

21.09.2011, 17:39

Zitat von »Wolfgang«

Welche URL hast du aufgerufen?


Zitat von »-Xylakant-«

schon die richtige ^^




dieser *donk* gehoert nur dir ;-)
Icinga 1.5 MySQL,PGSQL,Oracle and IPv6

Demos

http://docs.icinga.org
https://wiki.icinga.org
https://dev.icinga.org

* egrep -v "^#|^$" configfile

Join us online!
irc.freenode.net #icinga-devel

Using Icinga? Tell us!


Fork me on

Ähnliche Themen