Hi Ed,<br><br>You'll probably need to add a second NRPE command definition in your commands.cfg file.<br>You can hardcode the port value in there.<br><br>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. <br>
<br>ex: <br>commands.cfg<br><br># check nrpe<br>define command{<br> command_name check_nrpe<br> command_line $USER1$/check_nrpe -t 55 -H $HOSTADDRESS$ -c $ARG1$ -p $ARG2$<br> }<br><br><br>services.cfg<br>
# NRPE services<br>define service{<br> use generic-service<br> host_name server1<br> service_description Current Load<br> check_command check_nrpe!check_load!5667<br>
notifications_enabled 1<br> }<br><br>Hope this makes sense. Good luck!<br><br>-P<br><br><br><div class="gmail_quote">On Mon, Apr 12, 2010 at 8:44 AM, Edward Blum <span dir="ltr"><<a href="mailto:edward@blumbyte.co.uk">edward@blumbyte.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi there,<br>
<br>
Searched high and low on the internet for a solution to this.<br>
<br>
I currently have 2 linux machines sitting behind 1 ip address, and have<br>
configured both hosts to listen on port 5666. On the router I have<br>
forwarded port 5666 to one and 5667 to the other.<br>
<br>
On the monitoring Server I check they have worked with the command<br>
<br>
/usr/local/nagios/libexec/check_nrpe -H myhost -p5667<br>
<br>
This works fine - How do I put this in to my host / service object<br>
configurations? Ive looked in the manual and cant find where I can set<br>
the NRPE port?<br>
<br>
Many thanks<br>
<br>
Ed<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>