Re: [Nagios-devel] member character limit in hostgroups.cfg
Posted: Fri Feb 07, 2003 6:47 pm
On Fri, 07 Feb 2003, Jason Lancaster wrote:
> 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:
:
You are most likely running into the max line character limit for template
data, defined in
xdata/xodtemplate.h(line 34):
#define MAX_XODTEMPLATE_INPUT_BUFFER 8196
used in xdata/xodtemplate.c(line 98, function xodtemplate_read_config_data):
char input[MAX_XODTEMPLATE_INPUT_BUFFER];
You could double this and re-compile nagios. I don't see any way to do line
continuations or other ways of breaking it up into multiple lines.
--
I think the internet should shut down at night
- vvviper|a
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> 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:
:
You are most likely running into the max line character limit for template
data, defined in
xdata/xodtemplate.h(line 34):
#define MAX_XODTEMPLATE_INPUT_BUFFER 8196
used in xdata/xodtemplate.c(line 98, function xodtemplate_read_config_data):
char input[MAX_XODTEMPLATE_INPUT_BUFFER];
You could double this and re-compile nagios. I don't see any way to do line
continuations or other ways of breaking it up into multiple lines.
--
I think the internet should shut down at night
- vvviper|a
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]