[Nagios-devel] Configuration file option length limit?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Configuration file option length limit?

Post by Guest »

Hi,

One of my group member definition lines seems to be causing a rather strange
error when I run it through config validation:



Nagios 1.0b5
Copyright (c) 1999-2002 Ethan Galstad (nagios@nagios.org)
Last Modified: 08-12-2002
License: GPL

Reading configuration data...

Error: NULL variable value in object definition.
Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg'
on line 15692.


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation on the main and host config files, as well as the
'Whats New' section to find out what has changed.



The contents of the line is 9587 characters long.

If I reduce the length of the line by deleting host entries from the end of it
until the line is 8169 characters long I get a warning about the hosts not
being a member of a group but these are only warnings so Nagios starts. I'm
guessing that this is hitting a buffer size at 8192 characters and anything
bigger is causing an overflow.

I've tried increasing the MAX_INPUT_BUFFER size in common/common.h and
recompiling (As the comment seems to suggest that this is the limitation on the
max input buffer for reading files) but this seems to have no effect. It could
well be that I'm tweaking the wrong thing :)

Is this a known problem or is anyone else experiencing this too? My workaround
for now is just to remove the hosts from the group to keep things running.

My apologies for spamming the list if this question has been seen before but
having searched the archive I couldn't find any mention of it.

Ian.

Ian Norton
Network Support
Information Systems Services
Lancaster University







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: i.norton@lancaster.ac.uk
Locked