Page 1 of 1

How to check free ram using nrpe?

Posted: Mon Mar 18, 2019 11:42 am
by realtebo
On the controller remote host I installed both nrpe and plugins

In the

Code: Select all

nrpe.cfg
file I can see

Code: Select all

command[check_mem]=/usr/local/nagios/libexec/custom_check_mem -n $ARG1$
But On the disk there is not file named

Code: Select all

custom_check_mem
What am I missing on my remote host config?

Re: How to check free ram using nrpe?

Posted: Mon Mar 18, 2019 4:10 pm
by cdienger
You may want to do a "locate custom_check_mem" to see if it's somewhere else on the system. Otherwise, you can find the script in the linux-nrpe-agent/subcomponents/extraplugins/plugins directory of http://assets.nagios.com/downloads/nagi ... ent.tar.gz.

Re: How to check free ram using nrpe?

Posted: Tue Mar 19, 2019 11:11 am
by realtebo

Code: Select all

# locate custom_check_mem
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

Re: How to check free ram using nrpe?

Posted: Tue Mar 19, 2019 11:13 am
by realtebo
Question...

I downloaded and installed both

Code: Select all

https://downloads.sourceforge.net/project/nagios/nrpe-3.x/nrpe-3.2.1.tar.gz
and

Code: Select all

https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
What is the agent ?! I never see / used before

Re: How to check free ram using nrpe?

Posted: Tue Mar 19, 2019 2:47 pm
by cdienger
The agent is what is installed on the client machine so the Nagios server can communicate with the client machine and run plugins found on it. Going foward and if the machines support it, I would recommend following the steps in https://support.nagios.com/kb/article/n ... rpe-8.html which should install the agent and plugins in one step.

Re: How to check free ram using nrpe?

Posted: Tue Apr 09, 2019 5:12 am
by realtebo
I wrote down all my notes about setup of nagios on controller machine, and various agent, plugins, etc..

https://gist.github.com/realtebo/8d6a48 ... 6c4baea94a

This topic can be closed

Re: How to check free ram using nrpe?

Posted: Tue Apr 09, 2019 2:00 pm
by cdienger
Thanks for sharing!