RE: linkup linkdown monitoring impacts the performance
On Tue, 7 Mar 2006, vishakha s wrote: Date: Tue, 7 Mar 2006 14:23:14 +0530 From: vishakha s [EMAIL PROTECTED] To: 'Peder Chr. Norgaard' [EMAIL PROTECTED] Cc: Net-Snmp-Users (E-mail) net-snmp-users@lists.sourceforge.net Subject: RE: linkup linkdown monitoring impacts the performance Hi I read this mail and tried to run with the notification.c you mentioned .It is generating the trap .But how to use netlink for this .We have to write some code for opening the socket and what you mean by subscribe to link change messages.I am not much familiar with this topic .Can you please put some more light on this exactly how to implement this netlink concept in net-snmp. I can only repeat what I already wrote to Robert Story last week: Grab the quagga package from the net and study it: The quagga package uses netlink much the way I suggest (actually I looked more in the quagga code than in the documentation when I wrote my own piece). Look in the file zebra/rt_netlink.c. The function netlink_link_change is the place where you recognize the ifUp/ifDown events - but of course you also need the surrounding infrastructure - the opening and configuration of the socket, the ordering of this specific brand of events, the adding of the FD for the socket to the central select loop etc etc. I did not find netlink easy to work with - the documentation is sloppy and complex, and the design is not impressive. It took me something like two full weeks, with a lot of cheating = looking in kernel source, to get the hang of it - but when you know how to work it, it works like a charm. And for performance it really beats using /proc for almost everything. -- Peder Chr. Nørgaard Senior System Developer, M. Sc. Ericsson Denmark A/S, Telebit Division Skanderborgvej 232 tel: +45 30 91 84 31 DK-8260 Viby J, Denmark fax: +45 89 38 51 01 e-mail: [EMAIL PROTECTED] (old e-mail 2000-2003: [EMAIL PROTECTED]) (old e-mail 1992-2000: [EMAIL PROTECTED]) This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.
Re: exec problem with 5.1
Here is the info; Sorry I didn't include it to begin with. I know better than that...snmpd.conf: rocommunity communitysyscontact [EMAIL PROTECTED]disk /bootdisk /disk /homedisk /usrdisk /vardisk /tmpexec .1.3.6.1.4.1.2021.51 pingscript.pl /path/pingscript.pl server1exec .1.3.6.1.4.1.2021.52 pingscript.pl /path/pingscript.pl server2exec .1.3.6.1.4.1.2021.53 pingscript.pl /path/pingscript.pl server3exec .1.3.6.1.4.1.2021.54 pingscript.pl /path/pingscript.pl server4exec .1.3.6.1.4.1.2021.55 pingscript.pl /path/pingscript.pl server5...exec .1.3.6.1.4.1.2021.55 pingscript.pl /path/pingscript.pl server20 Pingscript: #!/usr/bin/perl -w#use strict;use POSIX qw(strftime);@hosts = $ARGV[0];my $hostname = `hostname -s`;chomp $hostname;my $timenow = strftime "%m/%d/%y-%H: %M:%S", localtime;foreach my $host (@hosts){ my @cssh = `ping -c 100 -f $host`; foreach my $pricegrabber (@cssh) { if($pricegrabber =~ /^(\d+) packets transmitted, (\d+) received, (\d+)% packet loss, time (\d+)ms/) { if($1 == $2) { print "$hostname-$host: OK\n"; next; } else { print "$timenow $hostname-$host: sent: $1 -- recvd: $2 -- packet loss: $3% -- time: $4ms\n"; } } }}#ENDOFSCRIPTThat's what I've got, every time I run an snmpget against the oids however once I get to the server #4I get the response expected and then server 5 and on times out. If I upgrade to 5.3 and use extend however it does work and I don't have the problem but sometimes the agent does crash. What can I do to enable debugging of the agent to syslog? I tried to rtfm but wasn't able to see it readily. Thanks!Thomas Anders [EMAIL PROTECTED] wrote: Mikester wrote: I've got an exec configuration that runs a simple ping script to a few hosts. I have tested the 5.3 version extend config and don't have this problem but upgrading hundreds of machine's version of snmp is a task that won't happen quickly and I do still have some problems that are similar. The problem that I have is that after a few returns the agent stops responding entirely and requires a shutdown and a restart to get responding again.We'd need to know the exact details of your setup (including the ping script itself) to be able to help. If the agent hangs, what are the last couple of lines of "snmpd -f -Le -DALL" output?In case this turns out to be a problem with your existing net-snmp 5.1 installation, however, upgrading is likely to be the suggested option.+Thomas-- Thomas Anders (thomas.anders at blue-cable.de)---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Net-snmp-users mailing listNet-snmp-users@lists.sourceforge.netPlease see the following page to unsubscribe or change other options:https://lists.sourceforge.net/lists/listinfo/net-snmp-users Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Net-SNMP 5.3 for SunOS install-vip 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100
Hello, I am new in Net-SNMP and I would like to use it on the following platform: SunOS install-vip 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100 I would appreciate any information how to install Net-SNMP on Sun OS. I have read README file but I would like to have opinion from someone who has done it already. Thank you in advance! Best Regards, Ivo Srhoj
RE: Can parse_oid_indexes() parse fixed-length string indexes?
It looks like the ASN_PRIV_IMPLIED_OCTET_STR switch case, assumes that the rest of the instance is the fixed length string (and it does not look for a preceeding string length component). But what if the instance includes some other index type after this fix-length string? (It implies that the parsing mechanism MUST have the pre-defined length of a fix-length string.) By the way: - I saw something that looks like a bug: In the parse_one_oid_index() function (Net-SNMP 5.3.0.1): * if (uitmp (int) (*oidLen)) { for (i = 0; i *oidLen; ++i) var-val.string[i] = (u_char) * oidIndex++; for (i = 0; i uitmp; ++i) // Erez Makavy: Is this a BUG?!!! var-val.string[i] = '\0'; (*oidLen) = 0; } else { *** In this if cluase, the first 'for' startement is overridden by the second 'for' statement. (val.string, will always be set to all zeros) -Original Message- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 2:12 AM To: Makavy, Erez (Erez) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Can parse_oid_indexes() parse fixed-length string indexes? On Wed, 1 Mar 2006 19:40:58 +0200, Makavy, Erez (Erez) [EMAIL PROTECTED] said: Erez I don't see in the table registration any information about the indexes' Erez length (in case of fixed-length string) Erez And there is also no information about the length in the Erez parameters of Erez parse_oid_indexes() Using a var of type ASN_PRIV_IMPLIED_OCTET_STR will force it to be a fixed length string. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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: SNMP V3 key change
Wes Hardaker wrote: 2) there is no assurance that the keychange SET itself will fail if it is messed up or fails for some reason and every SET after it would fail because it would be using the newer key. Can you elaborate on this, please? Are you saying that there are circumstances under which the RESPONSE to the SET would indicate an error status 0 (zero, no error) even though the key hasn't been changed? I'm probably misreading this, so please clarify. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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
snmpget invalid data using multiple oids to tables.
I am not getting accurate data returned when posting multiple snmpget requests to table data.When I send the followingsnmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.2.4 enterprises.103.1.9.2.5.1.3.4 enterprises.103.1.9.2.5.1.5.4,I receive the following.SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 1SNMPv2-SMI::enterprises.103.1.9.2.5.1.3.4 = INTEGER: 4SNMPv2-SMI::enterprises.103.1.9.2.5.1.5.4 = INTEGER: 4The first value is correct, the second and third are simply the index values. I am using the request loop. for (request = requests; request; request = request-nextI have inserted debug before and after the loop and am only entering the loop once and running the loop once.When I enter the command with individual oid requests the values return correctly.snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.2.4SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 1snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.3.4SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 0snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.5.4SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 0Any assistance with this problem would be greatly appreciated. Is there some debug that I can insert that will assist?When I send multiple requests to anything other than tables, the returned data is accurate.Thanks. Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: 5.1.4.rc1 available for testing.
On Tue, 2006-03-07 at 16:09 -0800, Wes Hardaker wrote: Dave But it needed one minor tweak to report Dave memory/CPU statistics on the latest NetBSD and OpenBSD systems. Dave I've wasn't sure whether to apply it to 5.1.4 as well. Um, your call. This is the end of the line for the 5.1.x series so maybe it's a good thing to apply one last bug fix. However, we could be doing that for years if we don't stop at some point! OK - In the absence of any other comments on the subject, I've applied that fix to the 5.1.x branch as well. I was going to release today, but I'll hold off till tomorrow till you have a chance to answer. Over to you. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Displaced c++-style comments in net-snmp-5.3.0.1-sourcecode
On Tue, 2006-03-07 at 16:41 -0800, Wes Hardaker wrote: On Wed, 22 Feb 2006 11:15:05 +, Dave Shield [EMAIL PROTECTED] said: I noticed some c++-style comments (// code) in some files in ./agent/mibgroup/disman/event/mte*. Dave Yes - those look like temporary removals of code that Dave should have worked but had been causing problems. Dave I tend to use C++-style comments for those, to distinguish Dave them from real comments, and remind me that the problem Dave still needs to be addressed. To prevent this we shouldn't ever check in code with // comments in it. Period. Agreed. These are meant to be temporary comments in my local working code. If you need a reminder, use an XXX ... Oh, I do - frequently. Part of the reason for using the // style is to remind me that a particular change should *not* be checked in until the issue has been sorted (or at least thought about a bit more). Unfortunately that process failed this time. Mea culpa. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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
SNMP Trap Collection?
Hello, My Cisco routers/switches need to send SNMP traps. Can net-snmp be a trap collector? All I want to do is take the SNMP traps and write them to a text file. Thanks Shane --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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
Query...Net-SNMP on windows 2000
Hi I have installed the net-snmp package on Windows 2000 machine. When i am trying to register snmptrapd the message i am getting is C:\snmptrapd -register -Le -f -d 10.98.160.53 C:\snmptrapd No log handling enabled - turning on stderr logging Warning: no access control information configured. This receiver will *NOT* accept any incoming notifications. NET-SNMP version 5.3.0.1 No access configuration - dropping trap. No access configuration - dropping trap. No access configuration - dropping trap. and it is dropping the traps every time i am registering it with various options.. Could you please help me , if anything i could check at my end. Thanks Sandeep --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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: exec problem with 5.1
Thomas Anders [EMAIL PROTECTED] wrote: We'd need to know the exact details of your setup (including the ping script itself) to be able to help. If the agent hangs, what are the last couple of lines of snmpd -f -Le -DALL output? In case this turns out to be a problem with your existing net-snmp 5.1 installation, however, upgrading is likely to be the suggested option. +Thomas OK, so I have 2 bugs in 5.3.0.1 with extend command: 1. If you put the OID, you don't get the nsExtendOutput2Table. You only get nsExtendOutput1Table so no per-line results at all. 2. If you dont put the OID, you at least get both output tables, but there is such bug while walking the results: [EMAIL PROTECTED] scripts]# snmpwalk -On -v 1 -c public localhost nsExtendOutput2Table .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.1 = STRING: 10 .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.2 = STRING: 13.018 .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.3 = STRING: 20.078 .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.4 = STRING: 26.084 .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.5 = STRING: 4.521 .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.1 = STRING: 0 Error: OID not increasing: .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.5 = .1.3.6.1.4.1.8072.1.3.2.4.1.2.4.111.110.101.116.1 -- T. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: SNMP Trap Collection?
On Wed, 8 Mar 2006 09:35:59 -0500, Shane Presley [EMAIL PROTECTED] said: Shane My Cisco routers/switches need to send SNMP traps. Can Shane net-snmp be a trap collector? All I want to do is take the Shane SNMP traps and write them to a text file. Yep. See the snmptrapd program within our package. It can do just what you want. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Displaced c++-style comments in net-snmp-5.3.0.1-sourcecode
On Wed, 08 Mar 2006 14:24:28 +, Dave Shield [EMAIL PROTECTED] said: Dave Part of the reason for using the // style is to remind me that Dave a particular change should *not* be checked in until the issue Dave has been sorted (or at least thought about a bit more). #error does something more powerful where you'll get yelled at much #earlier ;-) -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: snmpget invalid data using multiple oids to tables.
On Wed, 8 Mar 2006 04:41:49 -0800 (PST), Greg Robillard [EMAIL PROTECTED] said: Greg I am not getting accurate data returned when posting multiple Greg snmpget requests to table data. Can you provide additional info: which table handler are you using. I was originally thinking the iterator style, but based on your text I can't actually tell. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: SNMP V3 key change
On Wed, 08 Mar 2006 13:40:22 +0100, Thomas Anders [EMAIL PROTECTED] said: 2) there is no assurance that the keychange SET itself will fail if it is messed up or fails for some reason and every SET after it would fail because it would be using the newer key. Thomas Can you elaborate on this, please? Are you saying that there Thomas are circumstances under which the RESPONSE to the SET would Thomas indicate an error status 0 (zero, no error) even though the Thomas key hasn't been changed? I'm probably misreading this, so Thomas please clarify. No, I'm saying that the error status may indeed *not* be 0 because something in the SET failed and the agent didn't accept any of the varbinds, even the keychange if it would have succeeded otherwise. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Displaced c++-style comments in net-snmp-5.3.0.1-sourcecode
On Wed, 2006-03-08 at 06:39 -0800, Wes Hardaker wrote: On Wed, 08 Mar 2006 14:24:28 +, Dave Shield [EMAIL PROTECTED] said: Dave Part of the reason for using the // style is to remind me that Dave a particular change should *not* be checked in until the issue Dave has been sorted (or at least thought about a bit more). #error does something more powerful where you'll get yelled at much #earlier ;-) But makes it slightly harder to compile and test the main functionality, before coming back to the particular issue that needs more thought. But we're getting away from the point. You and Joerg are quite correct - // comments are a no-no. End of story. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Can parse_oid_indexes() parse fixed-length string indexes?
On Wed, 8 Mar 2006 13:56:14 +0200, Makavy, Erez (Erez) [EMAIL PROTECTED] said: Erez It looks like the ASN_PRIV_IMPLIED_OCTET_STR switch case, assumes that Erez the rest of the instance is the fixed length string (and it does not Erez look for a preceeding string length component). Erez But what if the instance includes some other index type after this Erez fix-length string? If you set var-val_len as well it'll assume that this is the length of the data you want to pull out. That should just remove a fixed size of data. Erez By the way: Erez - Erez I saw something that looks like a bug: Erez In the parse_one_oid_index() function (Net-SNMP 5.3.0.1): Erez * Erez if (uitmp (int) (*oidLen)) { Erez for (i = 0; i *oidLen; ++i) var- val.string[i] = (u_char) * oidIndex++; Erez for (i = 0; i uitmp; ++i) // Erez Erez Makavy: Is this a BUG?!!! var- val.string[i] = '\0'; Yep. That's indeed a bug. The patch is actually this: Index: mib.c === RCS file: /cvsroot/net-snmp/net-snmp/snmplib/mib.c,v retrieving revision 5.94 diff -u -p -r5.94 mib.c --- mib.c 2 Feb 2006 22:08:39 - 5.94 +++ mib.c 8 Mar 2006 14:48:12 - @@ -3799,7 +3799,7 @@ parse_one_oid_index(oid ** oidStart, siz if (uitmp (int) (*oidLen)) { for (i = 0; i *oidLen; ++i) var-val.string[i] = (u_char) * oidIndex++; -for (i = 0; i uitmp; ++i) +for (i = *oidLen; i uitmp; ++i) var-val.string[i] = '\0'; (*oidLen) = 0; } else { Erez In this if cluase, the first 'for' startement is overridden by the Erez second 'for' statement. Erez (val.string, will always be set to all zeros) Note that the only time this will ever be hit is if the string length was supposed to be longer than the data encoded in the OID. This should actually never ever happen (IE, the OID is too short in the first place for the expected data). I've fixed it anyway because we like to handle exceptions... -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Net-SNMP 5.3 for SunOS install-vip 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100
On Wed, 8 Mar 2006 11:19:59 +0100, Ivo Srhoj [EMAIL PROTECTED] said: Ivo I would appreciate any information how to install Net-SNMP on Sun Ivo OS. I have read README file but I would like to have opinion from Ivo someone who has done it already. Thank you in advance! get the tar file (get the 5.3.0.1 release) from our download server: http://www.net-snmp.org/download/ extract the info: gunzip net-snmp-5.3.0.1.tar.gz tar xf net-snmp-5.3.0.1.tar compile it: cd net-snmp-5.3.0.1 ./configure make install it (as root): make install Play and be happy! -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Can parse_oid_indexes() parse fixed-length string indexes?
On Wed, 2006-03-08 at 06:50 -0800, Wes Hardaker wrote: On Wed, 8 Mar 2006 13:56:14 +0200, Makavy, Erez (Erez) [EMAIL PROTECTED] said: Erez It looks like the ASN_PRIV_IMPLIED_OCTET_STR switch case, assumes that Erez the rest of the instance is the fixed length string (and it does not Erez look for a preceeding string length component). Erez But what if the instance includes some other index type after this Erez fix-length string? If you set var-val_len as well it'll assume that this is the length of the data you want to pull out. That should just remove a fixed size of data. But Wes - Erez is talking about *registering* the table, not user-helper processing. There doesn't seem to be the option within the netsnmp_table_helper_add_indexes call to indicate the length of a fixed-length index string. So how can the automatic index processing (in the table helper) parse the incoming OID correctly? Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Net-SNMP 5.3 for SunOS install-vip 5.8 Generic_117350-18 sun4 u sparc SUNW,Sun-Blade-100
What do you want it to do for you? Knowing that, I can recommend the best version to use. I am new in Net-SNMP and I would like to use it on the following platform: SunOS install-vip 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100 I would appreciate any information how to install Net-SNMP on Sun OS. I have read README file but I would like to have opinion from someone who has done it already. Thank you in advance! This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Can parse_oid_indexes() parse fixed-length string indexes?
On Wed, 08 Mar 2006 15:02:04 +, Dave Shield [EMAIL PROTECTED] said: If you set var-val_len as well it'll assume that this is the length of the data you want to pull out. That should just remove a fixed size of data. Dave But Wes - Erez is talking about *registering* the table, not Dave user-helper processing. There doesn't seem to be the option Dave within the netsnmp_table_helper_add_indexes call to indicate the Dave length of a fixed-length index string. So how can the automatic Dave index processing (in the table helper) parse the incoming OID Dave correctly? on my way out the door and can't pull up the original, but I thought the original was about parsing... -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Copyright Infringement
Magdelena has published one Magdelena (1) of our images on a website at www.net-snmp.org. In anticipation of whoever is ultimately responsible (IANL), the selected image has been removed until the matter is cleared up. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: SNMP v4.2.0 Install Failed
I am not sure of the state of the CPAN release...I would suggest getting the latest release code from the net-snmp sourceforge project http://sourceforge.net/projects/net-snmp/ this package includes the net-snmp libraries and the perl module which is more likely to play together well. ./configure --with-perl-modules I will check to see what's up with the CPAN release... Also best to copy list above with questions like this. regards, GSM Matt Musgrove wrote: Hi, I tried installing SNMP on one of our linux boxes today and I found a few problems. I checked rt.cpan.org and I see these problems. That site is incredibly slow today and it times out before I can read the contents of the bug tickets. Anyway here goes. Creating the makefile failed. [EMAIL PROTECTED] mm-nms SNMP-4.2.0]$ perl Makefile.PL LIB=~/lib INSTALLMAN1DIR=~/man/man1 INSTALLMAN3DIR=~/man/man3 WARNING: MAN3PODS takes a hash reference not a string/number. Please inform the author. Can't use string (SNMP) as a HASH ref while strict refs in use at /usr/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 435. Once I removed the MAN3PODS line, I ran perl Makefile.PL with no problems. When I ran make I got an error compiling the XS portion though. [EMAIL PROTECTED] mm-nms SNMP-4.2.0]$ perl Makefile.PL LIB=~/lib INSTALLMAN1DIR=~/man/man1 INSTALLMAN3DIR=~/man/man3 Checking if your kit is complete... Looks good Writing Makefile for SNMP Unable to locate the MIBs, Please enter the path: [/usr/local/sbin] /usr/share/snmp/mibs [EMAIL PROTECTED] mm-nms SNMP-4.2.0]$ make cp SNMP.pm blib/lib/SNMP.pm AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP) /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap SNMP.xs SNMP.xsc mv SNMP.xsc SNMP.c gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\4.2.0\ -DXS_VERSION=\4.2.0\ -fPIC -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE SNMP.c SNMP.xs: In function `__snmp_xs_cb': SNMP.xs:1148: `RECEIVED_MESSAGE' undeclared (first use in this function) SNMP.xs:1148: (Each undeclared identifier is reported only once SNMP.xs:1148: for each function it appears in.) SNMP.xs:1218: `TIMED_OUT' undeclared (first use in this function) SNMP.xs: In function `_bulkwalk_async_cb': SNMP.xs:1519: `RECEIVED_MESSAGE' undeclared (first use in this function) SNMP.xs:1552: `TIMED_OUT' undeclared (first use in this function) SNMP.xs: In function `XS_SNMP__trapV1': SNMP.xs:3791: structure has no member named `address' SNMP.xs:3792: structure has no member named `address' SNMP.xs:3797: structure has no member named `address' make: *** [SNMP.o] Error 1 Is there something I can do to get this to compile? Thanks, Matt Mr. Muskrat Musgrove Perl contractor, EFJohnson VP, D/FW Perl Mongers --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: Can parse_oid_indexes() parse fixed-length string indexes?
IMHO val_len is not used for the purpose you mentioned. Going over the parse_one_oid_index() code, (In the 'ASN_PRIV_IMPLIED_OCTET_STR' case section) I don't see how var-val_len is used to parse fixed-length strings. It is assigned a new value before the old one is ever used. case ASN_PRIV_IMPLIED_OCTET_STR: if (var-type == ASN_PRIV_IMPLIED_OCTET_STR) { uitmp = *oidLen; } else { if (*oidLen) { uitmp = *oidIndex++; --(*oidLen); } else { uitmp = 0; } if ((uitmp *oidLen) (complete == 0)) return SNMPERR_GENERR; } /* * we handle this one ourselves since we don't have * pre-allocated memory to copy from using * snmp_set_var_value() */ if (uitmp == 0) break; /* zero length strings shouldn't malloc */ if (uitmp MAX_OID_LEN) return SNMPERR_GENERR; /* too big and illegal */ /* * malloc by size+1 to allow a null to be appended. */ var-val_len = uitmp; // Erez Makavy: val_len is overwritten, so it is never read from! -Original Message- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 4:50 PM To: Makavy, Erez (Erez) Cc: Wes Hardaker; net-snmp-users@lists.sourceforge.net Subject: Re: Can parse_oid_indexes() parse fixed-length string indexes? On Wed, 8 Mar 2006 13:56:14 +0200, Makavy, Erez (Erez) [EMAIL PROTECTED] said: Erez It looks like the ASN_PRIV_IMPLIED_OCTET_STR switch case, assumes Erez that the rest of the instance is the fixed length string (and it Erez does not look for a preceeding string length component). Erez But what if the instance includes some other index type after this Erez fix-length string? If you set var-val_len as well it'll assume that this is the length of the data you want to pull out. That should just remove a fixed size of data. Erez By the way: Erez - Erez I saw something that looks like a bug: Erez In the parse_one_oid_index() function (Net-SNMP 5.3.0.1): Erez * Erez if (uitmp (int) (*oidLen)) { Erez for (i = 0; i *oidLen; ++i) var- val.string[i] = (u_char) * oidIndex++; Erez for (i = 0; i uitmp; ++i) // Erez Erez Makavy: Is this a BUG?!!! var- val.string[i] = '\0'; Yep. That's indeed a bug. The patch is actually this: Index: mib.c === RCS file: /cvsroot/net-snmp/net-snmp/snmplib/mib.c,v retrieving revision 5.94 diff -u -p -r5.94 mib.c --- mib.c 2 Feb 2006 22:08:39 - 5.94 +++ mib.c 8 Mar 2006 14:48:12 - @@ -3799,7 +3799,7 @@ parse_one_oid_index(oid ** oidStart, siz if (uitmp (int) (*oidLen)) { for (i = 0; i *oidLen; ++i) var-val.string[i] = (u_char) * oidIndex++; -for (i = 0; i uitmp; ++i) +for (i = *oidLen; i uitmp; ++i) var-val.string[i] = '\0'; (*oidLen) = 0; } else { Erez In this if cluase, the first 'for' startement is overridden by the Erez second 'for' statement. Erez (val.string, will always be set to all zeros) Note that the only time this will ever be hit is if the string length was supposed to be longer than the data encoded in the OID. This should actually never ever happen (IE, the OID is too short in the first place for the expected data). I've fixed it anyway because we like to handle exceptions... -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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
Monitoring services and resources
Hi Everyone! I am new to snmp and I want to know if with it I can monitor services like httpd,ftpd,nfds and other daemons. And to monitor resources like disk(partitions) space and memory? Thanks, Pedro Mazzoni
net-snmp newbie needs help
Greetings! I am BRAND new to the whole net-snmp thing, so please bear with me... I'm looking for some basic guidance. I've run configure, make, and make install with the following successful result (as far as I can tell): - Net-SNMP configuration summary: - Net-SNMP Version: 5.1.4.0.1 Building for: linux Network transport support: Callback Unix TCP UDP SNMPv3 Security Modules:usm Agent MIB code: mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities SNMP Perl modules: disabled Embedded perl support: disabled Authentication support: MD5 SHA1 Encryption support: DES AES - However, after launching the snmpd process and verifying that it is running (as shown below) [EMAIL PROTECTED] sbin]# ps aux | grep snmpd root 32317 3.0 0.2 7056 2584 ?S10:14 0:00 ./snmpd root 32319 0.0 0.0 3508 372 pts/4D10:14 0:00 grep snmpd I cannot get a response from the snmp daemon (again, shown below) [EMAIL PROTECTED] net-snmp-5.1.4.pre1]$ snmpwalk -v 1 localhost -c public system Timeout: No Response from localhost If, however, I launch /usr/bin/snmpd from my distribution, it runs successfully as shown: [EMAIL PROTECTED] net-snmp-5.1.4.pre1]$ snmpwalk -v 1 localhost -c public system SNMPv2-MIB::sysDescr.0 = STRING: Linux pegasus 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 SNMPv2-MIB::sysUpTime.0 = Timeticks: (957) 0:00:09.57 SNMPv2-MIB::sysContact.0 = STRING: Root [EMAIL PROTECTED] (configure /etc/snmp/snmp.local.conf) SNMPv2-MIB::sysName.0 = STRING: pegasus Can anyone steer me in the right direction? Thanks, Dana Heath --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: SNMP v4.2.0 Install Failed
Thanks. I'll try that now. Matt -Original Message- From: G. S. Marzot [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 11:26 AM To: Matt Musgrove Cc: net-snmp-users@lists.sourceforge.net Subject: Re: SNMP v4.2.0 Install Failed I am not sure of the state of the CPAN release...I would suggest getting the latest release code from the net-snmp sourceforge project http://sourceforge.net/projects/net-snmp/ this package includes the net-snmp libraries and the perl module which is more likely to play together well. ./configure --with-perl-modules I will check to see what's up with the CPAN release... Also best to copy list above with questions like this. regards, GSM Matt Musgrove wrote: Hi, I tried installing SNMP on one of our linux boxes today and I found a few problems. I checked rt.cpan.org and I see these problems. That site is incredibly slow today and it times out before I can read the contents of the bug tickets. Anyway here goes. Creating the makefile failed. [EMAIL PROTECTED] mm-nms SNMP-4.2.0]$ perl Makefile.PL LIB=~/lib INSTALLMAN1DIR=~/man/man1 INSTALLMAN3DIR=~/man/man3 WARNING: MAN3PODS takes a hash reference not a string/number. Please inform the author. Can't use string (SNMP) as a HASH ref while strict refs in use at /usr/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 435. Once I removed the MAN3PODS line, I ran perl Makefile.PL with no problems. When I ran make I got an error compiling the XS portion though. [EMAIL PROTECTED] mm-nms SNMP-4.2.0]$ perl Makefile.PL LIB=~/lib INSTALLMAN1DIR=~/man/man1 INSTALLMAN3DIR=~/man/man3 Checking if your kit is complete... Looks good Writing Makefile for SNMP Unable to locate the MIBs, Please enter the path: [/usr/local/sbin] /usr/share/snmp/mibs [EMAIL PROTECTED] mm-nms SNMP-4.2.0]$ make cp SNMP.pm blib/lib/SNMP.pm AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP) /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap SNMP.xs SNMP.xsc mv SNMP.xsc SNMP.c gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\4.2.0\ -DXS_VERSION=\4.2.0\ -fPIC -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE SNMP.c SNMP.xs: In function `__snmp_xs_cb': SNMP.xs:1148: `RECEIVED_MESSAGE' undeclared (first use in this function) SNMP.xs:1148: (Each undeclared identifier is reported only once SNMP.xs:1148: for each function it appears in.) SNMP.xs:1218: `TIMED_OUT' undeclared (first use in this function) SNMP.xs: In function `_bulkwalk_async_cb': SNMP.xs:1519: `RECEIVED_MESSAGE' undeclared (first use in this function) SNMP.xs:1552: `TIMED_OUT' undeclared (first use in this function) SNMP.xs: In function `XS_SNMP__trapV1': SNMP.xs:3791: structure has no member named `address' SNMP.xs:3792: structure has no member named `address' SNMP.xs:3797: structure has no member named `address' make: *** [SNMP.o] Error 1 Is there something I can do to get this to compile? Thanks, Matt Mr. Muskrat Musgrove Perl contractor, EFJohnson VP, D/FW Perl Mongers --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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.3.0.1 on RHEL3
All, I have a x86_64 bit machine running RHEL3. In the past I had problems with RHEL4 and 64bit counters and gigabit interfaces... requiring me to build net-snmp 5.3. It has worked great for several months now. I'm assuming I'll have the same problem with RHEL3, causing me to try and build net-snmp 5.3. However, I am having difficulty building the src rpm and/or the src tarball. I keep getting the following error: make[2]: Leaving directory `/usr/local/src/snmp/net-snmp-5.3.0.1/agent/mibgroup' /bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -I/usr/include/rpm -o snmpd snmpd.lolibnetsnmpmibs.la libnetsnmpagent.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm gcc -g -O2 -Dlinux -I/usr/include/rpm -o .libs/snmpd snmpd.o ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lrpm -lrpmio /usr/lib/libpopt.so -lz -lcrypto -lm -Wl,--rpath -Wl,/usr/local/lib /usr/lib/libpopt.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[1]: *** [snmpd] Error 1 make[1]: Leaving directory `/usr/local/src/snmp/net-snmp-5.3.0.1/agent' make: *** [subdirs] Error 1 It appears to be unhappy about libpopt.so, but I know its installed. Details of the system: [EMAIL PROTECTED] ]# rpm -qa | grep popt popt-1.8.2-10 [EMAIL PROTECTED] ]# ls -l /usr/lib | grep popt -rw-r--r--1 root root31256 Aug 25 2004 libpopt.a -rwxr-xr-x1 root root 784 Aug 25 2004 libpopt.la lrwxrwxrwx1 root root 16 Mar 15 2005 libpopt.so - libpopt.so.0.0.0 lrwxrwxrwx1 root root 16 Mar 15 2005 libpopt.so.0 - libpopt.so.0.0.0 -rwxr-xr-x1 root root27372 Aug 25 2004 libpopt.so.0.0.0 [EMAIL PROTECTED] ]# uname -a Linux host 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:34:58 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux [EMAIL PROTECTED] ]# cat /etc/issue Red Hat Enterprise Linux AS release 3 (Taroon Update 3) Any help would be greatly appreciated. Thanks, Dave -- Are Your Friends Lemmings? -- http://www.lemmingshirts.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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: net-snmp-5.3.0.1 on RHEL3
On 3/8/06, Thomas Anders [EMAIL PROTECTED] wrote: Big Wave Dave wrote: I have a x86_64 bit machine running RHEL3. [...] However, I am having difficulty building the src rpm and/or the src tarball. [...] /usr/lib/libpopt.so: could not read symbols: Invalid operation IIRC the current workaround is along the lines of setting export LDFLAGS=-L/usr/lib64 before running configure (or rpm -bb or ...). +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) Awesome... that makes sense. Now I'm getting the following error: Processing files: net-snmp-devel-5.3.0.1-1 Processing files: net-snmp-debuginfo-5.3.0.1-1 Provides: libnetsnmp.so.10.0.1.debug()(64bit) libnetsnmpagent.so.10.0.1.debug()(64bit) libnetsnmphelpers.so.10.0.1.debug()(64bit) libnetsnmpmibs.so.10.0.1.debug()(64bit) libnetsnmptrapd.so.10.0.1.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1 rpmlib(PayloadFilesHavePrefix) = 4.0-1 RPM build errors: user hardaker does not exist - using root user hardaker does not exist - using root File not found by glob: /tmp/net-snmp-root/usr/lib/*.so* It is creating the lib64 .so files, but not the 32bit (I think)... which seems to be confusing it. Any other reommendations? Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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: Monitoring services and resources
Title: RE: Monitoring services and resources Hi You can configure the same in snmpd.conf. Refer man snmpd.conf or http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html Kanda --__--__-- Message: 1 Date: Wed, 8 Mar 2006 15:08:57 -0300 From: Pedro Henrique Morsch Mazzoni [EMAIL PROTECTED] To: net-snmp-users@lists.sourceforge.net Subject: Monitoring services and resources --=_Part_15081_26325463.1141841337046 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Everyone! I am new to snmp and I want to know if with it I can monitor services like httpd,ftpd,nfds and other daemons. And to monitor resources like disk(partitions) space and memory? Thanks, Pedro Mazzoni
RE: net-snmp newbie needs help
Title: RE: net-snmp newbie needs help Hi, See the /var/log/snmpd.log. I hope you are missing the snmpd.conf file. If so run snmpconf i g basic_setup. Refer ./snmpd h and snmpconf h for more details. If you have snmpd.conf file in some other directory ( not in /usr/local/share/snmp/snmpd.con ) use c option to give the conf file path ( run ./snmpd c conf-file with full path) Kanda --__--__-- Message: 2 Date: Wed, 08 Mar 2006 10:28:23 -0800 From: Dana Heath [EMAIL PROTECTED] To: net-snmp-users@lists.sourceforge.net Subject: net-snmp newbie needs help Greetings! I am BRAND new to the whole net-snmp thing, so please bear with me... I'm looking for some basic guidance. I've run configure, make, and make install with the following successful result (as far as I can tell): - Net-SNMP configuration summary: - Net-SNMP Version: 5.1.4.0.1 Building for: linux Network transport support: Callback Unix TCP UDP SNMPv3 Security Modules: usm Agent MIB code: mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities SNMP Perl modules: disabled Embedded perl support: disabled Authentication support: MD5 SHA1 Encryption support: DES AES - However, after launching the snmpd process and verifying that it is running (as shown below) [EMAIL PROTECTED] sbin]# ps aux | grep snmpd root 32317 3.0 0.2 7056 2584 ? S 10:14 0:00 ./snmpd root 32319 0.0 0.0 3508 372 pts/4 D 10:14 0:00 grep snmpd I cannot get a response from the snmp daemon (again, shown below) [EMAIL PROTECTED] net-snmp-5.1.4.pre1]$ snmpwalk -v 1 localhost -c public system Timeout: No Response from localhost If, however, I launch /usr/bin/snmpd from my distribution, it runs successfully as shown: [EMAIL PROTECTED] net-snmp-5.1.4.pre1]$ snmpwalk -v 1 localhost -c public system SNMPv2-MIB::sysDescr.0 = STRING: Linux pegasus 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 SNMPv2-MIB::sysUpTime.0 = Timeticks: (957) 0:00:09.57 SNMPv2-MIB::sysContact.0 = STRING: Root [EMAIL PROTECTED] (configure /etc/snmp/snmp.local.conf) SNMPv2-MIB::sysName.0 = STRING: pegasus Can anyone steer me in the right direction? Thanks, Dana Heath --__--__--