Code

all images now in /var/lib/nagvis/images
[pkg-nagvis.git] / debian / patches / 10_pathnames.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 10_pathnames.dpatch by Wolfgang Barth <wob@swobspace.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
7 @DPATCH@
8 diff -urNad trunk~/etc/nagvis.ini.php-sample trunk/etc/nagvis.ini.php-sample
9 --- trunk~/etc/nagvis.ini.php-sample    2009-11-27 16:41:36.000000000 +0100
10 +++ trunk/etc/nagvis.ini.php-sample     2009-11-29 19:09:27.000000000 +0100
11 @@ -24,17 +24,26 @@
12  
13  ; Path definitions
14  [paths]
15 -; absolute physical NagVis path
16 -;base="/usr/local/nagios/share/nagvis/"
17 +base="/usr/share/nagvis/htdocs/"
18 +cfg="/etc/nagvis/"
19 +var="/var/cache/nagvis/"
20 +mapcfg="/etc/nagvis/maps/"
21 +images="/var/lib/nagvis/images/"
22 +icon="/var/lib/nagvis/images/iconsets/"
23 +shape="/var/lib/nagvis/images/shapes/"
24 +map="/var/lib/nagvis/images/maps/"
25 +headertemplate="/etc/nagvis/templates/header/"
26 +hovertemplate="/etc/nagvis/templates/hover/"
27 +contexttemplate="/etc/nagvis/templates/context/"
28  ; absolute html NagVis path
29 -;htmlbase="/nagios/nagvis"
30 +htmlbase="/nagvis"
31  ; absolute html NagVis cgi path
32 -;htmlcgi="/nagios/cgi-bin"
33 +htmlcgi="/nagios3/cgi-bin"
34  
35  ; Default values which get inherited to the maps and its objects
36  [defaults]
37  ; default backend (id of the default backend)
38 -;backend="ndomy_1"
39 +backend="ndomy_1"
40  ; background color of maps
41  ;backgroundcolor="#fff"
42  ; Enable/Disable the context menu on map objects. With the context menu you are
43 @@ -123,7 +132,7 @@
44  ; Default root host (NagVis uses this if it can't detect it via NDO)
45  ;defaultroot=""
46  ; Path to the graphviz binaries (dot,neato,...); Only needed if not in ENV PATH
47 -;graphvizpath="/usr/bin/"
48 +graphvizpath="/usr/bin"
49  ; Show the automap in the lists (Map index and dropdown menu in header)
50  ;showinlists=1
51  
52 @@ -158,8 +167,8 @@
53  ; ----------------------------
54  
55  ; Example definition of a livestatus backend. In this case the backend_id is live_1
56 -[backend_live_1]
57 -backendtype="mklivestatus"
58 +;[backend_live_1]
59 +;backendtype="mklivestatus"
60  ;socket="unix:/usr/local/nagios/var/rw/live"
61  
62  ; in this example the ID of the Backend is "ndomy_1" you can define another ID.
63 @@ -186,9 +195,9 @@
64  ;htmlcgi="/nagios/cgi-bin"
65  
66  ; in this example the ID of the Backend is "ndo2fs_1" you can define another ID.
67 -[backend_ndo2fs_1]
68 +;[backend_ndo2fs_1]
69  ; type of backend - MUST be set
70 -backendtype="ndo2fs"
71 +;backendtype="ndo2fs"
72  ; Path to the ndo2fs var directory where the VOLATILE and PERSISTENT directories are
73  ;path="/usr/local/ndo2fs/var"
74  ; Name of the instance to get the data from
75 @@ -198,37 +207,18 @@
76  ; path to the cgi-bin of this backend
77  ;htmlcgi="/nagios/cgi-bin"
78  
79 -; in this example the ID of the Backend is "merlinmy_1" you can define another ID.
80 -[backend_merlinmy_1]
81 -; type of backend - MUST be set
82 -backendtype="merlinmy"
83 -; hostname for Merlin db
84 -;dbhost="localhost"
85 -; portname for Merlin db
86 -;dbport=3306
87 -; database name for Merlin db
88 -;dbname="merlin"
89 -; username for Merlin db
90 -;dbuser="merlin"
91 -; password for Merlin db
92 -;dbpass="merlin"
93 -; maximum delay of the Merlin Database in seconds
94 -;maxtimewithoutupdate=180
95 -; path to the cgi-bin of this backend
96 -;htmlcgi="/nagios/cgi-bin"
97 -
98  ; ----------------------------
99  ; Rotation pool definitions
100  ; ----------------------------
101  
102  ; in this example the browser switches between the maps demo and demo2 every 15
103  ; seconds, the rotation is enabled by url: index.php?rotation=demo
104 -[rotation_demo]
105 +;[rotation_demo]
106  ; These steps are rotated. The "Demo2:" is a label which is being displayed in
107  ; the index pages rotation list.
108 -maps="demo,Demo2:demo2"
109 +;maps="demo,Demo2:demo2"
110  ; rotation interval (seconds)
111 -interval=15
112 +;interval=15
113  
114  ; ------------------------------------------------------------------------------
115  ; Below you find some advanced stuff