[Nagiosplug-help] conecting to NRPE running on a non standard port
Philip Marcus
pmarcus at factual.com
Mon Apr 12 23:21:43 CEST 2010
Hi Ed,
You'll probably need to add a second NRPE command definition in your
commands.cfg file.
You can hardcode the port value in there.
Conversely, you can customize the existing check_nrpe command definition and
have it pull the port number from your services definition file as one of
the variables.
ex:
commands.cfg
# check nrpe
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -t 55 -H $HOSTADDRESS$ -c $ARG1$
-p $ARG2$
}
services.cfg
# NRPE services
define service{
use generic-service
host_name server1
service_description Current Load
check_command check_nrpe!check_load!5667
notifications_enabled 1
}
Hope this makes sense. Good luck!
-P
On Mon, Apr 12, 2010 at 8:44 AM, Edward Blum <edward at blumbyte.co.uk> wrote:
> Hi there,
>
> Searched high and low on the internet for a solution to this.
>
> I currently have 2 linux machines sitting behind 1 ip address, and have
> configured both hosts to listen on port 5666. On the router I have
> forwarded port 5666 to one and 5667 to the other.
>
> On the monitoring Server I check they have worked with the command
>
> /usr/local/nagios/libexec/check_nrpe -H myhost -p5667
>
> This works fine - How do I put this in to my host / service object
> configurations? Ive looked in the manual and cant find where I can set
> the NRPE port?
>
> Many thanks
>
> Ed
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100412/80c6118e/attachment.html>
More information about the Help
mailing list