thank you for your comment,<div>but, I think i already configured like you just said.</div><div>actually A1,A2 is not a server but it is our access switch i mean</div><div>there are many servers under A1, A2</div><div><br>
</div><div>let me describe my environment again,</div><div><br></div><div>BB1->A1->server1, server2, nagios1(center), nagios2(for servers under A1), nagios3(for servers under A2), nagios4(just for switch monitoring)</div>
<div><br></div><div>BB1->A2->server3, server4...</div><div><br></div><div>my central server (nagios1) has all objects definition(BB1,A1,A2,server1,server2,server3....etc)</div><div>and then nagios2 has only 2 defined servers which is server1 and server2</div>
<div>nagios3 has server3, server4</div><div><br></div><div>if I start nagios daemon on nagios3, it shows me an error like "there's no parent definition for server3"</div><div>because parent for server3 is A2 and parent for A2 is BB1.</div>
<div>and I didn't put config for A2 and BB1 to nagios3.</div><div><br></div><div>I have no problem when i starting nagios in my central server, </div><div>cuz central server has all configurations of my servers and switches</div>
<div><br></div><div>but distributed nagios server which is nagios3 won't start.</div><div><br></div><div>am I doing right or is there a misunderstanding to config nagios properly?</div><div><br></div><div><br><div class="gmail_quote">
On Wed, Feb 24, 2010 at 7:19 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;">
<div><div></div><div class="h5">HyunSung Jang wrote:<br>
> hello.<br>
><br>
> i just finished setting up nagios as distributed monitoring and i<br>
> found a problem.<br>
> we have a backbone switch called BB1.<br>
> and we have 2 access switch called A1, A2 which uses uplink to BB1<br>
> so this makes both A1,A2 have its parent BB1<br>
><br>
> and then i prepared 4 dedicated servers for nagios,<br>
> first server for central server,<br>
> second server for servers under A1,<br>
> third server for servers under A2,<br>
> fourth server for our switches BB1,A1,A2<br>
><br>
> in this environment, how can i define parent/child relationship in<br>
> distribute nagios server??<br>
> i read nagios manual that says "only those services and hosts which<br>
> are being monitored directly by the distributed server are defined in<br>
> the object configuration file"<br>
><br>
> i want keep all configuration file for switches only fourth server<br>
> which is for dedicated switch monitoring.<br>
><br>
> when i try to start nagios in second and thrid server, it shows error<br>
> like "there is no BB1 parent define in configuration"<br>
><br>
> thanks for your help.<br>
><br>
</div></div>Hello<br>
<br>
I know it is bad to assume things , but i will take it that you have<br>
both server A1 and A2 transfer the results to the central nagios .<br>
<br>
What you must remember and is clearly stated in the docs is that the<br>
definitions of the remote server has to also be on the central server -<br>
they do not however need to be a duplicate on the remote server , that<br>
being said , the Parnet/child relation ship can and should be defined on<br>
the central server for the whole network , BB1-->A1 -> hosts . while on<br>
each remote host you define the parent/child for only the relevant hosts<br>
that the host is checking .<br>
so if host A1 id down stream from BB1 - it is not defined on A1 , but on<br>
the central server only ( it is also a good idea to have active<br>
monitoring of BB1 on the central so it will be able to show real<br>
time UP/Unknown statuses ).<br>
<br>
Hope this helps.<br>
<br>
Assaf<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</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>