<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE : [Nagios-users] Re: [Nagios-devel] webinterface don't works with large number of hosts in Nagios 2.0 current cvs version</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.279" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=377572316-15072005><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377572316-15072005></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377572316-15072005><FONT face=Arial 
color=#0000ff size=2>I checked this with the CVS version from 13/July with the 
follwing header in xdata/xodtemplate.c</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377572316-15072005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377572316-15072005><FONT face=Arial 
color=#0000ff 
size=2> /*****************************************************************************<BR> *<BR> * 
XODTEMPLATE.C - Template-based object configuration data input 
routines<BR> *<BR> * Copyright (c) 2001-2005 Ethan Galstad (<A 
href="mailto:nagios@nagios.org">nagios@nagios.org</A>)<BR> * Last Modified: 
06-24-2005<BR> *<BR></FONT></SPAN></DIV>
<DIV><SPAN class=377572316-15072005></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT 
size=2>Should be good enough.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT 
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2>R<SPAN 
class=377572316-15072005>egards</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=377572316-15072005>Marcus 
Hildenbrand</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Von:</B> François Laupretre 
  [mailto:francois.laupretre-prestataire@calyon.com] <BR><B>Gesendet:</B> 
  Freitag, 15. Juli 2005 11:48<BR><B>An:</B> Hildenbrand, Marcus; 
  nagios-devel@lists.sourceforge.net; 
  nagios-users@lists.sourceforge.net<BR><B>Betreff:</B> RE : [Nagios-users] Re: 
  [Nagios-devel] webinterface don't works with large number of hosts in Nagios 
  2.0 current cvs version<BR></FONT><BR></DIV>
  <DIV></DIV>
  <P><FONT size=2>The test for strlen(input)>MAX_XODTEMPLATE_INPUT_BUFFER has 
  been removed on 05/25/2005 from xodtemplate_add_object_property() in the CVS 
  version. Maybe you could try the current CVS.</FONT></P>
  <P><FONT size=2>> -----Original Message-----</FONT> <BR><FONT size=2>> 
  From: nagios-users-admin@lists.sourceforge.net </FONT><BR><FONT size=2>> 
  [<A 
  href="mailto:nagios-users-admin@lists.sourceforge.net">mailto:nagios-users-admin@lists.sourceforge.net</A>] 
  On Behalf </FONT><BR><FONT size=2>> Of Marcus Hildenbrand</FONT> <BR><FONT 
  size=2>> Sent: Wednesday, July 13, 2005 1:19 PM</FONT> <BR><FONT 
  size=2>> To: nagios-devel@lists.sourceforge.net; </FONT><BR><FONT 
  size=2>> nagios-users@lists.sourceforge.net</FONT> <BR><FONT size=2>> 
  Subject: [Nagios-users] Re: [Nagios-devel] webinterface don't </FONT><BR><FONT 
  size=2>> works with large number of hosts in Nagios 2.0 current cvs 
  version</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> 
  </FONT><BR><FONT size=2>> Hi,</FONT> <BR><FONT size=2>> </FONT><BR><FONT 
  size=2>> the cause of this seems to be a too long list of services in 
  </FONT><BR><FONT size=2>> a servicegroup. My config includes something like 
  this:</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> - servicegroup 
  definition:</FONT> <BR><FONT size=2>> define servicegroup{</FONT> <BR><FONT 
  size=2>>          
  servicegroup_name       filesystems</FONT> 
  <BR><FONT size=2>>          
  alias                   
  filesystems</FONT> <BR><FONT 
  size=2>>          
  members                 
  host1,filesystems</FONT> <BR><FONT size=2>> }</FONT> <BR><FONT size=2>> 
  </FONT><BR><FONT size=2>> - service template which includes also the above 
  servicegroup </FONT><BR><FONT size=2>> name define service{</FONT> 
  <BR><FONT size=2>>          
  use                             
  generic-service</FONT> <BR><FONT size=2>> </FONT><BR><FONT 
  size=2>>          
  name                            
  check_filesystems</FONT> <BR><FONT 
  size=2>>          
  service_description             
  filesystems</FONT> <BR><FONT 
  size=2>>          
  normal_check_interval           
  15</FONT> <BR><FONT 
  size=2>>          
  max_check_attempts              
  3</FONT> <BR><FONT 
  size=2>>          
  servicegroups                   
  filesystems</FONT> <BR><FONT 
  size=2>>          
  register                        
  0</FONT> <BR><FONT 
  size=2>>          }</FONT> 
  <BR><FONT size=2>> </FONT><BR><FONT size=2>> - and for nearly every host 
  something like this</FONT> <BR><FONT size=2>> define service{</FONT> 
  <BR><FONT size=2>>          
  use                     
  check_filesystems</FONT> <BR><FONT 
  size=2>>          
  host_name               
  hostxx</FONT> <BR><FONT 
  size=2>>          
  check_command           
  check_nrpe!check_filesystems</FONT> <BR><FONT 
  size=2>>          
  normal_check_interval   15</FONT> <BR><FONT 
  size=2>>          
  contact_groups          
  GROUPX</FONT> <BR><FONT 
  size=2>>          }</FONT> 
  <BR><FONT size=2>> </FONT><BR><FONT size=2>> This means that the 
  servicegroup includes nearly 4k services. </FONT><BR><FONT size=2>> After 
  doubling MAX_XODTEMPLATE_INPUT_BUFFER in </FONT><BR><FONT size=2>> 
  xdata/xodtemplate.h from 65535 to 131070 the webinterface works again.</FONT> 
  <BR><FONT size=2>> </FONT><BR><FONT size=2>> Maybe the size of this 
  variable should be adjusted to </FONT><BR><FONT size=2>> something 
  higher.</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> 
  Regards</FONT> <BR><FONT size=2>> Marcus Hildenbrand</FONT> <BR><FONT 
  size=2>> </FONT><BR><FONT size=2>> </FONT><BR><FONT size=2>> > 
  Hi,</FONT> <BR><FONT size=2>> > </FONT><BR><FONT size=2>> > in a 
  test environment I try to monitor nearly 4.000 hosts. </FONT><BR><FONT 
  size=2>> Nagios core</FONT> <BR><FONT size=2>> > seems to run (checks 
  and notifications are beeing executed) but the </FONT><BR><FONT size=2>> 
  > webinterface always says:</FONT> <BR><FONT size=2>> > 
  </FONT><BR><FONT size=2>> > Whoops!</FONT> <BR><FONT size=2>> > 
  </FONT><BR><FONT size=2>> > Error: Could not read host and service 
  status information! ....</FONT> <BR><FONT size=2>> > ....</FONT> 
  <BR><FONT size=2>> > </FONT><BR><FONT size=2>> > The webinterface 
  seems to think Nagios is not running.</FONT> <BR><FONT size=2>> > 
  </FONT><BR><FONT size=2>> > After reducing the number of hosts to 3925 
  the webinterface works </FONT><BR><FONT size=2>> > again.</FONT> 
  <BR><FONT size=2>> > So there seems to be a limitation somewhere in the 
  cgi code.</FONT> <BR><FONT size=2>> > </FONT><BR><FONT size=2>> > 
  Any idea how to fix this?</FONT> <BR><FONT size=2>> > </FONT><BR><FONT 
  size=2>> > Thanks and Best Regards</FONT> <BR><FONT size=2>> > 
  Marcus Hildenbrand</FONT> <BR><FONT size=2>> > </FONT><BR><FONT 
  size=2>> > </FONT><BR><FONT size=2>> > 
  -------------------------------------------------------</FONT> <BR><FONT 
  size=2>> > SF.Net email is sponsored by: Discover Easy Linux Migration 
  </FONT><BR><FONT size=2>> Strategies </FONT><BR><FONT size=2>> > from 
  IBM. Find simple to follow Roadmaps, straightforward articles, 
  </FONT><BR><FONT size=2>> > informative Webcasts and more! Get 
  everything you need to get up to </FONT><BR><FONT size=2>> > speed, 
  fast. <A 
  href="http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click" 
  target=_blank>http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click</A></FONT> 
  <BR><FONT size=2>> > 
  _______________________________________________</FONT> <BR><FONT size=2>> 
  > Nagios-devel mailing list</FONT> <BR><FONT size=2>> > 
  Nagios-devel@lists.sourceforge.net</FONT> <BR><FONT size=2>> > <A 
  href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" 
  target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-devel</A></FONT> 
  <BR><FONT size=2>> </FONT><BR><FONT size=2>> </FONT><BR><FONT 
  size=2>> -------------------------------------------------------</FONT> 
  <BR><FONT size=2>> This SF.Net email is sponsored by the 'Do More With 
  Dual!' </FONT><BR><FONT size=2>> webinar happening July 14 at 8am PDT/11am 
  EDT. We invite you </FONT><BR><FONT size=2>> to explore the latest in dual 
  core and dual graphics </FONT><BR><FONT size=2>> technology at this free 
  one hour event hosted by HP, </FONT><BR><FONT size=2>> AMD, and 
  NVIDIA.  To register visit </FONT><BR><FONT size=2>> <A 
  href="http://www.hp.com/go/dualwebinar" 
  target=_blank>http://www.hp.com/go/dualwebinar</A> </FONT><BR><FONT 
  size=2>> _______________________________________________</FONT> <BR><FONT 
  size=2>> Nagios-users mailing list</FONT> <BR><FONT size=2>> 
  Nagios-users@lists.sourceforge.net</FONT> <BR><FONT size=2>> <A 
  href="https://lists.sourceforge.net/lists/listinfo/nagios-users" 
  target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT> 
  <BR><FONT size=2>> ::: Please include Nagios version, plugin version (-v) 
  and OS </FONT><BR><FONT size=2>> when reporting any issue. </FONT><BR><FONT 
  size=2>> ::: Messages without supporting info will risk being sent to 
  /dev/null</FONT> <BR><FONT size=2>> </FONT></P></BLOCKQUOTE></BODY></HTML>