How many macros for $USERX$?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

How many macros for $USERX$?

Post by mikew »

I am working with a company that wants to use 30-40 $USERX$ macros in the resource.cfg because they have different passwords and usernames for several environments. The question is how many can they use?

I see in the official Nagios documentation (Written by Ethan several years ago) says that you can use multiple resource.cfg files and Nagios will "read them all". But the resource.cfg file itself says it will support 32. Just wondering if 32 is really the limit.

Thanks.
Mike Weber

Nagios Training/Consulting
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How many macros for $USERX$?

Post by abrist »

I thought this was increased to 256:
The nth user-definable macro. User macros can be defined in one or more resource files. Nagios supports up to 256 user macros ($USER1$ through $USER256$).
From:
http://nagios.sourceforge.net/docs/nagi ... .html#user:
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked