Page 1 of 1

Clarification on number of $USERn$ variables supported

Posted: Thu Jan 09, 2014 9:38 am
by SoulA
The documentation is a bit misleading saying that 256 are supported but the example only says that 32 are. I did find this bug that says it should be changed.

http://nagios.sourceforge.net/docs/nagi ... .html#user
http://tracker.nagios.org/view.php?id=242

The example resource.cfg only talks about 32 as well:

http://sourceforge.net/p/nagios/nagiosc ... rce.cfg.in

Can someone confirm what the actual number is in the 3.x versions of Nagios and maybe update everything to reflect the correct number.

Re: Clarification on number of $USERn$ variables supported

Posted: Thu Jan 09, 2014 10:57 am
by abrist
256 is correct. I made those changes to the docs, I must have missed a few entries. If you could open a new ticket on the tracker, noting where the 32 value still exists, I will get it fixed up.

Re: Clarification on number of $USERn$ variables supported

Posted: Thu Jan 09, 2014 11:11 am
by SoulA
Here is the newly created issue:

http://tracker.nagios.org/view.php?id=557

Also, I'm guessing that this number can be changed by altering some hard coded value in the Nagios code somewhere and recompiling. Is that assumption correct? If so any ideas where that value might be?

Re: Clarification on number of $USERn$ variables supported

Posted: Thu Jan 09, 2014 12:08 pm
by abrist
It may be a bit more complicated depending on how the memory allocation in core is coded.
SoulA wrote:If so any ideas where that value might be?
This would be a question for one or our core devs. I will email Eric a link to this thread and see if we can get his input.

Re: Clarification on number of $USERn$ variables supported

Posted: Tue Jan 14, 2014 10:48 am
by abrist
I just heard back from Eric - "It is the MAX_USER_MACROS macro in include/macros.h."