nagios plugins upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elinagios
Posts: 125
Joined: Thu Feb 16, 2017 3:45 am

nagios plugins upgrade

Post 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 :)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nagios plugins upgrade

Post 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
elinagios
Posts: 125
Joined: Thu Feb 16, 2017 3:45 am

Re: nagios plugins upgrade

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nagios plugins upgrade

Post by ssax »

No, they aren't required, they are temporary files from the compile.
elinagios
Posts: 125
Joined: Thu Feb 16, 2017 3:45 am

Re: nagios plugins upgrade

Post by elinagios »

Thank you very much, you can close the post.
Locked