Dear all,
how can I add non-default directories/files to use ramdisk?
I followed https://assets.nagios.com/downloads/nag ... giosXI.pdf
but I cannot find any details about how to add files to a Ramdisk, could you please advice?
Thanks in advance
RAMDISK configuration
Re: RAMDISK configuration
What exactly are you looking to accomplish / move over to your ramdisk?
Former Nagios Employee
Re: RAMDISK configuration
I want to add these:
/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
Re: RAMDISK configuration
These are "regular" (default) locations... The idea is NOT to use these locations but use a RAM disk instead in order to improve I\O, and speed things up...I want to add these:
/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
Are you trying to move these two locations to RAM disk? What would be benefit over using (for example) "/var/nagiosramdisk/spool"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: RAMDISK configuration
I want to move these 2 locations to ramdisk as well
Re: RAMDISK configuration
These are the locations placed in RAM disk by our script:
In regards to putting "/usr/local/nagios/var/*.log" in a RAM disk - I don't see why you would want to do this. Can you elaborate?
I am not even sure it is going to work but to be fair - I haven't tried it.
Can you show us ALL of the locations (custom paths) that you would like to put in RAM disk? We will try to test this in house, and provide you with a solution.
To clarify, you don't want to use "/var/nagiosramdisk/spool" instead of "/usr/local/nagios/var/spool". Instead, you would like to put "/usr/local/nagios/var/spool" in RAM disk. Is this correct?/var/nagiosramdisk/tmp
/var/nagiosramdisk/spool
/var/nagiosramdisk/spool/checkresults
/var/nagiosramdisk/spool/xidpe
/var/nagiosramdisk/spool/perfdata
In regards to putting "/usr/local/nagios/var/*.log" in a RAM disk - I don't see why you would want to do this. Can you elaborate?
I am not even sure it is going to work but to be fair - I haven't tried it.
Can you show us ALL of the locations (custom paths) that you would like to put in RAM disk? We will try to test this in house, and provide you with a solution.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: RAMDISK configuration
Hi
if possible, move the following files to a RAMDISK:
/usr/local/nagios/var/status.dat
/usr/local/nagios/var/objects.cache
/usr/local/nagios/var/host-perfdata & service-perfdata
/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
if possible, move the following files to a RAMDISK:
/usr/local/nagios/var/status.dat
/usr/local/nagios/var/objects.cache
/usr/local/nagios/var/host-perfdata & service-perfdata
/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
Re: RAMDISK configuration
This is not going to work. Even if you were somehow able to make it work (after heavy mods), it wouldn't be supported.
Keep in mind that all the items on the RAMDISK are deleted on reboot. You will lose of your historical data. The nagios.log and the archives will be wiped out. You will have other issues as well - nagios and ndo2db wouldn't start on reboot... In a nushell - this is a really bad idea.
I would recommend that you follow our official documentation for utilizing a RAM disk in Nagios XI.
Keep in mind that all the items on the RAMDISK are deleted on reboot. You will lose of your historical data. The nagios.log and the archives will be wiped out. You will have other issues as well - nagios and ndo2db wouldn't start on reboot... In a nushell - this is a really bad idea.
I would recommend that you follow our official documentation for utilizing a RAM disk in Nagios XI.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: RAMDISK configuration
ok that is a good advice
Thanks a lot
You can close the ticket
Thanks a lot
You can close the ticket
Re: RAMDISK configuration
I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!