Hello
is there a way to check current Nagios plugins version in XI and how does one upgrade those? In November there was news that Nagios Plugins 2.4.0 Released and i know plenty of people here are waiting for the "check_snmp: Add -M to multiply results by a given factor" option. Or is there a way how to get only one plugin from that? In that download tarball there are only check_snmp.c and check_snmp.t files which dont seem to be the corret ones
nagios plugins upgrade
Re: nagios plugins upgrade
You can see the version by running one of the plugins like this:
I probably wouldn't upgrade them all as development hasn't tested them all against the XI wizards else they would have included them in the XI update.
Usually, when I want to upgrade a specific plugin I do this:
Test it out:
Then if everything looks good, copy it in place manually:
To undo the change in the event of an issue:
Code: Select all
/usr/local/nagios/libexec/check_http -V
Usually, when I want to upgrade a specific plugin I do this:
Code: Select all
cd
cp -p /usr/local/nagios/libexec/check_snmp /usr/local/nagios/libexec/check_snmpOLD
wget https://github.com/nagios-plugins/nagios-plugins/archive/refs/tags/release-2.4.0.zip
unzip release-2.4.0.zip
cd nagios-plugins-release-2.4.0
./tools/setup
./configure
make all
Code: Select all
cd plugins
./check_snmp rest of the comand
Code: Select all
\cp -f plugins/check_snmp /usr/local/nagios/libexec/check_snmp
Code: Select all
\cp -f /usr/local/nagios/libexec/check_snmpOLD /usr/local/nagios/libexec/check_snmp
Re: nagios plugins upgrade
Great answer, very helpful. Are the check_snmp .c and .o files also required for some reason? After the steps you guided me, they appear in same directory.
Re: nagios plugins upgrade
No, they aren't required, they are temporary files from the compile.
Re: nagios plugins upgrade
Thank you very much, you can close the post.