Hi,
I got this error when trying to make from sources.
Building getDeviceData ...
(cd getDeviceData && /usr/local/ant/bin/ant ) && touch getDeviceData
Buildfile: build.xml
init:
[mkdir] Created dir: /home/ghita/proiect/nav-3.3.0_rc1/src/getDeviceData/build
compile:
[javac] Compiling 15 source files to /home/ghita/proiect/nav-3.3.0_rc1/src/getDeviceData/build
[javac] /home/ghita/proiect/nav-3.3.0_rc1/src/getDeviceData/src/OidTester.java:41: cannot find symbol
[javac] symbol : method getSnmpVersion()
[javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp
[javac] Log.d("OID_TESTER", "DO_TEST", "Using SNMP version " + sSnmp.getSnmpVersion() + " for " + nb.getSysname());
[javac] ^
[javac] /home/ghita/proiect/nav-3.3.0_rc1/src/getDeviceData/src/OidTester.java:252: cannot find symbol
[javac] symbol : method getNext(int,boolean,boolean,boolean)
[javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp
[javac] l = sSnmp.getNext(getCnt, snmpoid.getDecodehex(), true, false);
[javac] ^
[javac] 2 errors
BUILD FAILED
I notice some diff from OidTester.java in 3.3.0 and 3.2.2 . After replacing
OidTester.java with the 3.2.2 one I was able to compile without errors.
echo $CLASSPATH
/usr/lib/jdk1.5.0_04/jre/lib/ext/snmp.jar:/usr/lib/jdk1.5.0_04/jre/lib/ext/servlet-api.jar
I'm not sure why you are getting these errors, a build from scratch on a clean
server works fine here. The two methods your compiler is unable to find were
added to SimpleSnmp.java after NAV 3.2.2, and are present in the 3.3 release
candidate. It's as if you are compiling a new version of getDeviceData
against an old version of SimpleSnmp.
Of course, when you replace OidTester.java with a version as old as the
SimpleSnmp.java without the two new symbols, you will have success in
compiling, but you will experience other problems during runtime (such as the
Drexel SNMP memory leak / inifinite loop problem).
Are you sure /home/ghita/proiect/nav-3.3.0_rc1/ does not contain remnants of
old NAV versions?
--
mvh
Morten Brekkevold
UNINETT
>From morten.brekkevold at uninett.no Mon Oct 1 11:57:39 2007
From: morten.brekkevold at uninett.no (Morten Brekkevold)
Date: Mon Oct 1 10:57:42 2007
Subject: [Nav-users] Announcement: NAV 3.3.0 RC1 released
In-Reply-To:
46F8AC23.8090409@gmail.com
References:
46EFCB84.70504@uninett.no 46F8AC23.8090409@gmail.com
Message-ID:
4700B683.4050103@uninett.no
Erik Weber wrote, On 25-09-2007 08:35:
> Glad to see a new release, does this version support surveillance of
> services on snmp enabled servers?
I suspect you are thinking of process monitoring through SNMP? NAV already
supports external monitoring of the most common TCP/IP reachable services, but
does not currently support monitoring internal server processes through SNMP.
> If not, do you have any idea of which release/when that could be
> implemented? I'm currently looking for a new network management system,
> but I want something that can monitor all my systems.
Due to limited resources, the core NAV developer team is not focusing on new
service monitoring functionality, but on the core network monitoring
functionality. The University of Troms?, however, are interested in using,
maintaining and developing further the service monitoring aspects of NAV.
You should maybe have a chat with Ole Martin Bj?rndalen of the University of
Troms?, whom I've Cc:ed in this e-mail. He has written a NAV subsystem which
does exactly what I think you are after: It monitors server processes through
SNMP.
--
mvh
Morten Brekkevold
UNINETT
>From morten.brekkevold at uninett.no Mon Oct 1 12:23:49 2007
From: morten.brekkevold at uninett.no (Morten Brekkevold)
Date: Mon Oct 1 11:23:57 2007
Subject: [Nav-users] NAV 3.3.0 RC1 + Unsupported SNMP protocol version
In-Reply-To:
46FB9C0B.7020109@gmail.com
References:
46FB9C0B.7020109@gmail.com
Message-ID:
4700BCA5.20406@uninett.no
Erik Weber wrote, On 27-09-2007 14:03:
> When I try to add boxes I often get the following error message:
> nav.Snmp.UnsupportedSnmpVersionError: Unsupported SNMP protocol version: 0
>
> Anyone have an idea of how to fix it ? Debian Etch with the latest
> package from Werner.
A quick look at the code reveals a bizarre procedure; EditDB attempts to find
out which SNMP version the box supports. It first attempts version 2c, if
this times out it tries version 1, if this also times out it claims the SNMP
version is 0. Apparently this value is used in later requests, which, of
course, fails miserably.
So, to make it short: It seems that what really happens when you get this
message is that SNMP communication with the box timed out.
I need to inspect the code a bit closer before I can tell when this actually
occurs and figure out how to fix it. Question for you: Does this happen when
you insert single boxes using the Add form, or does it happen only when bulk
importing? Or does it happen on both?
I have filed this as a bug here:
http://sourceforge.net/support/tracker.php?aid=1805509
--
mvh
Morten Brekkevold
UNINETT
>From twiztar+nav at gmail.com Mon Oct 1 15:08:28 2007
From: twiztar+nav at gmail.com (Erik Weber)
Date: Mon Oct 1 14:08:45 2007
Subject: [Nav-users] NAV 3.3.0 RC1 + Unsupported SNMP protocol version
In-Reply-To:
4700BCA5.20406@uninett.no
References:
46FB9C0B.7020109@gmail.com 4700BCA5.20406@uninett.no
Message-ID:
4700E33C.4020002@gmail.com
Morten Brekkevold wrote:
> Erik Weber wrote, On 27-09-2007 14:03:
>
>> When I try to add boxes I often get the following error message:
>> nav.Snmp.UnsupportedSnmpVersionError: Unsupported SNMP protocol version: 0
>>
>> Anyone have an idea of how to fix it ? Debian Etch with the latest
>> package from Werner.
>>
>
> Question for you: Does this happen when
> you insert single boxes using the Add form, or does it happen only when bulk
> importing? Or does it happen on both?
>
I've only tried to add single boxes, and the error message occur pretty
fast (less than 2 seconds), so that timeout value is pretty low, hehe.
I can try doing a bulk import if you think it matters.
--
Erik Weber
>From twiztar at gmail.com Mon Oct 1 15:14:37 2007
From: twiztar at gmail.com (Erik Weber)
Date: Mon Oct 1 14:15:49 2007
Subject: [Nav-users] Announcement: NAV 3.3.0 RC1 released
In-Reply-To:
4700B683.4050103@uninett.no
References:
46EFCB84.70504@uninett.no 46F8AC23.8090409@gmail.com
4700B683.4050103@uninett.no
Message-ID:
4700E4AD.3060709@gmail.com
Morten Brekkevold wrote:
> Erik Weber wrote, On 25-09-2007 08:35:
>
>
>> Glad to see a new release, does this version support surveillance of
>> services on snmp enabled servers?
>>
>
> I suspect you are thinking of process monitoring through SNMP? NAV already
> supports external monitoring of the most common TCP/IP reachable services, but
> does not currently support monitoring internal server processes through SNMP.
>
>
That's correct. We're looking for a new tool to do our surveillance and
this includes a few servers with some critical services as well as com.
equipment.
--
Erik Weber
>From morten.brekkevold at uninett.no Mon Oct 1 18:02:00 2007
From: morten.brekkevold at uninett.no (Morten Brekkevold)
Date: Mon Oct 1 17:02:10 2007
Subject: [Nav-users] Announcement: NAV 3.3.0 released
Message-ID:
47010BE8.1000808@uninett.no
NAV 3.3.0 is now available for download at SourceForge,
see
http://sourceforge.net/projects/nav :-)
This is mainly a feature release, but many bugs have also been fixed.
Feedback from users and our own testing efforts revealed a few small glitches
in the release candidate, and these have been fixed in this final release version.
The Debian package maintainer, Morten Werner Olsen, is working on a Debian
Etch package of NAV 3.3, which will be released shortly.
Happy NAVing, everyone!
--
mvh
Morten Brekkevold
UNINETT