[Nagiosplug-help] conecting to NRPE running on a non standard port

Edward Blum edward at blumbyte.co.uk
Tue Apr 13 12:15:39 CEST 2010


Hi Philip,

Thanks very much for that I tweaked the check_nrpe command to take a second
argument for the nrpe port. All working now.

Cheers

Ed

On 12 April 2010 22:21, Philip Marcus <pmarcus at factual.com> wrote:

> 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
>>
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>


-- 
Kind Regards

Edward Blum

This electronic message contains information from blumbyte which may be
privileged or confidential. The information is intended to be for the use of
the individual(s) or entity named above. If you are not the intended
recipient be aware that any disclosure, copying distribution or use of the
contents of this information is prohibited. If you have received this
electronic message in error, please notify us by telephone or email (to the
numbers or address below) immediately.

Switchboard +44(0)1738 700 100
Fax +44(0)1738 700 101
http://www.blumbyte.co.uk

Registered in Scotland VAT Number 977 217681
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100413/6cb1a0d6/attachment.html>


More information about the Help mailing list