member character limit in hostgroups.cfg

Marc Powell mpowell at ena.com
Sat Feb 8 00:27:33 CET 2003


it's in xdata/xodtemplate.h:
 
#define MAX_XODTEMPLATE_INPUT_BUFFER    49152

As you can see I've upped mine from the default of 8192 with no problems but YMMV.
 
Marc

	-----Original Message----- 
	From: Jason Lancaster [mailto:jason at skynetweb.com] 
	Sent: Fri 2/7/2003 4:00 PM 
	To: nagios-users at lists.sourceforge.net 
	Cc: 
	Subject: [Nagios-users] member character limit in hostgroups.cfg
	
	

	I sent this to the devel list... but I'm beginning to think that maybe this 
	list would have been more appropriate: 

	Pardon me if this is common knowledge, but I can't find talk on any lists of 
	a character limit for the member definition in the hostgroups.cfg file. 
	There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a 
	members definition over about 8,000 characters to execute. The error Nagios 
	spits back is: 

	Error: Could not add object property in file 
	'/usr/local/nagios/etc/hostgroups.cfg' on line 16. 

	I won't flood you with line 16, but a snip of it would look like: 

	members 
	SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... 
	(repeating for another 8,000 characters) 

	A wildcard definition appears to load all of the members properly but 
	unfortunately, I need to have separate hostgroups with about 700 members in 
	each. 

	It's hard to imagine that no one has run into this problem before 
	considering Nagios appears to have been written to scale to this type of 
	environment. 

	Any ideas would be appreciated, whether it's someone pointing me to variable 
	declarations in the source or a quick hack (perhaps you can define a 
	hostgroup twice with the same hostgroup_name/alias?) 

	Thanks, 
	Jason Lancaster 



	------------------------------------------------------- 
	This SF.NET email is sponsored by: 
	SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! 
	http://www.vasoftware.com 
	_______________________________________________ 
	Nagios-users mailing list 
	Nagios-users at lists.sourceforge.net 
	https://lists.sourceforge.net/lists/listinfo/nagios-users 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030207/cc629197/attachment.html>


More information about the Users mailing list