Page 1 of 1

check_swap

Posted: Thu Apr 30, 2020 6:42 am
by Pratapa
Hi,

On one of the client machines, check_swap plugin is present and its version is 2.2.1.

I need check_swap plugin of version 2.2. How can I do this.

I need this because -n option is available in 2.2 version which is not available in 2.2.1 version.

Re: check_swap

Posted: Fri May 01, 2020 12:29 pm
by benjaminsmith
Hello Pratapa,

Thanks for visiting the Nagios Community Forum. You download older releases of the Nagios Plugins from the GitHub page:
https://github.com/nagios-plugins/nagio ... s/releases

Then compile to a temporary directory and copy over check_swap to your plugin directory.

For example:

Code: Select all

cd /tmp/
wget https://nagios-plugins.org/download/nagios-plugins-2.2.0.tar.gz
tar zxf nagios-plugins-2.2.0.tar.gz
cd /tmp/nagios-plugins-release-2.2.0/
./tools/setup
./configure
make
cd /tmp/nagios-plugins-2.2.0/plugins
./check_swap -V