check_snmp version different to nagios-plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

check_snmp version different to nagios-plugins

Post by Box293 »

I was playing around with check_snmp and I'm a little confused, I think there is a version mismatch between what is on the host vs what is supposed to come with nagios-plugins.

Specifically there is an updated version v1.4.15-27-gf9172 of check_snmp documented here and it states that it is part of nagios-plugins 1.4.15.

On my most I run yum info nagios-plugins I get the output:

Code: Select all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * epel: mirror.optus.net
 * extras: mirror.optus.net
 * updates: mirror.optus.net
Available Packages
Name       : nagios-plugins
Arch       : i386
Version    : 1.4.15
Release    : 2.el5.rf
Size       : 1.6 M
Repo       : dag
Summary    : Host/service/network monitoring program plugins for Nagios
URL        : http://nagiosplug.sourceforge.net/
License    : GPL
Description: This package contains the basic plugins necessary for use with the
So it looks like I have the right version of nagios-plugins installed.

When I run check_snmp -V I get the output:

Code: Select all

check_snmp v2021 (nagios-plugins 1.4.13)
Here you can see this version does not match up with the version that is supposed to come with nagios-plugins.

I've confirmed this on my production Nagios XI VM 2011R1.7 (upgraded since v2009 days) and a freshly deployed 2011R1.7 VM, both running on ESXi.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: check_snmp version different to nagios-plugins

Post by mguthrie »

We actually install the nagios-plugin from source, since we add a few extras specifically for XI. The source install of the plugins pack is 1.4.13, which is probably why you're seeing the older SNMP plugin.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_snmp version different to nagios-plugins

Post by Box293 »

Fair enough.

How do I upgrade to the latest version?

I tried the following however it is still showing version 1.4.13

Code: Select all

[root@VAULT23 libexec]# yum install nagios-plugins
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * epel: mirror.optus.net
 * extras: mirror.optus.net
 * updates: mirror.optus.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nagios-plugins.i386 0:1.4.15-2.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================
 Package                           Arch                    Version                            Repository              Size
===========================================================================================================================
Installing:
 nagios-plugins                    i386                    1.4.15-2.el5.rf                    dag                    1.6 M

Transaction Summary
===========================================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
nagios-plugins-1.4.15-2.el5.rf.i386.rpm                                                             | 1.6 MB     00:06
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : nagios-plugins                                                                                      1/1

Installed:
  nagios-plugins.i386 0:1.4.15-2.el5.rf

Complete!
[root@VAULT23 libexec]# ./check_snmp -V
check_snmp v2021 (nagios-plugins 1.4.13)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: check_snmp version different to nagios-plugins

Post by mguthrie »

The latest version is probably not going to be availabe in yum, and even if it was it probably wouldn't install to the right location. I would make a backup of your /usr/local/nagios/libexec directory, and then install the new plugins pack from source.
http://www.nagios.org/download/plugins/

Download to /tmp
untar
cd <plugins directory>
./configure
make clean
make
make install
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_snmp version different to nagios-plugins

Post by Box293 »

Bingo that seems to have done the trick.

Thanks very much :D
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: check_snmp version different to nagios-plugins

Post by mguthrie »

You bet!
Locked