Hello,<br><br>I am working with one installation of Nagios (v. 2.11) to monitor two sites. Let's call them Dev and Prod.<br><br>Nagios is in Prod, which has an external IP address of <a href="http://22.22.22.22">22.22.22.22</a>. Dev's external IP is <a href="http://11.11.11.11">11.11.11.11</a>. The previous administrator defined each host in Dev with this IP address, and then in the service check definitions used check_nrpe with a port number (e.g., check_nrpe!5678) to navigate firewall/routing rules and deliver the check to the appropriate host.<br>
<br>I see two drawbacks to this method. First, it makes my config files huge. If I want to define a service for three hosts in Dev, I can no longer do this:<br><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
define service{<br> host_name host1,host2,host3<br> service_description disk usage<br> check_command check_nrpe!check_disk<br> use serviceTemplate<br>
}<br></blockquote><div><br>Instead, I have to do this:<br><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">define service{<br> host_name host1<br>
service_description disk usage<br> check_command check_nrpe!5678!check_disk<br> use serviceTemplate<br>}<br><br>define service{<br> host_name host2<br>
service_description disk usage<br> check_command check_nrpe!6789!check_disk<br> use serviceTemplate<br>}<br><br>define service{<br> host_name host3<br>
service_description disk usage<br> check_command check_nrpe!4567!check_disk<br> use serviceTemplate<br>}<br></blockquote><div> <br>The second drawback is that the host-alive-check (which I believe uses check_ping) won't tell me much if the hosts are all defined with the same IP address. They are either all going to be up or all going to be down. I tried adding the port to the IP address in the host definition
s -- see example below -- but that didn't work:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">define host{<br> host_name host1<br> alias host1<br>
address 11.11.11.11.:5678<br> use hostTemplate<br>}<br></blockquote><div><br>Does anyone have any suggestions for dealing with this kind of setup?<br><br>Thanks very much,<br>
-Frank<br></div></div></div>