21.06.2011, 22:18 UTC+2

Sie sind nicht angemeldet.

OMD 0.48 mod_gearman Return code of 127

illo

Anfänger

Beiträge: 4

Anzahl Nagios-Server: 1

Nagios-Version(en): 3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 1000

Anzahl Services: 2000

Betriebssystem(e): Suse

Plugin-Version(en): 1

NDO-Version: 1

1

Gestern, 17:20

OMD 0.48 mod_gearman Return code of 127

Hallo,

ich hoffe ihr könnt mir weiterhelfen, ich teste gerade OMD 0.48 und will dort insbeseondere mod_gearman nutzen.

schaut man sich die Informationen in den logs an, so arbeitet auch der Worker und bekommt auch die entsprechenden Services und Hosts die überprüft werden sollen.

Allerindings werden die Tests nicht sauber ausgeführt, wenn man ins Nagios blickt erscheint nur.

CRITICAL: Return code of 127 is out of bounds. Make sure the plugin you're trying to run actually exists.

Allerdings existieren die Plugins und auch unter dem entsprechenden Pfad... ich habe bestimmt nur einen Denkfehler gemacht.

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
###############################################################################
#
#  Mod-Gearman Worker - distribute checks with gearman
#
#  Copyright (c) 2010 Sven Nierlein
#
#  Standalone Worker Config
#
###############################################################################

# Identifier, hostname will be used if undefined
#identifier=hostname

# use debug to increase the verbosity of the module.
# Possible values are:
#     0 = only errors
#     1 = debug messages
#     2 = trace messages
#     3 = trace and all gearman related logs are going to stdout.
# Default is 0.
debug=1


# server address is set by "omd config"
# please change port only by using the "omd config" command.
config=/omd/sites/worker1/etc/mod-gearman/port.conf


# defines if the module should distribute execution of
# eventhandlers.
eventhandler=yes


# defines if the module should distribute execution of
# service checks.
services=yes


# defines if the module should distribute execution of
# host checks.
hosts=yes


# sets a list of hostgroups which will go into seperate
# queues. Either specify a comma seperated list or use
# multiple lines.
#hostgroups=name1
#hostgroups=name2,name3


# sets a list of servicegroups which will go into seperate
# queues.
#servicegroups=name1,name2,name3

# enables or disables encryption. It is strongly
# advised to not disable encryption. Anybody will be
# able to inject packages to your worker.
# Encryption is enabled by default and you have to
# explicitly disable it.
# When using encryption, you will either have to
# specify a shared password with key=... or a
# keyfile with keyfile=...
# Default is On.
encryption=yes

# The shared password will be read from this file.
# Use either key or keyfile. Only the first 32
# characters will be used.
keyfile=/omd/sites/worker1/etc/mod-gearman/secret.key

# Path to the logfile.
logfile=/omd/sites/worker1/var/log/gearman/worker.log

# Minimum number of worker processes which should
# run at any time.
min-worker=3

# Maximum number of worker processes which should
# run at any time. You may set this equal to
# min-worker setting to disable dynamic starting of
# workers. When setting this to 1, all services from
# this worker will be executed one after another.
max-worker=50

# idling worker will terminate after this amount of seconds
# until min-worker is reached
idle-timeout=10

# worker will terminate after this amount of jobs done
max-jobs=500

# defined the rate of spawed worker per second as long
# as there are jobs waiting
spawn-rate=1

# Use this option to disable an extra fork for each plugin execution. This option
# will reduce the load on the worker host.
fork_on_exec=no


server.cfg

#
#  Mod-Gearman - distribute checks with gearman
#
#  Copyright (c) 2010 Sven Nierlein
#
#  Mod-Gearman NEB Module Config
#

# use debug to increase the verbosity of the module.
# Possible values are:
#     0 = only errors
#     1 = debug messages
#     2 = trace messages
#     3 = trace and all gearman related logs are going to stdout.
# Default is 0.
debug=1

# set the way of logging
# Possible values are:
#     automatic
#          -> logfile when a logfile is specified
#          -> stdout for tools
#     file
#          -> use logfile
#     stdout
#           -> just print all messages to stdout
#     core
#           -> use nagios internal loging (not thread safe! Use with care)
#     syslog
#           -> use syslog for all log events
logmode=automatic

# Path to the logfile.
logfile=/omd/sites/gearman/var/log/gearman/neb.log

# server address is set by "omd config"
# please change port only by using the "omd config" command.
config=/omd/sites/gearman/etc/mod-gearman/port.conf


# defines if the module should distribute execution of
# eventhandlers.
eventhandler=yes


# defines if the module should distribute execution of
# service checks.
services=yes


# defines if the module should distribute execution of
# host checks.
hosts=yes


# sets a list of hostgroups which will go into seperate
# queues. Either specify a comma seperated list or use
# multiple lines.
#hostgroups=name1
#hostgroups=name2,name3


# sets a list of servicegroups which will go into seperate
# queues.
#servicegroups=name1,name2,name3

# Set this to 'no' if you want Mod-Gearman to only take care about
# servicechecks. No hostchecks will be processed by Mod-Gearman. Use
# this option to disable hostchecks and still have the possibility to
# use hostgroups for easy configuration of your services.
# If set to yes, you still have to define which hostchecks should be
# processed by either using 'hosts' or the 'hostgroups' option.
# Default is Yes.
do_hostchecks=yes

# enables or disables encryption. It is strongly
# advised to not disable encryption. Anybody will be
# able to inject packages to your worker.
# Encryption is enabled by default and you have to
# explicitly disable it.
# When using encryption, you will either have to
# specify a shared password with key=... or a
# keyfile with keyfile=...
# Default is On.
encryption=yes


# A shared password which will be used for
# encryption of data pakets. Should be at least 8
# bytes long. Maximum length is 32 characters.
#key=

# The shared password will be read from this file.
# Use either key or keyfile. Only the first 32
# characters will be used.
keyfile=/omd/sites/gearman/etc/mod-gearman/secret.key

# sets a list of hostgroups which will not be executed
# by gearman. They are just passed through.
# Default is none
localhostgroups=


# sets a list of servicegroups which will not be executed
# by gearman. They are just passed through.
# Default is none
localservicegroups=


# Number of result worker threads. Usually one is
# enough. You may increase the value if your
# result queue is not processed fast enough.
# Default: 1
result_workers=1


# defines if the module should distribute perfdata
# to gearman.
# Note: processing of perfdata is not part of
# mod_gearman. You will need additional worker for
# handling performance data. For example: pnp4nagios
# Performance data is just written to the gearman
# queue.
# Default no
config=/omd/sites/gearman/etc/mod-gearman/perfdata.conf

sni

Profi

Beiträge: 648

Geschlecht: Männlich

Wohnort: München

Anzahl Nagios-Server: viele

Nagios-Version(en): 2.* / 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: viele

Anzahl Services: viele

Betriebssystem(e): viele

Plugin-Version(en): 1.4.11

Sonstige Addon's: Thruk, ModGearman

2

Gestern, 17:47

CRITICAL: Return code of 127 is out of bounds. Make sure the plugin you're trying to run actually exists


Wenn das die komplette Meldung ist, dann werden die Checks nach wie vor von Nagios ausgeführt. Würden sie über Gearman laufen, wäre noch der Worker Name mit dabei.
Ist denn das NEB Modul geladen und konfiguriert?

illo

Anfänger

Beiträge: 4

Anzahl Nagios-Server: 1

Nagios-Version(en): 3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 1000

Anzahl Services: 2000

Betriebssystem(e): Suse

Plugin-Version(en): 1

NDO-Version: 1

3

Heute, 07:11

Oh entschuldigung. Die komplette Meldung lautet

CRITICAL: Return code of 127 is out of bounds. Make sure the plugin you're trying to run actually exists. (worker: worker1)

sni

Profi

Beiträge: 648

Geschlecht: Männlich

Wohnort: München

Anzahl Nagios-Server: viele

Nagios-Version(en): 2.* / 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: viele

Anzahl Services: viele

Betriebssystem(e): viele

Plugin-Version(en): 1.4.11

Sonstige Addon's: Thruk, ModGearman

4

Heute, 09:35

Wenn du in Thruk auf den Service/Host gehst, müsste (richtiger User vorrausgesetzt) ganz unten die volle Kommandozeile stehen. Kannst du die als Siteuser ausführen?

illo

Anfänger

Beiträge: 4

Anzahl Nagios-Server: 1

Nagios-Version(en): 3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 1000

Anzahl Services: 2000

Betriebssystem(e): Suse

Plugin-Version(en): 1

NDO-Version: 1

5

Heute, 10:06

Vielen Dank der Tipp hat mich weiter gebracht, der auf gerufene Pfad unter denen die Plugins gesucht wurden waren falsch.

Ähnliche Themen