No stock Mem_Checks for Linux?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

No stock Mem_Checks for Linux?

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No stock Mem_Checks for Linux?

Post 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
Attachments
custom_check_mem.zip
(1.23 KiB) Downloaded 140 times
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: No stock Mem_Checks for Linux?

Post by jbruyet »

Thanks scottwilkerson but I'm running my Nagios on FreeBSD.

Thanks,

Joe B
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: No stock Mem_Checks for Linux?

Post 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.
Locked