Discussion:
[Nagios-users] host port setting
Viktor Matys
2008-12-10 09:42:44 UTC
Permalink
I have machine with NRPE server, where I needed change the port number
where the NRPE listens. It's simply allowed in configuration file. But I
cannot find out how to set this port number on main Nagios server, which
collects information from that remote NRPE server. Is there a
configuration directive I overlooked?

Thank for help

Viktor
--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.
Cherrington Stuart
2008-12-10 10:15:22 UTC
Permalink
Viktor,

The nrpe.cfg file (in my install its in /etc/Nagios) hold the port
number 5666, is this what you rlooking for?


Thanks,

Stuart Cherrington
Unix Systems Admin
Royal Holloway University

Mobile: 07756 857607


-----Original Message-----
From: Viktor Matys [mailto:***@grumpa.net]
Sent: 10 December 2008 09:43
To: nagios-***@lists.sourceforge.net
Subject: [Nagios-users] host port setting

I have machine with NRPE server, where I needed change the port number
where the NRPE listens. It's simply allowed in configuration file. But I

cannot find out how to set this port number on main Nagios server, which

collects information from that remote NRPE server. Is there a
configuration directive I overlooked?

Thank for help

Viktor
--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.


------------------------------------------------------------------------
------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
Nevada.
The future of the web can't happen without you. Join us at MIX09 to
help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.
com/
_______________________________________________
Nagios-users mailing list
Nagios-***@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
Alex Dehaini
2008-12-10 10:24:25 UTC
Permalink
U have to explain your setup pretty well before I can advice.

For example, a web server listens on port 80. A web browser connects to the
web server on port 80 before communication can take place.

How is your setup like?

Lex

On Wed, Dec 10, 2008 at 10:15 AM, Cherrington Stuart <
Post by Cherrington Stuart
Viktor,
The nrpe.cfg file (in my install its in /etc/Nagios) hold the port
number 5666, is this what you rlooking for?
Thanks,
Stuart Cherrington
Unix Systems Admin
Royal Holloway University
Mobile: 07756 857607
-----Original Message-----
Sent: 10 December 2008 09:43
Subject: [Nagios-users] host port setting
I have machine with NRPE server, where I needed change the port number
where the NRPE listens. It's simply allowed in configuration file. But I
cannot find out how to set this port number on main Nagios server, which
collects information from that remote NRPE server. Is there a
configuration directive I overlooked?
Thank for help
Viktor
--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.
------------------------------------------------------------------------
------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
Nevada.
The future of the web can't happen without you. Join us at MIX09 to
help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.
com/<http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/>
_______________________________________________
Nagios-users mailing list
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
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Nagios-users mailing list
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
--
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - ***@gmail.com
Alex Dehaini
2008-12-10 10:52:01 UTC
Permalink
I will advice you configure the nrpe daemon on the remote host to listen on
which ever port you choose. After that, restart nagios on the monitoring
host and use the plugin in the libexec directory to see if you can still
talk to the remote server.

To answer your question, I do not know of any directive to change the port
number for nrpe on nagios.

Perhaps it is harded coded in the plugin, perhaps not, you will only know
after testing it.

Lex
Post by Alex Dehaini
U have to explain your setup pretty well before I can advice.
For example, a web server listens on port 80. A web browser connects to
the web server on port 80 before communication can take place.
How is your setup like?
Lex
On Wed, Dec 10, 2008 at 10:15 AM, Cherrington Stuart <
Viktor,
The nrpe.cfg file (in my install its in /etc/Nagios) hold the port
number 5666, is this what you rlooking for?
Hello, thanks
The question is: Is there a configuration direcitive for Nagios to connect
remote NRPE on a port nuber different from 5666?
Do you know that directive?
Thank you
Viktor
--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.
--
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - ***@gmail.com
Bo Philip Larsen
2008-12-10 11:16:07 UTC
Permalink
Hi,

You can use the -p <port> parameter on check_nrpe

Bo


From: Alex Dehaini [mailto:***@gmail.com]
Sent: 10. december 2008 11:52
To: Viktor Matys
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] host port setting

I will advice you configure the nrpe daemon on the remote host to listen on which ever port you choose. After that, restart nagios on the monitoring host and use the plugin in the libexec directory to see if you can still talk to the remote server.

To answer your question, I do not know of any directive to change the port number for nrpe on nagios.

Perhaps it is harded coded in the plugin, perhaps not, you will only know after testing it.

Lex
On Wed, Dec 10, 2008 at 10:30 AM, Viktor Matys <***@grumpa.net<mailto:***@grumpa.net>> wrote:
Alex Dehaini napsal(a):
U have to explain your setup pretty well before I can advice.

For example, a web server listens on port 80. A web browser connects to the web server on port 80 before communication can take place.

How is your setup like?

Lex
On Wed, Dec 10, 2008 at 10:15 AM, Cherrington Stuart <***@rhul.ac.uk<mailto:***@rhul.ac.uk> <mailto:***@rhul.ac.uk<mailto:***@rhul.ac.uk>>> wrote:

Viktor,

The nrpe.cfg file (in my install its in /etc/Nagios) hold the port
number 5666, is this what you rlooking for?
Hello, thanks

The question is: Is there a configuration direcitive for Nagios to connect remote NRPE on a port nuber different from 5666?


Do you know that directive?

Thank you


Viktor


--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.



--
Alex Dehaini
Developer
Site - www.alexdehaini.com<http://www.alexdehaini.com>
Email - ***@gmail.com<mailto:***@gmail.com>

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.16/1840 - Release Date: 09-12-2008 16:53
Alex Dehaini
2008-12-10 10:19:27 UTC
Permalink
A process/app as to listen/bind on a port before it can be used.
Post by Viktor Matys
I have machine with NRPE server, where I needed change the port number
where the NRPE listens. It's simply allowed in configuration file. But I
cannot find out how to set this port number on main Nagios server, which
collects information from that remote NRPE server. Is there a
configuration directive I overlooked?
Thank for help
Viktor
--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Nagios-users mailing list
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
--
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - ***@gmail.com
Andreas Ericsson
2008-12-10 11:02:26 UTC
Permalink
Post by Alex Dehaini
A process/app as to listen/bind on a port before it can be used.
That was the most irrelevant answer I've yet seen on this list,
while still being 100% accurate. Are you by any chance a member
of the microsoft customer support team?
Post by Alex Dehaini
Post by Viktor Matys
I have machine with NRPE server, where I needed change the port number
where the NRPE listens. It's simply allowed in configuration file. But I
cannot find out how to set this port number on main Nagios server, which
collects information from that remote NRPE server. Is there a
configuration directive I overlooked?
To change the port-number check_nrpe will connect to, use the -p flag.
check_nrpe --help would have told you so. I just filled it in to get a
chance to be a bit rude up above without adding to the list-noise ;-)
--
Andreas Ericsson ***@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Alex Dehaini
2008-12-10 11:40:16 UTC
Permalink
Post by Andreas Ericsson
Post by Alex Dehaini
A process/app as to listen/bind on a port before it can be used.
That was the most irrelevant answer I've yet seen on this list,
while still being 100% accurate. Are you by any chance a member
of the microsoft customer support team? - lol, the beauty of mailing list
is to allow people express themselves & no, I don't work for microsoft
Post by Alex Dehaini
I have machine with NRPE server, where I needed change the port number
Post by Viktor Matys
where the NRPE listens. It's simply allowed in configuration file. But I
cannot find out how to set this port number on main Nagios server, which
collects information from that remote NRPE server. Is there a
configuration directive I overlooked?
To change the port-number check_nrpe will connect to, use the -p flag.
check_nrpe --help would have told you so. I just filled it in to get a
chance to be a bit rude up above without adding to the list-noise ;-)
--
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
--
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - ***@gmail.com
Viktor Matys
2008-12-10 13:33:39 UTC
Permalink
Post by Viktor Matys
I have machine with NRPE server, where I needed change the port number
where the NRPE listens. It's simply allowed in configuration file. But I
cannot find out how to set this port number on main Nagios server, which
collects information from that remote NRPE server. Is there a
configuration directive I overlooked?
Thank for help
Viktor
Thank to everybody for help. Solution is:

We can put command line parameters in directive "address" in "define
host" statement:

# This is a nrpe remote server definition. NRPE is listening on port 5667.
# Tested on Debian Lenny.
define host {
host_name some_host
host_alias some_alias
*address host.domain.com -p 5667*
}


Thank again :o)

Viktor
--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.
Loading...