New check_snmp in CVS

Subhendu Ghosh sghosh at sghosh.org
Mon Jul 25 22:49:38 CEST 2005


On Mon, 25 Jul 2005, Andrew Cruse wrote:

> nagios-users-admin at lists.sourceforge.net wrote:
>>
>> What version of net-snmp are you using?  I had it working with 5.1.2.
>>
>
> That may be part of the problem -- I have two installations:
>
> [root at monitor2 nagios-plugins-1.4]# /usr/local/bin/snmpwalk -V
> NET-SNMP version: 5.2.1
> [root at monitor2 nagios-plugins-1.4]# /usr/bin/snmpwalk -V
> UCD-snmp version: 4.2.5
>
> One current, and one pretty ancient...
>
> If this helps, here's what I've been doing to try to compile it:
>
> Downloaded check_snmp.c from CVS and stuck in the /plugins/ directory of
> my plugins source, overwriting the old check_snmp.c
> ./configure
> make
>
> Which is where the error crops up.  Since I've got two versions of
> NET-SNMP installed, is there anything I need to pass to configure on the
> commandline to point it at the right installation to use?  Or can I
> just:
>
> gcc -c check_snmp.c
>
> Thanks,
>
> Andrew
>

When you run configure - make sure the /usr/local/bin is earlier in the 
path so the newer version of snmp* will get selected.

-- 
-sg


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list