- marked as enhancement
The include files limit reached
Hello Tildeslash,
I got the following message in a test environment and monit will not start.
/home/wlpuser/monit/config/serv_zvr.cfg:1: include files limit reached ''
After removing some cfg files every thing works like expected.
A plan to make an option available (with "set limit") to configure the limit of the include file loaded. At the time the limit is hard coded, see ./src/l.l or ./src/lex.yy.c.
#define MAX_STACK_DEPTH 512 int buffer_stack_ptr = 0; struct buffer_stack_s { int lineno; char *currentfile; YY_BUFFER_STATE buffer; } buffer_stack[MAX_STACK_DEPTH];
A suggestion only, but somethimes this is a problem in some more complex environments are using include files to make the configuration more clearly.
Thanks for all help,
with regards,
Lutz
p.s.
The limit is used with monit in general, I done some testion with 5.29.0, Linux and AIX, only.
Comments (6)
-
repo owner -
repo owner - changed status to resolved
Fixed: Issue
#1011: Increase the include files count limit from 512 to 1024.→ <<cset 137b42f83247>>
-
reporter Hello Tildeslash,
the new limit is 1024 now, increased from 512.
Add a proper information to the man page also, please, see https://mmonit.com/monit/documentation/monit.html#INCLUDE-FILESA "set limit" should became available in the future, I think.
With regards,
Lutz -
reporter - changed status to open
Hello, add a information to the man page also.
With regards, Lutz
-
repo owner - changed status to resolved
fix issue
#1011: document the include files limitation→ <<cset 157303a1fa08>>
-
reporter Hello,
thank you for adding information about the limit to the documentation. From my point of view, limits are normal, but limits are ugly, especially as long as you can not find any information about them.Thanks for all your help,
with regards,
Lutz - Log in to comment