Nagios ramdisk checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Nagios ramdisk checks

Post 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.
Last edited by dwhitfield on Fri Sep 30, 2016 10:27 am, edited 1 time in total.
Reason: marking with green check mark
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios ramdisk checks

Post 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?
Former Nagios Employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagios ramdisk checks

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios ramdisk checks

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios ramdisk checks

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagios ramdisk checks

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios ramdisk checks

Post by dwhitfield »

Glad to hear this particular issue is resolved. I am going to lock the thread. Thank you for using the Nagios forums!
Locked