Page 1 of 1

is there a max length for file names

Posted: Tue Oct 28, 2014 2:45 pm
by pkarr
Hi,
We are in the process of designing our new Nagios environment. We want to have descriptive names for our templates, service check, hostgroups, et al. The names are starting to get kind of long so I was wondering if there was a maximum length for a file name? Also, how about spaces in file names? I've talked my boss out of using them in everything but HostGroup names.

thanks,
Penny


Penny Karr | IT Infrastructure Monitoring
Harvard Vanguard Medical Associates, an Affiliate of Atrius Health
254 Second Avenue | Needham, MA 02494
P (781) 292-1853 | F (781 292-1980 | http://www.harvardvanguard.org
Email: [email protected]

Re: is there a max length for file names

Posted: Tue Oct 28, 2014 4:40 pm
by sreinhardt
Linux\Unix max path names are ~252 characters last I checked. (technically 254 or 256, but bsd has a smaller default so I artificially limit myself) I do not believe nagios should have any known issues with paths that match the max size for filenames. As for internal hostnames, I would honestly have to check, but I doubt we have any hard limits that you would reasonably hit. If you'd like I can check on the absolute max sizes internal to nagios, but I think you were just asking about file name size, so I'll stop here.