Fw: nagios web only show 400 node?

wwanghongrui wwanghongrui at cebbank.com
Tue Apr 13 04:38:25 CEST 2010


>- You haven't reloaded or restarted nagios since adding them

I exectue "/etc/init.d/nagios reload" every time after edit something.


> 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).

BL680-127:~ # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL
Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/usr/local/nagios/etc/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/services.cfg'...
Processing object config file '/usr/local/nagios/etc/misccommands.cfg'...
Processing object config file '/usr/local/nagios/etc/checkcommands.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/escalations.cfg'...
Processing object config file '/usr/local/nagios/etc/dependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_commands.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_contactgroup.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_contact.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_dependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_escalations.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_hostgroup.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_host.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_services.cfg'...
Processing object config file '/usr/local/nagios/etc/meta_timeperiod.cfg'...
   Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
        Checked 2794 services.
Checking hosts...
Warning: Host 'Centreon-Server' has no services associated with it!
Warning: Host 'localhost' has no services associated with it!
        Checked 430 hosts.
Checking host groups...
        Checked 5 host groups.
Checking service groups...
        Checked 4 service groups.
Checking contacts...
        Checked 10 contacts.
Checking contact groups...
        Checked 4 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 103 commands.
Checking time periods...
        Checked 7 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 2
Total Errors:   0


>- If you have authentication enabled, the user you log in as is not a contact for the hosts in question.
I log in as nagios admin. I think that user have privilage to see any hosts.

>-You have multiple nagios daemons running at the same time and there is contention over the status file.

BL680-127:~ # service nagios status
nagios (pid 18513) is running...
BL680-127:~ # ps -ef |grep nagios.cfg
nagios   13648     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13658     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13662     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13666     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13689 18513  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root     13707  3121  0 10:28 pts/0    00:00:00 grep nagios.cfg
nagios   18513     1  2 Apr12 ?        00:24:40 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
BL680-127:~ # ps -ef |grep nagios.cfg
nagios   14090     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   14381     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   14415     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   14419     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   14423     1  0 10:28 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root     14505  3121  0 10:28 pts/0    00:00:00 grep nagios.cfg
nagios   18513     1  2 Apr12 ?        00:24:41 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

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 ? 


Regards
HongRui Wang
wwanghongrui at cebbank.com




wwanghongrui
2010-04-13



发件人: Marc Powell
发送时间: 2010-04-13 09:45:52
收件人: Nagios Users List
抄送: 
主题: Re: [Nagios-users] Fw: nagios web only show 400 node?

On Apr 12, 2010, at 7:12 PM, wwanghongrui wrote:
> 发件人: wwanghongrui
> 发送时间: 2010-04-12 18:33:07
> 收件人: nagios-users
> 抄送:
> 主题: nagios web only show 400 node?
>  
> Hi, guys~
>  
> 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? 
>  
There are a few possibilities that come to mind --
- You haven't reloaded or restarted nagios since adding them
- 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).
- If you have authentication enabled, the user you log in as is not a contact for the hosts in question.
- You have multiple nagios daemons running at the same time and there is contention over the status file.
--
Marc
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100413/e11e1521/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list