<div>Hi,</div><div><br></div>So the problem here is really that you want $HOSTADRESS$ to have the value of the public IP for most of your checks, but want NRPE checks to go to the private IP.<div><br></div><div>The easiest way to set that up for you is that you let $HOSTADRESS$ be the public IP, and add the private IP as either $HOSTNAME$ or $HOSTALIAS$. It won't look great in the CGIs, but you have both of the IPs in your single host definition. Then you simply create or change the check_nrpe command definition to use the correct macro for the -H option.</div>
<div><br></div><div>If you'd rather not do the above, depending on the size and volatility of your server park, you could just write a wrapper to check_nrpe that maps the public IP to a private IP from a simple text file.</div>
<div><br></div><div>Regards</div><div>Martin Melin</div><div><br><div class="gmail_quote">On Fri, Oct 2, 2009 at 12:16 PM, Nick Jennings <span dir="ltr"><<a href="mailto:nick@creativemotiondesign.com">nick@creativemotiondesign.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Everyone,<br>
<br>
  I'm setting up Nagios on a new server group, these servers all have 1<br>
public IP and one private (internal network) IP. For the basic "up/down"<br>
checks I'd like to ping the public IP, check for the services which is<br>
provides, etc. all on the public IP.<br>
<br>
  However for any NRPE stuff, I'd like to bind it to the internal IP<br>
address and run all the checks on the local network. The problem is I<br>
don't know how to keep from specifying 2 host definitions for each<br>
server (ie. an external definition and internal definition). I don't<br>
know if it can be done, but I'd like to have one record per server, just<br>
for clarity and to avoid confusion.<br>
<br>
  Does this make sense? Can it be done in a reasonable way? Or should I<br>
just bite the bullet and make two host definitions per server?<br>
<br>
Thanks for any help,<br>
-Nick<br>
<br>
<br>
--<br>
Nick Jennings<br>
Technical Director<br>
Creative Motion Design<br>
<a href="http://www.creativemotiondesign.com" target="_blank">www.creativemotiondesign.com</a><br>
<br>
------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA<br>
is the only developer event you need to attend this year. Jumpstart your<br>
developing skills, take BlackBerry mobile applications to market and stay<br>
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;<br>
<a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br></div>