Page 1 of 1
nagios plugins upgrade
Posted: Wed Jan 26, 2022 7:51 am
by elinagios
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

Re: nagios plugins upgrade
Posted: Wed Jan 26, 2022 7:33 pm
by ssax
You can see the version by running one of the plugins like this:
Code: Select all
/usr/local/nagios/libexec/check_http -V
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:
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
Test it out:
Code: Select all
cd plugins
./check_snmp rest of the comand
Then if everything looks good, copy it in place manually:
Code: Select all
\cp -f plugins/check_snmp /usr/local/nagios/libexec/check_snmp
To undo the change in the event of an issue:
Code: Select all
\cp -f /usr/local/nagios/libexec/check_snmpOLD /usr/local/nagios/libexec/check_snmp
Re: nagios plugins upgrade
Posted: Fri Jan 28, 2022 9:58 am
by elinagios
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
Posted: Fri Jan 28, 2022 11:44 am
by ssax
No, they aren't required, they are temporary files from the compile.
Re: nagios plugins upgrade
Posted: Mon Jan 31, 2022 6:48 am
by elinagios
Thank you very much, you can close the post.