New check_snmp in CVS
Subhendu Ghosh
sghosh at sghosh.org
Mon Jul 25 23:25:52 CEST 2005
On Mon, 25 Jul 2005, Andrew Cruse wrote:
> Subhendu Ghosh wrote:
> >> 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
>>
>> When you run configure - make sure the /usr/local/bin is
>> earlier in the path so the newer version of snmp* will get selected.
>
> It looks like it's finding the right version:
>
> checking for snmpget... /usr/local/bin/snmpget
> checking for snmpgetnext... /usr/local/bin/snmpgetnext
> checking for Net::SNMP perl module... found
>
> But still errors out. Just for my sanity, I tried compiling it on two
> other systems. One is the same OS (RH 7.3) as the original system, the
> other a more modern OS (RHEL3) each with varying versions of net-snmp.
> Both other systems errored out with this:
>
> source='check_snmp.c' object='check_snmp.o' libtool=no \
> depfile='.deps/check_snmp.Po' tmpdepfile='.deps/check_snmp.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib
> -I/usr/include/ldap -I/usr/include -I/usr/kerberos/include -g -O2 -c
> `test -f 'check_snmp.c' || echo './'`check_snmp.c
> check_snmp.c: In function `main':
> check_snmp.c:145: `LC_ALL' undeclared (first use in this function)
> check_snmp.c:145: (Each undeclared identifier is reported only once
> check_snmp.c:145: for each function it appears in.)
> check_snmp.c:146: `LOCALEDIR' undeclared (first use in this function)
> check_snmp.c:189: warning: passing arg 1 of `printf' makes pointer from
> integer without a cast
> check_snmp.c:195: warning: passing arg 1 of `printf' makes pointer from
> integer without a cast
<snip>
Looks like gettext/gettext-devel is not installed.
Needed for I18N
--
-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