RAMDISK configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
saptech
Posts: 53
Joined: Thu Dec 10, 2015 11:19 am

RAMDISK configuration

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

Re: RAMDISK configuration

Post by rkennedy »

What exactly are you looking to accomplish / move over to your ramdisk?
Former Nagios Employee
saptech
Posts: 53
Joined: Thu Dec 10, 2015 11:19 am

Re: RAMDISK configuration

Post by saptech »

I want to add these:

/usr/local/nagios/var/spool
/usr/local/nagios/var/*.log
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RAMDISK configuration

Post 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"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
saptech
Posts: 53
Joined: Thu Dec 10, 2015 11:19 am

Re: RAMDISK configuration

Post by saptech »

I want to move these 2 locations to ramdisk as well
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RAMDISK configuration

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
saptech
Posts: 53
Joined: Thu Dec 10, 2015 11:19 am

Re: RAMDISK configuration

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RAMDISK configuration

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
saptech
Posts: 53
Joined: Thu Dec 10, 2015 11:19 am

Re: RAMDISK configuration

Post by saptech »

ok that is a good advice

Thanks a lot

You can close the ticket
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RAMDISK configuration

Post by lmiltchev »

I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked