Nagios communication - NRPE doubt

Martin Melin mmelin at gmail.com
Tue Oct 20 19:30:47 CEST 2009


That's because you're running nrpe with inetd and not as a standalone
daemon. inetd will use /etc/services and the nrpe.cfg entry won't have an
effect.

Regards,
Martin Melin

On Tue, Oct 20, 2009 at 7:04 PM, akp geek <akpgeek at gmail.com> wrote:

> Thanks so much Marc..
> I did the following
>
> 1. I changed the port in /etc/services to 5777
> 2. I disabled and enabled the service using
>         ./svcadm disable  /network/nrpe/tcp:default  and ./svcadm enable
> /network/nrpe/tcp:default
> 3. But I have not changed nrpe.cfg
>
> 4. From the nagios server I did the following and it worked
>     ./check_nrpe -H 10.112.161.130 -c check_users -p 5777
>
> It worked fine. confusing part is I did not have to change the nrpe.cfg
>
> Any suggestions, why it's working ?
>
> Regards
>
>
> On Tue, Oct 20, 2009 at 11:53 AM, Marc Powell <marc at ena.com> wrote:
>
>>
>> On Oct 20, 2009, at 10:32 AM, akp geek wrote:
>>
>> > Hi all
>> >                   I have a question on how NRPE works. I have
>> > installed Nagios on one server1 and Nrpe on server2. they are on the
>> > same subnet.
>> >
>> > the way I execute the commands on the server2 is  Server1:nrpe!
>> > commandonServer2
>> >
>> > It works fine now. both servers are on the same subnet. But if I
>> > would like to monitor a server outside the firewall, Is there
>> > particular port that needs to be opened or how does that
>> > communication work?
>>
>> Nagios calls check_nrpe locally which contacts NRPE on the remote host
>> on the port specified by the check_nrpe command line (look at the
>> command{} definition for nrpe). You can change the port that NRPE uses
>> in nrpe.cfg on the remote host. You'll also need to change the
>> check_nrpe command line to match. If the remote host is behind a
>> firewall that restricts access, you'll need to ensure that TCP access
>> to that port is permitted.
>>
>> --
>> Marc
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091020/9bb4e17c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list