Page 1 of 1
Nagios ramdisk checks
Posted: Thu Sep 29, 2016 11:45 am
by benhank
Hey guys!
I just installed a ramdisk on my xi5 systems. Are there any checks or plugins out there that monitor the ramdisk? I looked in the exchange but I cant find any.
Re: Nagios ramdisk checks
Posted: Thu Sep 29, 2016 11:56 am
by rkennedy
There aren't, you could probably just use the check_disk check to specify the path for it though and go that route.
If not just the capacity, what metrics are you looking to monitor in it?
Re: Nagios ramdisk checks
Posted: Thu Sep 29, 2016 1:18 pm
by benhank
well this turned out to be a timely post. I assigned 1.5 gb of space to the ramdisk but according to the syslog its out of space!
The metrics I am looking for would include capacity, and to see if it is running or if there are any errors, hung files the normal disk stuff you would want to keep an eye on.
Should I make a seperate post for the out of space issue?
the errors are:
Code: Select all
Error: Unable to update status data file '/var/nagiosramdisk/status.dat': No space left on device
there are more erros but this is the gist of it.
Re: Nagios ramdisk checks
Posted: Thu Sep 29, 2016 4:46 pm
by ssax
You should just be able to use the standard linux disk checks to check them.
Try to find what files are filling it up and we can troubleshoot from there.
Thank you
Re: Nagios ramdisk checks
Posted: Thu Sep 29, 2016 4:48 pm
by tgriep
When you run the check_disk command
Code: Select all
/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /var/nagiosramdisk/
You get this output, is this what you are looking for?
Code: Select all
DISK OK - free space: /var/nagiosramdisk 108 MB (99% inode=99%);| /var/nagiosramdisk=1MB;90;100;0;110
Re: Nagios ramdisk checks
Posted: Fri Sep 30, 2016 10:09 am
by benhank
that works. you can lock this up, since the ramdisk is full and causeing me other issues i have to start a new thread.
Re: Nagios ramdisk checks
Posted: Fri Sep 30, 2016 10:26 am
by dwhitfield
Glad to hear this particular issue is resolved. I am going to lock the thread. Thank you for using the Nagios forums!