Line Limit for a Nagios Configuration

Brian E. Seppanen seppy at chartermi.net
Thu Jun 10 14:05:11 CEST 2004


On Wed, 9 Jun 2004, Marc Powell wrote:

> Brian E. Seppanen <mailto:seppy at chartermi.net> wrote:
> > Hi Folks:
> > 
> > Is there some sort of line limit for nagios when it reads in a
> > configuration file. 
> > 
> > The reason I ask is I have to create daily a configuration file that
> > monitors about 3952 hosts, and growing each day.   When I create my
> > configuration I get an error when doing the syntax check.
> > 
> > Error: Could not add object property in file
> > '/usr/local/nagios/etc/devic.cfg' on line 27670. 
> 
> There is a limit on how long a line can be. It's defined in
> xdata/xodtemplate.h:
> 
> #define MAX_XODTEMPLATE_INPUT_BUFFER    49152
> 
> I believe the default is 8192 bytes but as you can see, I've raised mine
> to 49152 (and higher) with no problems.

Thanks for the info, that appears to have fixed the issue.  I took the 
length of my hostgroup members lines in bytes using wc and added some 
wiggle room for growth and that seems to work.

Thanks again.


Brian Seppanen
seppy at chartermi.net
906-475-0107 ext 1040


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list