How to check free ram using nrpe?

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
realtebo
Posts: 19
Joined: Tue Nov 28, 2017 3:56 am

How to check free ram using nrpe?

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to check free ram using nrpe?

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
realtebo
Posts: 19
Joined: Tue Nov 28, 2017 3:56 am

Re: How to check free ram using nrpe?

Post by realtebo »

Code: Select all

# locate custom_check_mem
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
realtebo
Posts: 19
Joined: Tue Nov 28, 2017 3:56 am

Re: How to check free ram using nrpe?

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to check free ram using nrpe?

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
realtebo
Posts: 19
Joined: Tue Nov 28, 2017 3:56 am

Re: How to check free ram using nrpe?

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to check free ram using nrpe?

Post by cdienger »

Thanks for sharing!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked