Page 1 of 1

verify ramdisk

Posted: Fri Sep 13, 2019 12:39 pm
by dbcummings
Hello,

I am trying to verify that ramdisk is really being used. I have it configured on a server monitoring 250 hosts. When I run du -sh on /var/nagiosramdisk, I only get 6.3M of used space. The ramdisk is configured for 500m. How do I confirm ramdisk is being used by Nagios XI?

Re: verify ramdisk

Posted: Fri Sep 13, 2019 1:41 pm
by lmiltchev
If ramdisk is not configured properly (not running), you would be losing your performance graphs. Having said that, you could use the "watch" command to observe the perdata files in the "xidpe" and "perfdata" directories.

Code: Select all

watch -n 1 'ls /var/nagiosramdisk/spool/xidpe | wc -l'
watch -n 1 'ls /var/nagiosramdisk/spool/perfdata | wc -l'
Run each command, then wait for a while and watch the output. You should see some numbers showing up (perfdata file), then the number going to 0 (as the cron moves the files from the xidpe to to the perfdata directory, and when the npcd processes the files in the perfdata directory). If the number of perdata files keeps growing up, and they are not being processed, then there must be something mis-configured in your ramdisk.

Let us know if this helps.

Re: verify ramdisk

Posted: Mon Sep 16, 2019 6:54 am
by dbcummings
That works. Thank you! This is solved.

Re: verify ramdisk

Posted: Mon Sep 16, 2019 7:06 am
by scottwilkerson
dbcummings wrote:That works. Thank you! This is solved.
Great!

Locking