Page 1 of 1

temp_file vs. temp_path

Posted: Tue Oct 13, 2015 9:07 am
by bcamp
Good morning. I just ran my upgrade to NagiosXI 5.2, and was reviewing my nagios.cfg since it was an update to a new major version. I've got a question about two of the keys in nagios.cfg.

I'm using a ramdisk, it was configured by following the XI Utilizing a Ram Disk pdf. While reviewing my settings, I noticed I've got the following

Code: Select all

temp_file=/usr/local/nagios/var/nagios.tmp
temp_path=/ramdisk/tmp
I reviewed the main config file documentation on the difference between these two keys. They sound very similar in function, I'm really not able to tell if these settings are talking about the same temp file, or if they create two different files based on different processes. Should I adjust my temp_file setting to point to the tmp directory on the ramdisk?

Code: Select all

temp_file=/ramdisk/tmp/nagios.tmp
temp_path=/ramdisk/tmp
Or should I just leave it as is? I've got several nagios.tmp files in /usr/local/nagios/var, but nothing in /ramdisk/tmp. Is my temp_path setting being ignored due to temp_file, or do they serve different purposes?

Re: temp_file vs. temp_path

Posted: Tue Oct 13, 2015 2:22 pm
by tgriep
You could move the temp_file to the ramdisk if you like, but the file is infrequently created and probably won't gain very much performance for the system.

Re: temp_file vs. temp_path

Posted: Thu Oct 15, 2015 2:17 pm
by bcamp
Sorry for the late reply. It's been a very busy week.

Thank you for the info. I'll just leave well enough alone. My scheduled events over time window is typically a nice, flat box. The system isn't struggling to keep up or anything. I'll just keep what I've got.

Thanks!

Re: temp_file vs. temp_path

Posted: Thu Oct 15, 2015 2:42 pm
by rkennedy
You're welcome. I'm going to close this thread, but feel free to start another one if you need more assistance in the future.