member character limit in hostgroups.cfg

Jason Lancaster jason at skynetweb.com
Fri Feb 7 23:00:20 CET 2003


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




More information about the Users mailing list