verify ramdisk

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

verify ramdisk

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

Re: verify ramdisk

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: verify ramdisk

Post by dbcummings »

That works. Thank you! This is solved.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: verify ramdisk

Post by scottwilkerson »

dbcummings wrote:That works. Thank you! This is solved.
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked