<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE>@font-face {
font-family: 宋体;
}
@font-face {
font-family: Verdana;
}
@font-face {
font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff size=2>Thanks, Marcel</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>I found the issue, the file
/usr/local/nagios/var/objects.cache lose write permission. So new added nodes
can't write into this file. Now, all nodes are showed on nagios page. I
killed all nagios processes, then execute "/etc/init.d/nagios start",
still found many nagios processes. Faint~</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana
size=2><SPAN>wwanghongrui</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2>2010-04-14</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG>
Marcel</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG>
2010-04-13 21:31:50</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> wwanghongrui; Nagios
Users List</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> 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><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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="MIN-HEIGHT: 2px; WIDTH: 122px" 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></FONT></DIV></BODY></HTML>