Line Limit for a Nagios Configuration
Marc Powell
marc at ena.com
Wed Jun 9 22:55:05 CEST 2004
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.
--
Marc
-------------------------------------------------------
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