[Nagiosplug-help] problem using nrpe CORRECTION
Mitchell K. Smith
mksmith at pa.eplus.com
Thu Mar 20 05:17:02 CET 2003
Look at the /var/log/messages on the Nagios server and the remote host.
You should see some indication that nrpe didn't start or possibly permission denied messages.
-----Original Message-----
From: Mitchell K. Smith
Sent: Thursday, March 20, 2003 8:04 AM
To: Nagios Plugin Help
Subject: RE: [Nagiosplug-help] problem using nrpe
Look carefully at your /etc/xinetd.d/nrpe
The line: server = /usr/sbin/check_nrpe
should probably be: server = /usr/sbin/nrpe
Look at the /var/log/messages on the Nagios server.
You should see some indication that nrpe didn't start.
Mitchell K. Smith
-----Original Message-----
From: Pascal Miquet [mailto:p.miquet at hafiba.fr]
Sent: Thursday, March 20, 2003 3:59 AM
To: Cyrille Mertes
Cc: Nagios Plugin Help
Subject: Re: [Nagiosplug-help] problem using nrpe
Did you try to run "telnet YourNRPEServer 5666" just to know if your
NRPE Server allow you to run such command ?
I've installed NRPE on a LiNUX RH 7.3 box and follow the documentation,
and all were fine.
HTH
Pascal
Le jeu 20/03/2003 à 00:06, Cyrille Mertes a écrit :
> Hi,
>
> I try to use nrpe to run check_proc remotely.
>
> Here are what I did exactly :
>
> On the nagios host :
>
> 1) Installed nrpe source (./configure, make all)
>
> 2) cp check_nrpe in my libexec directory
>
> 3) defined in checkcommands.cfg :
>
> define command{
> command_name check_nrpe
> command_line /virtual/nagios/libexec/check_nrpe -H
> $HOSTADDRESS$ -c $ARG1$
> }
>
> 4) defined in services.cfg
>
> define service{
> use generic-service
> host_name guo
> service_description Sympa
> check_command check_nrpe!check_sympa
> }
>
> On the remote host :
>
> 1) Installed nrpe source (./configure, make all)
>
> 2) cp check_nrpe and check_proc in /usr/sbin
>
> 3) Created nrpe.cfg in /etc with :
>
> server_port=5666
> allowed_hosts=127.0.0.1
> nrpe_user=nagios
> nrpe_group=nagios
> debug=1
> command_timeout=60
> command[check_sympa]=/usr/sbin/check_procs -w 1 -c 1 -C sympa.pl
>
> 4) created /etc/xinetd.d/nrpe with :
>
> # default: on
> # description: NRPE
> service nrpe
> {
> flags = REUSE
> socket_type = stream
> wait = no
> user = nagios
> server = /usr/sbin/check_nrpe
> server_args = -c /etc/nrpe.cfg --inetd
> log_on_failure += USERID
> disable = no
> only_from = 207.139.174.2
> }
>
>
> 5) restart xinetd
>
> If I tried this command on the nagios host :
>
> /virtual/nagios/libexec/check_nrpe -H guo.xxx.com -p 5666 -c check_sympa
>
> CHECK_NRPE: Error receiving data from host.
>
> No firewall on the remote host.
>
> In the nagios web intrface, same error : CHECK_NRPE: Error receiving
> data from host.
>
> Someone know what's wrong ?
>
> Thanks,
>
> Cyrille.
>
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Help
mailing list