<div class="gmail_quote">On Wed, Feb 24, 2010 at 9:45 PM, Assaf Flatto <span dir="ltr"><<a href="mailto:nagios@flatto.net">nagios@flatto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
HyunSung Jang wrote:<br>
<br>
first thing to remember is a nagios server has no parent since he is the<br>
source of test .<br>
but in a distributed nagios setting there is the exception to the rule.<br>
<div class="im"><br></div></blockquote><div>yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> thank you for your comment,<br>
> but, I think i already configured like you just said.<br>
> actually A1,A2 is not a server but it is our access switch i mean<br>
> there are many servers under A1, A2<br>
><br>
> let me describe my environment again,<br>
><br>
> BB1->A1->server1, server2, nagios1(center), nagios2(for servers under<br>
> A1), nagios3(for servers under A2), nagios4(just for switch monitoring)<br>
<br>
</div>So all nagios monitoring servers are on the same network connected to<br>
the same switch ?<br>
<div class="im"><br></div></blockquote><div>your are right. all nagios monitoring servers are on the same network and same switch.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
> BB1->A2->server3, server4...<br>
><br>
> my central server (nagios1) has all objects<br>
> definition(BB1,A1,A2,server1,server2,server3....etc)<br>
> and then nagios2 has only 2 defined servers which is server1 and server2<br>
> nagios3 has server3, server4<br>
><br>
> if I start nagios daemon on nagios3, it shows me an error like<br>
> "there's no parent definition for server3"<br>
> because parent for server3 is A2 and parent for A2 is BB1.<br>
> and I didn't put config for A2 and BB1 to nagios3.<br>
><br>
</div>That it the reason - server3 has a definition of a parent in the file on<br>
nagios3 , and since the definition does not match the configuration<br>
files , that is the error you get .<br>
<div class="im">> I have no problem when i starting nagios in my central server,<br>
> cuz central server has all configurations of my servers and switches<br>
><br>
> but distributed nagios server which is nagios3 won't start.<br>
><br>
> am I doing right or is there a misunderstanding to config nagios properly?<br>
><br>
</div>The distributed nagios server should hold parent/child definition only<br>
for the hosts they monitor directly, but not for anything "upstream"<br>
toward the central server, since they are not being monitored from that<br>
machine , the central server should hold for every thing , so it can<br>
know the topology and structure , if all the nagios servers are on the<br>
same switch - the switch should be the parent for the distributed servers .</blockquote><div><br></div><div>oh, I got it.</div><div>so you mean, "server3" should configured to its parent to nagios2(distribute monitor server) directly even if</div>
<div>there are A2 and BB1 switches between them. because nagios2 monitor server3 directly.</div><div>am I correct?</div><div><br></div></div>