<br><br><div class="gmail_quote">On Mon, Apr 12, 2010 at 11:38 PM, wwanghongrui <span dir="ltr"><<a href="mailto:wwanghongrui@cebbank.com">wwanghongrui@cebbank.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font face="Verdana" size="2">>- You haven't reloaded or restarted nagios since adding them</font></div>
<div><font face="Verdana" size="2"></font> </div>
<div><font face="Verdana" size="2">I exectue "/etc/init.d/nagios reload" every time
after edit something.</font></div><div class="im">
<div> </div>
<div> </div>
<div><font face="Verdana" size="2">></font> The file you're adding them to isn't parsed by nagios (i.e. a cfg_file or in a cfg_dir in nagios.cfg). (run /path/to/nagios ->v /path/to/nagios.cfg and see if the numbers presented are reasonable).</div>
<div> </div>
</div><div>
<div>BL680-127:~ # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</div><div class="im">
<div></div>
<div>Nagios Core 3.2.0</div>
</div><div>Copyright (c) 2009 Nagios Core Development Team and Community Contributors</div>
<div>Copyright (c) 1999-2009 Ethan Galstad</div>
<div>Last Modified: 08-12-2009</div>
<div>License: GPL</div>
<div></div>
<div>Website: <a href="http://www.nagios.org" target="_blank">http://www.nagios.org</a></div>
<div>Reading configuration data...</div>
<div> Read main config file okay...</div>
<div>Processing object config file '/usr/local/nagios/etc/hosts.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/services.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/misccommands.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/checkcommands.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/contacts.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/escalations.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/dependencies.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_commands.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_contactgroup.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_contact.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_dependencies.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_escalations.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_hostgroup.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_host.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_services.cfg'...</div>
<div>Processing object config file '/usr/local/nagios/etc/meta_timeperiod.cfg'...</div>
<div> Read object config files okay...</div>
<div></div>
<div>Running pre-flight check on configuration data...</div>
<div></div>
<div>Checking services...</div>
<div> Checked 2794 services.</div>
<div>Checking hosts...</div>
<div>Warning: Host 'Centreon-Server' has no services associated with it!</div>
<div>Warning: Host 'localhost' has no services associated with it!</div>
<div> Checked 430 hosts.</div>
<div>Checking host groups...</div>
<div> Checked 5 host groups.</div>
<div>Checking service groups...</div>
<div> Checked 4 service groups.</div>
<div>Checking contacts...</div>
<div> Checked 10 contacts.</div>
<div>Checking contact groups...</div>
<div> Checked 4 contact groups.</div>
<div>Checking service escalations...</div>
<div> Checked 0 service escalations.</div>
<div>Checking service dependencies...</div>
<div> Checked 0 service dependencies.</div>
<div>Checking host escalations...</div>
<div> Checked 0 host escalations.</div>
<div>Checking host dependencies...</div>
<div> Checked 0 host dependencies.</div>
<div>Checking commands...</div>
<div> Checked 103 commands.</div>
<div>Checking time periods...</div>
<div> Checked 7 time periods.</div>
<div>Checking for circular paths between hosts...</div>
<div>Checking for circular host and service dependencies...</div>
<div>Checking global event handlers...</div>
<div>Checking obsessive compulsive processor commands...</div>
<div>Checking misc settings...</div>
<div></div>
<div>Total Warnings: 2</div>
<div>Total Errors: 0</div>
<div> </div>
<div> </div>
<div>>- If you have authentication enabled, the user you log in as is not a contact for the hosts in question.</div>
<div>I log in as nagios admin. I think that user have privilage to see any
hosts.</div>
<div> </div>
<div>>-You have multiple nagios daemons running at the same time and there is contention over the status file.</div>
<div> </div>
<div>
<div>
<div>BL680-127:~ # service nagios status</div>
<div>nagios (pid 18513) is running...</div></div>
<div>
<div>BL680-127:~ # ps -ef |grep nagios.cfg</div>
<div>nagios 13648 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 13658 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 13662 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 13666 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 13689 18513 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>root 13707 3121 0 10:28 pts/0 00:00:00 grep nagios.cfg</div>
<div>nagios 18513 1 2 Apr12 ? 00:24:40 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div></div>
<div>
<div>BL680-127:~ # ps -ef |grep nagios.cfg</div>
<div>nagios 14090 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 14381 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 14415 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 14419 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>nagios 14423 1 0 10:28 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div>root 14505 3121 0 10:28 pts/0 00:00:00 grep nagios.cfg</div>
<div>nagios 18513 1 2 Apr12 ? 00:24:41 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div></div>
<div> </div>
<div>Run "service nagios status", only one daemon is running. But execute
"ps -ef |grep nagios.cfg", the process number and pid are always different. Is
this issue ? </div></div></div></div></blockquote><div><br>Yes, that's it! You have several nagios processes that are sons of the PID == 1. <br><br>Do a /etc/init.d/nagios stop and execute that ps -fu nagios again to see that there is remaining nagios processes that are sons of the PID == 1. <br>
<br>Then you kill'em all and start fresh. <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div><div class="im">
<div> </div>
<div> </div>
<div>Regards</div>
<div>HongRui Wang</div>
<div><a href="mailto:wwanghongrui@cebbank.com" target="_blank">wwanghongrui@cebbank.com</a></div>
<div> </div></div></div></div>
<div align="left">
<div align="left"><font face="Verdana" size="2">
<hr style="width: 122px; min-height: 2px;" size="2">
</font></div>
<div><font color="#c0c0c0"><font face="Verdana" size="2"><span>wwanghongrui</span></font></font></div>
<div><font face="Verdana" size="2">2010-04-13</font></div></div>
<div><font face="Verdana" size="2">
<hr>
</font></div>
<div><font face="Verdana"><font size="2"><b>发件人:</b> Marc
Powell</font></font></div>
<div><font face="Verdana"><font size="2"><b>发送时间:</b>
2010-04-13 09:45:52</font></font></div>
<div><font face="Verdana"><font size="2"><b>收件人:</b> Nagios Users
List</font></font></div>
<div><font face="Verdana"><font size="2"><b>抄送:</b> </font></font></div>
<div><font face="Verdana"><font size="2"><b>主题:</b> Re: [Nagios-users] Fw:
nagios web only show 400 node?</font></font></div>
<div><font face="Verdana" size="2"></font> </div>
<div><font face="Verdana" size="2"><div class="im">
<div></div>
<div>On Apr 12, 2010, at 7:12 PM, wwanghongrui wrote:</div>
<div></div>
</div><div class="im"><div>> 发件人: wwanghongrui</div>
<div>> 发送时间: 2010-04-12 18:33:07</div>
<div>> 收件人: nagios-users</div>
<div>> 抄送:</div>
<div>> 主题: nagios web only show 400 node?</div>
<div>> </div>
<div>> Hi, guys~</div>
<div>> </div>
<div>> We install Nagios® Core™ 3.2.0 on SUSE 10 SP2 X86_64. We have added more than 440 nodes in nagios server, but only 400 nodes showed in nagios web. The nodes added after 400, are not showed. Could you give me some suggestion for resolve this problem? </div>
<div>> </div>
<div></div>
</div><div class="im"><div>There are a few possibilities that come to mind --</div>
<div></div>
<div>- You haven't reloaded or restarted nagios since adding them</div>
<div>- The file you're adding them to isn't parsed by nagios (i.e. a cfg_file or in a cfg_dir in nagios.cfg). (run /path/to/nagios -v /path/to/nagios.cfg and see if the numbers presented are reasonable).</div>
<div>- If you have authentication enabled, the user you log in as is not a contact for the hosts in question.</div>
<div>- You have multiple nagios daemons running at the same time and there is contention over the status file.</div>
<div></div>
<div>--</div>
<div>Marc</div>
<div></div>
<div></div>
<div>------------------------------------------------------------------------------</div>
<div>Download Intel® Parallel Studio Eval</div>
<div>Try the new software tools for yourself. Speed compiling, find bugs</div>
<div>proactively, and fine-tune applications for parallel performance.</div>
<div>See why Intel Parallel Studio got high marks during beta.</div>
<div><a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a></div>
<div>_______________________________________________</div>
<div>Nagios-users mailing list</div>
<div><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a></div>
<div><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></div>
<div>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </div>
<div>::: Messages without supporting info will risk being sent to /dev/null</div></div></font></div></div>
<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>