Re: MRTG on Windows (WARNING: SNMP V3 libraries not found, SNMP V3 disabled. Falling back to V2c.)

2009-05-19 Thread Dave Shield
2009/5/19 Ayotunde Itayemi ayotunde.itay...@zain.com:
 Please any idea on how to get MRTG to “know” that I have installed
 net-snmp on the system?

Have you tried asking the MRTG people about this?
They will know more about the configuration of MRTG than we do.

Dave

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: monitor with strings

2009-05-19 Thread Dave Shield
2009/5/19 Richard Gipps richa...@triodatacom.com:
 I would like to use monitor to compare strings as opposed to integers.

Not possible.
You can use existence tests with string-based MIB objects,
but not comparisons.

 is there any ‘un-documented’ feature in monitor or another way
 to compare strings.

No - this is inherently impossible, given the structure of the Event MIB.
mteTriggerBooleanValue is defined as an Integer32 object
(and similarly for the equivalent mteTriggerThresholdTable objects).

The Event MIB was designed for numerical comparisons.

Dave

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpd - configuration

2009-05-19 Thread McKie, Tod
Try using the actual hostname rather than localhost. 


**...@aixdev20 $ /opt/net-snmp/bin/snmpwalk -v2c -c *** localhost
system.sysDescr.0
Timeout: No Response from localhost
[/]
**...@aixdev20 $ /opt/net-snmp/bin/snmpwalk -v2c -c *** aixdev20
system.sysDescr.0 
SNMPv2-MIB::sysDescr.0 = STRING: AIX aixdev20 3 5 00C**C00 

-Original Message-
From: pch0317 [mailto:pch0...@gmail.com] 
Sent: Monday, May 18, 2009 3:43 PM
To: net-snmp-users@lists.sourceforge.net
Subject: Re: snmpd - configuration

Yes, I mean localhost.


In /var/net-snmp/snmpd.conf I have got:


setserialno 167691539
##
#
# snmpNotifyFilterTable persistent data
#
##

##
#
# ifXTable persistent data
#
ifXTable .1 14:0 18:0x $
ifXTable .2 14:0 18:0x $
ifXTable .3 14:0 18:0x $
ifXTable .4 14:0 18:0x $
ifXTable .5 14:0 18:0x $
##

engineBoots 3
oldEngineID 0x80001f88804ce7100dcbdd8a49



2009/5/18 pch0317 pch0...@gmail.com:

  I have install net-snmp but I can't configure snmpd.
 
  when I type snmpget -c public localhos system.sysDescr.0
   

I hope you mean localhost not localhos !


  I can see:
  Timeout: No Response from localhost
 
  What I can do?
   

Telling us what you've got in your snmpd.conf file might be a good
start.

Dave



--
Crystal Reports - New Free Runtime and 30 Day Trial Check out the new
simplified licensing option that enables unlimited royalty-free
distribution of the report engine for externally facing server and web
deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

IMPORTANT:  E-mail sent through the Internet is not secure. Legg Mason 
therefore recommends that you do not send any confidential or sensitive 
information to us via electronic mail, including social security numbers, 
account numbers, or personal identification numbers. Delivery, and or timely 
delivery of Internet mail is not guaranteed. Legg Mason therefore recommends 
that you do not send time sensitive 
or action-oriented messages to us via electronic mail.

This message is intended for the addressee only and may contain privileged or 
confidential information. Unless you are the intended recipient, you may not 
use, copy or disclose to anyone any information contained in this message. If 
you have received this message in error, please notify the author by replying 
to this message and then kindly delete the message. Thank you.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[Python bindings] [ = 5.5.pre2 ] malformed Varbind returned by sess.walk()

2009-05-19 Thread Diego Billi

NET-SNMP version: 5.5.pre2  (and 5.4.2.1 i think)

I'm using the NET-SNMP python bindings to perform a walk on the OID 
'1.3.6.1.2.1.25.3.3.1.2'.

I'm in a multi-thread environment. The thread doing the walk is not the 
main thread.
It's one of several thread of a thread-pool object.

All works fine, but *SOMETIMES* (not very often) the walk returns a strange
result. The input parameter VarList contains a set of malformed Varbind
objects. Some fields are None!

You can see the same output in two different tentatives (OUTPUT 1 and 
OUTPUT 2):

I don't know if it's a problem of my multi-threading environment or not.
I have problems in reproducing the bug.

Thank you.





SOURCE CODE
---

def __my_snmpwalk(*args, **kargs):

 Just a modified version of netsnmp.snmpget 

sess = netsnmp.Session(**kargs)
if not sess.sess_ptr:
raise SnmpWrapperInvalidHost(Unable to open snmp session with: 
%s % kargs['DestHost'])

if isinstance(args[0], netsnmp.client.VarList):
var_list = args[0]
else:
var_list = netsnmp.VarList()

for arg in args:
if isinstance(arg, netsnmp.client.Varbind):
var_list.append(arg)
else:
var_list.append(netsnmp.Varbind(arg))

res = sess.walk(var_list)

return res


def varstr(vl):
 strings a VarList object 

s = ''
sep=''
for v in vl:
s += sep + str( (v.tag, str(v.iid), v.val) )
sep = ','
return s


def __do_walk(oid, host, port, community, timeout, retries,**options):
res = None

options['DestHost']   = host
options['RemotePort'] = port
options['Community']  = community
options['Timeout']= int(timeout * SNMP_ONE_SECOND)
options['Retries']= retries

if not options.has_key('Version'):
options['Version'] = SNMP_DEFAULT_VERSION

options['UseNumeric'] = 1# don not translate oids in return values!

# netsnmp wants fully qualified, dotted-decimal, numeric OID
if oid[0].isdigit():
oid2 = '.' + oid
else:
oid2 = oid

varlist = netsnmp.VarList( netsnmp.Varbind(oid2)  )

values = __my_snmpwalk(varlist, **options)


print _do_walk() = (
print %s [len=%s] % (varstr(varlist), len(varlist))
print ,
print %s [len=%s] % (values, len(values))
print )

return (varlist, values)


OUTPUT 1


_do_walk() = (
(None, 'None', '1') [len=1]
,
('1',) [len=1]
)


OUTPUT 2


_do_walk() = (
('.1.3.6.1.2.1.25.3.3.1.2', '768', '1') [len=1]
,
('1',) [len=1]
)


SNMPWALK COMMAND TEST
-

This is what i get with the command line program:

$ snmpwalk -On -v 1 -c public $HOST  1.3.6.1.2.1.25.3.3.1.2

.1.3.6.1.2.1.25.3.3.1.2.768 = INTEGER: 1


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


problem using snmp_parse_args

2009-05-19 Thread Vinod Nanjaiah
Hi,
Has anyone faced any problems in using snmp_parse_args?
This is used in the snmptrap.c file.

I am trying to send trap from an ARM board to a host pc.
When control comes to snmp_parse_args, it messes up the argc and argv 
parameters and the
program seg faults at a later point when the argv is referenced.

Is this a bug in netsnmp or a problem with the arguments that I am passing?

This is the argv that I am using
char com[] = public;
char *argv[] = {, -v, 1,  -c, com, 172.22.92.10, , , 2, , };
(argc=11)

Thank you!
Vinod



http://www.mindtree.com/email/disclaimer.html
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: ActivePerl 5.10 - Cannot locate module in @INC

2009-05-19 Thread James.Brown
 

-Original Message-
From: Alex Burger [mailto:ale...@users.sourceforge.net] 
Sent: 19 May 2009 02:39
To: Brown, James : Barclays Wealth
Cc: mike_ay...@tvworks.com; net-snmp-users@lists.sourceforge.net
Subject: Re: ActivePerl 5.10 - Cannot locate module in @INC

 Net-SNMP 5.4.2.1 for Windows was compiled with Activestate Perl v5.8. 
 5.5 will be compiled using v5.10.  There's a binary for 5.5.pre2 available on 
 the SF site that uses 5.10:
 
 http://sourceforge.net/project/showfiles.php?group_id=12694package_id=11571release_id=672929
 
 I have never tried using a module compiled under Perl 5.8 with Perl 5.10 but 
 I wouldn't be surprised if it didn't work.  If it does, please let me know.

 Alex

Mike/Alex,

Thanks very much for your help so far. Just to let you know, a use SNMP; with 
ActivePerl 5.10 and Net-SNMP 5.4.2.1 returns...

Can't load 'C:/Perl/site/lib/auto/NetSNMP/default_store/default_store.dll' for 
module NetSNMP::default_store: load_file:The specified module could not be 
found at C:/Perl/lib/DynaLoader.pm line 202.
 at C:/Perl/site/lib/SNMP.pm line 16

The dll is present at the stated location, but for some reason doesn't work. 
It's not a dll registration issue as that dll doesn't appear to be registerable.

I've downloaded the binary for 5.5-pre2 and installed using PPM. Unfortunately, 
I get the same error. I'm using Windows 2003 server and installed to the 
standard path c:\usr.

Regards

James.
Barclays Wealth is the wealth management division of Barclays Bank PLC. This 
email may relate to or be sent from other members of the Barclays Group.

The availability of products and services may be limited by the applicable laws 
and regulations in certain jurisdictions. The Barclays Group does not normally 
accept or offer business instructions via internet email. Any action that you 
might take upon this message might be at your own risk.

This email and any attachments are confidential and intended solely for the 
addressee and may also be privileged or exempt from disclosure under applicable 
law. If you are not the addressee, or have received this email in error, please 
notify the sender immediately, delete it from your system and do not copy, 
disclose or otherwise act upon any part of this email or its attachments.

Internet communications are not guaranteed to be secure or without viruses. The 
Barclays Group does not accept responsibility for any loss arising from 
unauthorised access to, or interference with, any Internet communications by 
any third party, or from the transmission of any viruses. Replies to this email 
may be monitored by the Barclays Group for operational or business reasons.

Any opinion or other information in this email or its attachments that does not 
relate to the business of the Barclays Group is personal to the sender and is 
not given or endorsed by the Barclays Group.

Barclays Bank PLC. Registered in England and Wales (registered no. 1026167).
Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom.

Barclays Bank PLC is authorised and regulated by the Financial Services 
Authority.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


net-snmp-5.4.1 compiles but net-snmp-5.5.pre2, onto the same solaris 9 10 system

2009-05-19 Thread Alex . Peeters
vervolg)

agent\Makefile


.../snmpNotifyFilterTable_data_access.lo must be 
.../snmpNotifyFilterTable_data_access.lo \

.../snmpNotifyFilterTable_data_access.o must be 
.../snmpNotifyFilterTable_data_access.o \

.../agentx_config.o   must be .../agentx_config.o \

and a few other

After manually adding \, it compiles.

Bug found :)


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


net-snmp-5.4.1 compiles but net-snmp-5.5.pre2, onto the same solaris 9 10 system

2009-05-19 Thread Alex . Peeters
net-snmp-5.4.1 compiles but net-snmp-5.5.pre2, onto the same solaris 9  
10 system

...
g.o .libs/text_utils.o .libs/snmpv3.o .libs/lcd_time.o .libs/keytools.o 
.libs/file_utils.o .libs/dir_utils.o .libs/scapi.o .libs/callback.o 
.libs/default_store.o .libs/snmp_alarm.o .libs/data_list.o 
.libs/oid_stash.o .libs/fd_event_manager.o .libs/mt_support.o 
.libs/snmp_enum.o .libs/snmp-tc.o .libs/snmp_service.o .libs/snprintf.o 
.libs/strlcpy.o .libs/strtol.o .libs/strtoul.o .libs/strtok_r.o 
.libs/snmp_transport.o .libs/snmpUDPDomain.o .libs/snmpTCPDomain.o 
.libs/snmpAliasDomain.o .libs/snmpUnixDomain.o .libs/snmpCallbackDomain.o 
.libs/snmp_secmod.o .libs/snmpusm.o .libs/snmp_version.o 
.libs/check_varbind.o .libs/container.o .libs/container_binary_array.o 
.libs/container_null.o .libs/container_list_ssll.o 
.libs/container_iterator.o .libs/cmu_compat.o .libs/ucd_compat.o 
.libs/snmp_openssl.o   -L/usr/local/ssl/lib -lkstat -lcrypto -lc 
-Wl,-soname -Wl,libnetsnmp.so.20 -o .libs/libnetsnmp.so.20.0.0
ld: fatal: file libnetsnmp.so.20: open failed: No such file or directory
make[1]: *** [libnetsnmp.la] Error 1
make[1]: Leaving directory `/export/home/nagios/net-snmp-5.5.pre2/snmplib'
make: *** [subdirs] Error 1

-- Alex
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmpd - configuration

2009-05-19 Thread pch0317
I haven't got any other snmpd.conf (I use: find / -name snmpd.conf)
In /usr/local/share/snmp I only have:
mib2c.access_functions.conf mib2c.array-user.conf mib2c.check_values.conf
mib2c.check_values_local.conf mib2c.column_defines.conf 
mib2c.column_enums.conf mib2c.column_storage.conf
mib2c.conf mib2c.container.conf mib2c.create-dataset.conf
mib2c-data mib2c.genhtml.conf mib2c.int_watch.conf
mib2c.iterate_access.conf mib2c.iterate.conf mib2c.mfd.conf
mib2c.notify.conf mib2c.old-api.conf mib2c.perl.conf mib2c.scalar.conf
mib2c.table_data.conf mibs snmpconf-data snmp_perl_trapd.pl


I type hostname instead localhost but it make this same result.


Dave Shield wrote:
 2009/5/18 pch0317 pch0...@gmail.com:
   
 In /var/net-snmp/snmpd.conf
 

 No - not that file - that's essentially private to the agent.
 You need another snmpd.conf file - probably in either
 /etc/snmp (if the agent is vendor-supplied) or
 /usr/local/share/snmp  (if you compiled it yourself).

 Please see the FAQ entries about access control.
 These discuss exactly the problems you are seeing.

 Dave

   


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


hrSWRunParameters length changed?

2009-05-19 Thread Riku Nykänen
Hi,

I have used HOST-RESOURCES-MIB to get process parameters to monitor
some processes remotely. I recently updated host to openSuSE 11.1,
which includes Net-SNMP version 5.4.2.1 (previous had openSuSE with
Net-SNMP version 5.3.0.1). Now it seems that hrSWRunParameters returns
only first 128 characters of parameters, when previous version
returned complete string regardless of its length. Ok, MIB has been
defining for years that length of the string is 0..128, so obviously
some fixed the bug (I didn't find any mark of that from change log).

Now problem is that I need to get full list of parameters, 128
characters is just not enough. Can some one give me a hint what is the
easiest way to get all characters? Downgrading back to 5.3.0.1 is not
an option. :-( Is there some well hidden configuration option or
should I write a patch for current module?

Cheers,
 Riku

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmpd - configuration

2009-05-19 Thread Mike Ayers
 From: pch0317 [mailto:pch0...@gmail.com] 
 Sent: Tuesday, May 19, 2009 9:43 AM

 I haven't got any other snmpd.conf (I use: find / -name snmpd.conf)

That's your problem, then.  You need to configure the agent.  Then you 
need to start it.  Apparently your distributioon does not run out of the box.

 Dave Shield wrote:
  2009/5/18 pch0317 pch0...@gmail.com:

  In /var/net-snmp/snmpd.conf
  
 
  No - not that file - that's essentially private to the agent.
  You need another snmpd.conf file - probably in either
  /etc/snmp (if the agent is vendor-supplied) or
  /usr/local/share/snmp  (if you compiled it yourself).
 
  Please see the FAQ entries about access control.
  These discuss exactly the problems you are seeing.


HTH,

Mike

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: problem using snmp_parse_args

2009-05-19 Thread Mike Ayers
 From: Vinod Nanjaiah [mailto:vinod_nanja...@mindtree.com] 
 Sent: Tuesday, May 19, 2009 3:49 AM


 When control comes to snmp_parse_args, it messes up the argc 
 and argv parameters and the 
 
 program seg faults at a later point when the argv is referenced.

I'm not sure, but I think snmp_parse_args eats the arguments.  You may 
want to repost this question to the coders list.


HTH,

Mike

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users