Page 1 of 1

RAMDISK configuration

Posted: Tue Mar 15, 2016 4:34 am
by saptech
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

Re: RAMDISK configuration

Posted: Tue Mar 15, 2016 11:27 am
by rkennedy
What exactly are you looking to accomplish / move over to your ramdisk?

Re: RAMDISK configuration

Posted: Wed Mar 30, 2016 4:01 am
by saptech
I want to add these:

/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log

Re: RAMDISK configuration

Posted: Wed Mar 30, 2016 10:03 am
by lmiltchev
I want to add these:

/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
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...
Are you trying to move these two locations to RAM disk? What would be benefit over using (for example) "/var/nagiosramdisk/spool"?

Re: RAMDISK configuration

Posted: Thu Mar 31, 2016 3:22 am
by saptech
I want to move these 2 locations to ramdisk as well

Re: RAMDISK configuration

Posted: Thu Mar 31, 2016 10:15 am
by lmiltchev
These are the locations placed in RAM disk by our script:
/var/nagiosramdisk/tmp
/var/nagiosramdisk/spool
/var/nagiosramdisk/spool/checkresults
/var/nagiosramdisk/spool/xidpe
/var/nagiosramdisk/spool/perfdata
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?

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.

Re: RAMDISK configuration

Posted: Fri Apr 01, 2016 2:22 am
by saptech
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

Re: RAMDISK configuration

Posted: Fri Apr 01, 2016 10:04 am
by lmiltchev
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.

Re: RAMDISK configuration

Posted: Tue Apr 05, 2016 2:29 am
by saptech
ok that is a good advice

Thanks a lot

You can close the ticket

Re: RAMDISK configuration

Posted: Tue Apr 05, 2016 10:17 am
by lmiltchev
I am glad I could help!