1 |
Tobias Scherbaum schrieb: |
2 |
> Am Freitag, den 12.10.2007, 16:19 +0200 schrieb Boris: |
3 |
> |
4 |
>>> zunächst: Es ist für gewöhnlich einfacher das ganze mit dem |
5 |
>>> Paketmanagement zu erledigen, Ebuilds für Nagios-3* gibts hier: |
6 |
>>> http://blog.scherbaum.info/2007/09/30/nagios-30b4-ebuilds-and-nagios-plugins-1410/ |
7 |
>>> |
8 |
>>> |
9 |
>> Hi Tobi, |
10 |
>> sollt ich die Seite öffters besuchen ;-) ? |
11 |
>> |
12 |
> |
13 |
> scheinbar ;) |
14 |
> |
15 |
> |
16 |
>> bigB ~ # /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg |
17 |
>> |
18 |
>> Nagios 3.0b3 |
19 |
>> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) |
20 |
>> Last Modified: 08-30-2007 |
21 |
>> License: GPL |
22 |
>> |
23 |
>> Reading configuration data... |
24 |
>> |
25 |
>> Error: Unexpected token or statement in file '/etc/nagios/resource.cfg' |
26 |
>> on line 26. |
27 |
>> |
28 |
>> Das wäre dieser hier: |
29 |
>> |
30 |
>> |
31 |
>> 25: # Sets $USER1$ to be the path to the plugins |
32 |
>> 26: $USER1$=/usr/local/nagios/libexec |
33 |
>> |
34 |
> |
35 |
> /usr/local/nagios/libexec gibts, es ist lesbar für den Nutzer nagios? |
36 |
> |
37 |
|
38 |
ja |
39 |
bigB ~ # ls -la /usr/local/nagios/ |
40 |
total 32 |
41 |
drwxr-xr-x 8 nagios nagios 4096 Sep 25 18:34 . |
42 |
drwxr-xr-x 9 root root 4096 Sep 25 18:34 .. |
43 |
drwxrwxr-x 2 nagios nagios 4096 Oct 12 09:43 bin |
44 |
drwxrwxr-x 3 nagios nagios 4096 Oct 12 09:44 etc |
45 |
drwxrwxr-x 2 nagios nagios 4096 Sep 25 19:56 libexec |
46 |
drwxrwxr-x 2 nagios nagios 4096 Oct 12 09:43 sbin |
47 |
drwxrwxr-x 9 nagios nagios 4096 Oct 12 09:43 share |
48 |
drwxrwxr-x 5 nagios nagios 4096 Oct 12 16:33 var |
49 |
|
50 |
|
51 |
> |
52 |
>> Seltsamer weise startet er aber trotzdem: |
53 |
>> |
54 |
>> bigB ~ # /etc/init.d/nagios restart |
55 |
>> Running configuration check...done |
56 |
>> Stopping nagios: done. |
57 |
>> Starting nagios: done. |
58 |
>> |
59 |
> |
60 |
> Auf die Ausgabe würde ich mich nicht zu 100% verlassen, was sagen die |
61 |
> Logfiles? |
62 |
> |
63 |
bigB ~ # tail -f /var/nagios/nagios.log |
64 |
[1192121076] Nagios 3.0b3 starting... (PID=32142) |
65 |
[1192121076] LOG VERSION: 2.0 |
66 |
[1192121076] Lockfile '/var/nagios/nagios.lock' looks like its already |
67 |
held by another instance of Nagios (PID 5743). Bailing out... |
68 |
[1192121080] Nagios 3.0b3 starting... (PID=32156) |
69 |
[1192121080] LOG VERSION: 2.0 |
70 |
[1192121080] Lockfile '/var/nagios/nagios.lock' looks like its already |
71 |
held by another instance of Nagios (PID 5743). Bailing out... |
72 |
[1192123990] Auto-save of retention data completed successfully. |
73 |
[1192127590] Auto-save of retention data completed successfully. |
74 |
[1192130173] Caught SIGTERM, shutting down... |
75 |
[1192130173] Successfully shutdown... (PID=5743) |
76 |
|
77 |
|
78 |
|
79 |
> |
80 |
>> Auch hab ich nun die ganzen hosts.cfg, hostgroups.cfg und services.cfg |
81 |
>> nach gebessert, bzw. erstellt, aber auf |
82 |
>> dem Web-Interface wird trotzdem nichts Angezeigt |
83 |
>> |
84 |
> |
85 |
> Was soll ich sagen ... das Ebuild aus meinem Overlay installiert die |
86 |
> Beispiel-Konfiguration mit - damit hat man erstmal einen |
87 |
> funktionierenden Ausgangspunkt .... |
88 |
> |
89 |
War beim 2.9 auch noch so, wenn mann es selber kombiliert. |
90 |
Vieleicht hab ich auch einfach was verkonfiguriert. |
91 |
Bzw. Wo liest nagios eigentlich die ganzen .cfg ein ? Meine ausser die |
92 |
nagios.cfg ? |
93 |
|
94 |
weil |
95 |
bigB ~ # /usr/local/nagios/bin/nagios -vs /etc/nagios/nagios.cfg |
96 |
|
97 |
Nagios 3.0b3 |
98 |
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) |
99 |
Last Modified: 08-30-2007 |
100 |
License: GPL |
101 |
|
102 |
Reading configuration data... |
103 |
|
104 |
Error: Unexpected token or statement in file '/etc/nagios/resource.cfg' |
105 |
on line 26. |
106 |
Timing information on object configuration processing is listed |
107 |
below. You can use this information to see if precaching your |
108 |
object configuration would be useful. |
109 |
|
110 |
Object Config Source: Config files (uncached) |
111 |
|
112 |
OBJECT CONFIG PROCESSING TIMES (* = Potential for precache savings |
113 |
with -u option) |
114 |
---------------------------------- |
115 |
Read: 0.000417 sec |
116 |
Resolve: 0.000000 sec * |
117 |
Recomb Contactgroups: 0.000001 sec * |
118 |
Recomb Hostgroups: 0.000000 sec * |
119 |
Dup Services: 0.000000 sec * |
120 |
Recomb Servicegroups: 0.000001 sec * |
121 |
Duplicate: 0.000000 sec * |
122 |
Inherit: 0.000001 sec * |
123 |
Recomb Contacts: 0.000000 sec * |
124 |
Sort: 0.000001 sec * |
125 |
Register: 0.000001 sec |
126 |
Free: 0.000019 sec |
127 |
============ |
128 |
TOTAL: 0.000441 sec * = 0.000004 sec (0.91%) estimated |
129 |
savings |
130 |
|
131 |
|
132 |
Mal am So. neu aufsetzen....SeLinux läuft auch nicht und überhaupt, |
133 |
hätte ich es ja heute abgeben sollen *g* |
134 |
VIeleicht dan doch mit ebuild ? |
135 |
|
136 |
|
137 |
> Genug der Werbung ;) |
138 |
> Tobias |
139 |
> |
140 |
> |
141 |
|
142 |
|
143 |
-- |
144 |
|
145 |
--------------------------------------------------------------------- |
146 |
---- boris@×××××××.eu -------- www.voelkle.eu ----------------------- |
147 |
--------------------------------------------------------------------- |
148 |
---- Schlüssel-ID:0x53571272 --- pool.sks-keyservers.net ------------ |
149 |
--------------------------------------------------------------------- |
150 |
---- Fingerprint:BDEA F0DE 7485 0239 0659 D48F 3DC4 3AA9 5357 1272 -- |
151 |
--------------------------------------------------------------------- |