Yes, <br><br>Double Nagios instances would write twice to the status.dat file, whence doubling the objects reported by the cgis, which parse the status.dat file to render the web pages.<br><br><div class="gmail_quote">On Wed, Jun 18, 2008 at 3:04 PM, Drew Weaver <<a href="mailto:drew.weaver@thenap.com">drew.weaver@thenap.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">As much as I hate replying to myself. It turns out I had two Nagios instances running simultaneously and that was causing 80% of my issues.<br>
<br>
(naughty init script...)<br>
<br>
Does anyone know what would cause the configuration section of CGI to show double hosts/services/contacts (it's still doing that..)<br>
<font color="#888888"><br>
-Drew<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>] On Behalf Of Drew Weaver<br>
Sent: Wednesday, June 18, 2008 1:53 PM<br>
To: 'Marcel'<br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Subject: Re: [Nagios-users] Bunch of strange issues<br>
<br>
I'm pretty sure there may be something 'worse' going on than previously thought.<br>
<br>
If I view the 'configuration' section of the nagios web interface<br>
<br>
It shows me 2x for each host and 2x for each service, if I am on the tactical overview and I keep refreshing over and over, about 50% of the time I see:<br>
<br>
# Active Host / Service Checks:<br>
2 / 9<br>
<br>
The other 50% of the time I see:<br>
<br>
# Active Host / Service Checks:<br>
8 / 38<br>
<br>
The 8/38 is correct.<br>
<br>
If I run:<br>
<br>
/usr/local/nagios/bin/nagios -s /usr/local/nagios/etc/nagios.cfg<br>
<br>
Nagios 3.0.1<br>
Copyright (c) 1999-2008 Ethan Galstad (<a href="http://www.nagios.org" target="_blank">http://www.nagios.org</a>)<br>
Last Modified: 04-01-2008<br>
License: GPL<br>
<br>
Timing information on object configuration processing is listed<br>
below. You can use this information to see if precaching your<br>
object configuration would be useful.<br>
<br>
Object Config Source: Config files (uncached)<br>
<br>
OBJECT CONFIG PROCESSING TIMES (* = Potential for precache savings with -u option)<br>
----------------------------------<br>
Read: 0.002732 sec<br>
Resolve: 0.000018 sec *<br>
Recomb Contactgroups: 0.000003 sec *<br>
Recomb Hostgroups: 0.000003 sec *<br>
Dup Services: 0.000050 sec *<br>
Recomb Servicegroups: 0.000002 sec *<br>
Duplicate: 0.000001 sec *<br>
Inherit: 0.000007 sec *<br>
Recomb Contacts: 0.000000 sec *<br>
Sort: 0.000001 sec *<br>
Register: 0.000274 sec<br>
Free: 0.000033 sec<br>
============<br>
TOTAL: 0.003124 sec * = 0.000085 sec (2.72%) estimated savings<br>
<br>
<br>
RETENTION DATA TIMES<br>
----------------------------------<br>
Read and Process: 0.000944 sec<br>
============<br>
TOTAL: 0.000944 sec<br>
<br>
<br>
Timing information on configuration verification is listed below.<br>
<br>
CONFIG VERIFICATION TIMES (* = Potential for speedup with -x option)<br>
----------------------------------<br>
Object Relationships: 0.000178 sec<br>
Circular Paths: 0.000003 sec *<br>
Misc: 0.000069 sec<br>
============<br>
TOTAL: 0.000250 sec * = 0.000003 sec (1.2%) estimated savings<br>
<br>
<br>
EVENT SCHEDULING TIMES<br>
-------------------------------------<br>
Get service info: 0.000122 sec<br>
Get host info info: 0.000020 sec<br>
Get service params: 0.000004 sec<br>
Schedule service times: 0.000194 sec<br>
Schedule service events: 0.000027 sec<br>
Get host params: 0.000001 sec<br>
Schedule host times: 0.000041 sec<br>
Schedule host events: 0.000007 sec<br>
============<br>
TOTAL: 0.000416 sec<br>
<br>
<br>
Projected scheduling information for host and service checks<br>
is listed below. This information assumes that you are going<br>
to start running Nagios with your current config files.<br>
<br>
HOST SCHEDULING INFORMATION<br>
---------------------------<br>
Total hosts: 8<br>
Total scheduled hosts: 8<br>
Host inter-check delay method: SMART<br>
Average host check interval: 600.00 sec<br>
Host inter-check delay: 75.00 sec<br>
Max host check spread: 30 min<br>
First scheduled check: Wed Jun 18 13:47:05 2008<br>
Last scheduled check: Wed Jun 18 13:55:50 2008<br>
<br>
<br>
SERVICE SCHEDULING INFORMATION<br>
-------------------------------<br>
Total services: 38<br>
Total scheduled services: 38<br>
Service inter-check delay method: SMART<br>
Average service check interval: 600.00 sec<br>
Inter-check delay: 15.79 sec<br>
Interleave factor method: SMART<br>
Average services per host: 4.75<br>
Service interleave factor: 5<br>
Max service check spread: 30 min<br>
First scheduled check: Wed Jun 18 13:49:11 2008<br>
Last scheduled check: Wed Jun 18 13:59:11 2008<br>
<br>
It shows my 8 hosts and 38 services.<br>
<br>
Any idea what in the world is going on?<br>
<br>
All of my hosts/services and contacts are defined in 'included files'. Is this not ok?<br>
<br>
-Drew<br>
<br>
---------------------------------------<br>
<br>
From: Marcel [mailto:<a href="mailto:webknowledge@gmail.com">webknowledge@gmail.com</a>]<br>
Sent: Wednesday, June 18, 2008 1:43 PM<br>
To: Drew Weaver<br>
Subject: Re: [Nagios-users] Bunch of strange issues<br>
<br>
Yes, I have some lines like that in my nagios.log - (for me) they mean that some passive checks are getting to nagios.cmd pipe, but they're not defined as a service nor host, whatsoever in nagios object definitions. Check your config again.<br>
On Wed, Jun 18, 2008 at 1:38 PM, Drew Weaver <<a href="mailto:drew.weaver@thenap.com">drew.weaver@thenap.com</a>> wrote:<br>
Hi there, I finally got my installation of Nagios finished (hurray)<br>
<br>
I'm having some fairly (what I would consider strange) issues with it however and I am wondering if anyone else has run into these particular problems:<br>
<br>
[1213806661] Warning: The check of service 'SSH on Server B' on host 'ServerB' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service...<br>
[1213806661] Warning: The check of service 'MySQL Database on Server A' on host 'ServerA' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service...<br>
[1213806667] Warning: Check result queue contained results for service 'MySQL Database on ServerA' on host 'ServerA', but the service could not be found! Perhaps you forgot to define the service in your config files?<br>
[1213806787] Warning: Check result queue contained results for host 'ServerC', but the host could not be found! Perhaps you forgot to define the host in your config files?<br>
[1213806787] Warning: Check result queue contained results for host 'ServerD', but the host could not be found! Perhaps you forgot to define the host in your config files?<br>
[1213806787] Warning: Check result queue contained results for host 'ServerE', but the host could not be found! Perhaps you forgot to define the host in your config files?<br>
<br>
All of the services/hosts it mentions are listed in both the configuration files and in the Nagios web interface.<br>
<br>
Has anyone seen anything like this?<br>
<br>
Thanks,<br>
-Drew<br>
<br>
-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</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>
<br>
<br>
-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</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>
<br>
-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</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>
</div></div></blockquote></div><br>