temp_file vs. temp_path

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bcamp
Posts: 30
Joined: Thu May 23, 2013 2:54 pm

temp_file vs. temp_path

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: temp_file vs. temp_path

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bcamp
Posts: 30
Joined: Thu May 23, 2013 2:54 pm

Re: temp_file vs. temp_path

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: temp_file vs. temp_path

Post 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.
Former Nagios Employee
Locked