<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Werner Flamme wrote:
<blockquote cite="mid4231761F.5000700@ufz.de" type="cite">
<pre wrap="">Andre Loss schrieb am 11.03.2005 11:02:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I have the same problem: as root the check_nrpe-command give an answer
like "OK...", but as user 'nagios' the answer is "cannot map tcp to
protocol number"
I think, this is not a nagios-problem, then a problem of permissions.
But I don't know, which permissions are wrong... Can anybody help?
Thanx
Andre
</pre>
</blockquote>
<pre wrap=""><!---->
Hi Andre,
I understand this text so that there may be no entry in /etc/services for
nrpe. Otherways you would get "Failed to obtain socket" or likewise.
HTH,
Werner
</pre>
<blockquote type="cite">
<pre wrap="">
Arno Lehmann wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi.
martin wrote:
...
</pre>
<blockquote type="cite">
<pre wrap="">But from console: [root@gucci nagios]#
/usr/lib/nagios/plugins/check_nrpe -H ipaddress -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0
Pls help me, what is wrong? some permission?
</pre>
</blockquote>
<pre wrap="">
Probably. You run nagios as user nagios, I assume, and your console
check is run as root.
su to nagios and try it. Then setup sudo or chenge the file permissions
and retry.
Arno
</pre>
<blockquote type="cite">
<pre wrap="">Thanks Martin
Sorry for my English
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->Hello guys. I run nrpe under xinetd (or inetd) whichever you run. Maybe this will help out. Here is an example file for this:
</pre>
</blockquote>
file name: /etc/xinetd.d/nrpe<br>
# default: on<br>
# description: NRPE<br>
service nrpe<br>
{<br>
flags = REUSE<br>
socket_type = stream <br>
wait = no<br>
user = nagios<br>
server = /usr/sbin/nrpe <b><--location of
nrpe binary</b><br>
server_args = -c /usr/local/nagios/etc/nrpe.cfg
--inetd <b><--location of nrpe config file</b><br>
log_on_failure += USERID<br>
disable = no<br>
only_from = x.x.x.x <b><-- IPs of monitoring
nagios host</b><br>
}<br>
<br>
<br>
</body>
</html>