<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>[Nagios-users] member character limit in hostgroups.cfg</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>it's in xdata/xodtemplate.h:</DIV>
<DIV> </DIV>
<DIV>#define MAX_XODTEMPLATE_INPUT_BUFFER 49152<BR></DIV>
<DIV>As you can see I've upped mine from the default of 8192 with no problems
but YMMV.</DIV>
<DIV> </DIV>
<DIV>Marc</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Jason Lancaster
[mailto:jason@skynetweb.com] <BR><B>Sent:</B> Fri 2/7/2003 4:00 PM
<BR><B>To:</B> nagios-users@lists.sourceforge.net <BR><B>Cc:</B>
<BR><B>Subject:</B> [Nagios-users] member character limit in
hostgroups.cfg<BR><BR></FONT></DIV>
<P><FONT size=2>I sent this to the devel list... but I'm beginning to think
that maybe this</FONT> <BR><FONT size=2>list would have been more
appropriate:</FONT> </P>
<P><FONT size=2>Pardon me if this is common knowledge, but I can't find talk
on any lists of</FONT> <BR><FONT size=2>a character limit for the member
definition in the hostgroups.cfg file.</FONT> <BR><FONT size=2>There seems to
be a hard-coded limit somewhere in Nagios 1.0, preventing a</FONT> <BR><FONT
size=2>members definition over about 8,000 characters to execute. The error
Nagios</FONT> <BR><FONT size=2>spits back is:</FONT> </P>
<P><FONT size=2>Error: Could not add object property in file</FONT> <BR><FONT
size=2>'/usr/local/nagios/etc/hostgroups.cfg' on line 16.</FONT> </P>
<P><FONT size=2>I won't flood you with line 16, but a snip of it would look
like:</FONT> </P>
<P><FONT size=2>members</FONT> <BR><FONT
size=2>SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318.....</FONT>
<BR><FONT size=2>(repeating for another 8,000 characters)</FONT> </P>
<P><FONT size=2>A wildcard definition appears to load all of the members
properly but</FONT> <BR><FONT size=2>unfortunately, I need to have separate
hostgroups with about 700 members in</FONT> <BR><FONT size=2>each.</FONT> </P>
<P><FONT size=2>It's hard to imagine that no one has run into this problem
before</FONT> <BR><FONT size=2>considering Nagios appears to have been written
to scale to this type of</FONT> <BR><FONT size=2>environment.</FONT> </P>
<P><FONT size=2>Any ideas would be appreciated, whether it's someone pointing
me to variable</FONT> <BR><FONT size=2>declarations in the source or a quick
hack (perhaps you can define a</FONT> <BR><FONT size=2>hostgroup twice with
the same hostgroup_name/alias?)</FONT> </P>
<P><FONT size=2>Thanks,</FONT> <BR><FONT size=2>Jason Lancaster</FONT>
</P><BR><BR>
<P><FONT size=2>-------------------------------------------------------</FONT>
<BR><FONT size=2>This SF.NET email is sponsored by:</FONT> <BR><FONT
size=2>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2
See!</FONT> <BR><FONT size=2><A
href="http://www.vasoftware.com">http://www.vasoftware.com</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">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
</P></BLOCKQUOTE>
</BODY>
</HTML>