[Nagiosplug-help] Fail to telnet NRPE port (5666)
eugene
eugene at mnc.com.my
Tue May 17 18:18:19 CEST 2005
Nagios FAQ
http://www.nagios.org/faqs/viewfaq.php?faq_id=261&expand=false&showdesc=false
I was thinking the cause of tcp wrapper, but actually i am running from
xined, should be any tcp wrapper
------------------------------------------------------------------------------------------
I get this while telnet port 5666
Trying X.X.X.X...
Connected to X.X.X.X.
Escape character is '^]'.
Connection closed by foreign host.
I do this at my NRPE client, is it a proper way?
1) Create nrpe file > /etc/xinetd.d/nrpe
# default: on
# description: NRPE
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
user = nagios
server = /usr/local/nagios/nrpe
server_args = -c /usr/local/nagios/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 192.168.10.50
}
2) set port 5666 > /etc/services
nrpe 5666/tcp # NRPE
3) /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -i
------------------------------------------------------------------------------------------
I am using hard code from nrpe.cfg,
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c
30,25,20
Define in Nagios server
1) in checkcommands.cfg
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
2) # Service definition
define service{
use generic-service
host_name Testing
service_description Check Load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups Support-Team
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!check_load
}
------------------------------------------------------------------------------------------
What are the things i left? Is there any mismatch of configuration
Thanks you for the reply but i still need your help :)
Regards,
Eugene
----- Original Message -----
From: "Guy Waugh" <gwaugh at scu.edu.au>
To: "eugene" <eugene at mnc.com.my>
Cc: <nagiosplug-help at lists.sourceforge.net>
Sent: Wednesday, May 18, 2005 8:01 AM
Subject: Re: [Nagiosplug-help] Fail to telnet NRPE port (5666)
> eugene wrote:
>> When i try to telnet to port 5666 on my remote server, it will success
>> but the telnet will drop after a few second
>
> When you say it is successful, do you mean that you see something like
> this:
>
> [root at nagios-server /]# telnet nrpe-client 5666
> Trying x.x.x.x...
> Connected to nrpe-client.domain.com (x.x.x.x).
> Escape character is '^]'.
>
>
>
> If you do see something like this (i.e. 'Connected to ...'), then you are
> able to telnet to the host on that port.
>
>> Can i know what is the problem? Anyone who is encounter this problem?
>> I am having difficuilties to use NRPE, anyone has NRPE documentation? I
>> had read its own documentation and also try to work on it
>> , but still encounter failure
>
> What failure are you experiencing? What exactly is the problem? Are you
> using NRPE standalone or through inetd/xinetd? What operating system(s)
> are you using?
>
> Regards,
> Guy.
>
>> Thank You....
>> *Eugene Than
>> HelpDesk Support, Network and System
>> MNC Wireless Berhad (635884-T)
>> No. 45, Block A, Level 3, Unit 3.03,
>> Medan Setia 1, Plaza Damansara,
>> Bukit Damansara, 50490 Kuala Lumpur
>>
>> M: +6012-613 4855
>> T: +603-2095 6063
>> F: +603-2093 5909
>> E: eugene at mnc.com.my <mailto:eugene at mnc.com.my>
>> W: www.mnc.com.my <http://www.mnc.com.my>
>> Mobile Portal: www.gospecial.com <http://www.gospecial.com>
>> *
>> ------------------------------------------------------------------------
>> This email is intended only for the use of the individual or entity named
>> above and may contain information that is confidential and/or privileged.
>> If you are not the intended recipient, you are hereby notified that any
>> review, retransmission, dissemination, distribution, copying of, or other
>> use of, or taking of any action in reliance upon this email is strictly
>> prohibited. When addressed to our clients, any opinions or advice
>> contained in this email are subject to the terms and conditions expressed
>> in the governing MNC client engagement letter. If you have received this
>> email in error, please notify us immediately by return email or telephone
>> +603-2095 6063 and destroy the original message. Thank you.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> 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