let us assume nagios is called "localhost" and let us assume that this is the host definition for nagios<br><br>define host{<br> use linux-server <br> host_name localhost
<br> alias localhost<br> address <a href="http://192.168.1.1">192.168.1.1</a><br> parents <b>local-router</b><br> }<br><br>The above host definition applies to the local nagios server and it shows that it depends on a router. On your nagios status map - nagios server will depend on the local-router.
<br><br>Alex<br><br><br><div class="gmail_quote">On Jan 15, 2008 3:40 PM, Eric F Crist <<a href="mailto:ecrist@secure-computing.net">ecrist@secure-computing.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK, great. How?<br><font color="#888888"><br>Eric<br></font><div><div></div><div class="Wj3C7c"><br>On Jan 15, 2008, at 9:23 AM, Alex Dehaini wrote:<br><br>> You can make nagios depend on another host or device, that should
<br>> solve your problem.<br>><br>> On Jan 15, 2008 2:30 PM, Eric F Crist <<a href="mailto:ecrist@secure-computing.net">ecrist@secure-computing.net</a> ><br>> wrote:<br>> On Jan 14, 2008, at 2:40 PM, Patrick Morris wrote:
<br>><br>> > On Mon, 14 Jan 2008, Eric F Crist wrote:<br>> ><br>> >> Is there any way or any benefit to telling nagios it resides on a<br>> >> particular host? It would appear to me that bit of information
<br>> would<br>> >> be necessary to properly handle notifications and parenting.<br>> ><br>> > Assuming you set up your parents correctly (from the perspective of<br>> > Nagios), it'll drop itself into the right place.
<br>> ><br>> > And, no, there's no way to tell Nagios whic host it lives on, but<br>> > again,<br>> > if you set up parents correctly, it won't matter.<br>> ><br>> > Say Nagios lives on Box A, and that box plugs into Switch B. You're
<br>> > alos monitoring Box C, also attached to Switch B.<br>> ><br>> > Switch B would have a parent of Box A, and Box C would have a parent<br>> > of<br>> > Switch B. When you look at the status map after setting that up,
<br>> > you'll<br>> > see Nagios happily hanging itself off Box A, since it's the topmost<br>> > parent of everything else.<br>><br>><br>> I think I do have all of the parenting set up correctly, but the
<br>> Nagios process appears in the status map in the center, not attached<br>> to anything. Should Nagios be at the top of my parenting chain?<br>> Rather, the nagios host?<br>><br>> -----<br>> Eric F Crist
<br>> Secure Computing Networks<br>><br>><br>><br>> -------------------------------------------------------------------------<br>> This SF.net email is sponsored by: Microsoft<br>> Defy all challenges. Microsoft(R) Visual Studio 2008.
<br>> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</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<br>> reporting any issue.<br>> ::: Messages without supporting info will risk being sent to /dev/null<br>><br>><br>><br>> --
<br>> Alex Dehaini<br>> Developer<br>> Site - <a href="http://www.alexdehaini.com" target="_blank">www.alexdehaini.com</a><br>> Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><br><br>-----
<br>Eric F Crist<br>Secure Computing Networks<br><br><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Alex Dehaini<br>Developer<br>Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>Email -
<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>