Page 1 of 1

No stock Mem_Checks for Linux?

Posted: Fri Mar 28, 2014 5:24 pm
by jbruyet
Hey all, I'm trying to find a way to check memory on some of my Linux servers and about all I can find are scripts that people have written (some of which are quite complex). Are there no stock memory checks for Linux in Nagios?

Thanks,

Joe B

Re: No stock Mem_Checks for Linux?

Posted: Sun Mar 30, 2014 4:41 pm
by scottwilkerson
Attached is one of my favorites, one caveat is it need the dc package (which on RHEL based systems is actually part of the bc package).
e.g

Code: Select all

yum install bc -y
or Ubuntu, I believe it is

Code: Select all

apt-get install bc

Re: No stock Mem_Checks for Linux?

Posted: Thu Apr 03, 2014 11:46 am
by jbruyet
Thanks scottwilkerson but I'm running my Nagios on FreeBSD.

Thanks,

Joe B

Re: No stock Mem_Checks for Linux?

Posted: Thu Apr 03, 2014 1:20 pm
by slansing
Ah, you said Linux servers, I suggest next time you let us know exactly what distro you are talking about. I just looked it up and it looks like freeBSD supports the 'bc' package as well, you should be able to install it with your package management system.