<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>RE : [Nagios-users] Re: [Nagios-devel] webinterface don't works with large number of hosts in Nagios 2.0 current cvs version</TITLE>
</HEAD>
<BODY>

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

</BODY>
</HTML>