Problems with snmp and disk...

2008-07-31 Thread Carlos Barrero Martínez
Hi! I have installed net-snmp from the redHat respository. I want to monitorize some features of my disks. However, I can't do it. In the file snmpd.conf, I have wroten: # Check the / partition and make sure it contains at least 10 megs. disk / 10 When I write "snmpwalk -v 2c localhost -c

Re: Solaris 10's Net-SNMP requires Unix Domain Sockets

2008-07-31 Thread ntwrkd
Birendra, I am not sure about Solaris, but there could be a problem running on privileged ports. You might try running your agent on a higher port number and see if that works. Matt Matthewsacks.com Sent from my Verizon Wireless BlackBerry -Original Message- From: "Sinha, Birendra (Bire

what is the reason doing ioctl for flush

2008-07-31 Thread Tokuhisa Inagaki
Hi all, I met strange Phenomenon on Solaris10 box running snmpd(5.4.1) when netstat command is executed. ex) # netstat -an -P tcp TCP: IPv4 Local AddressRemote Address Swind Send-Q Rwind Recv-QState - - -- - -- --- 154.4

RE: RE: How to get host's ip address?

2008-07-31 Thread Mike Ayers
> From: xiao ren [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 5:45 PM > Maybe I asked a confusing question in last mail. What I > really want to know is how to use net-snmp lib api to fetch > the correct ip address, thanks! The long answer could fill volumes. The s

Re: RE: How to get host's ip address?

2008-07-31 Thread xiao ren
Hi, Mike Maybe I asked a confusing question in last mail. What I really want to know is how to use net-snmp lib api to fetch the correct ip address, thanks! -- Ren 2008-08-01 - 发件人:

Re: RE: How to get host's ip address?

2008-07-31 Thread xiao ren
Hi, Mike Can you give me an example on how to use get-next method to get the indexes? I found that I can use snmpwalk to get the the host's ip addresses, but I don't know how it is done(I paste the snmpwalk command below) $ snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.2.

Re: running a command when there is a problem with proces

2008-07-31 Thread Dave Shield
2008/7/31 Osvaldo Alvarez Pozo <[EMAIL PROTECTED]>: > Im am checking the apache2 proces but my procfix does not get executed You need to action this yourself - either directly: $ snmpset prErrFix i 1 or via a suitable monitor/setEvent combination: setEvent caniPressTheButtonAga

Re: tcp_handler() error on FreeBSD

2008-07-31 Thread (private) HKS
Didn't happen with rc1. Is this something I can troubleshoot any further, or is it pretty much in the port-maintainer's hands? -HKS On Thu, Jul 31, 2008 at 2:02 PM, Thomas Anders <[EMAIL PROTECTED]> wrote: > (private) HKS wrote: >> Installed by FreeBSD ports. Requested output below: > > The port

running a command when there is a problem with proces

2008-07-31 Thread Osvaldo Alvarez Pozo
Hi all. Im am checking the apache2 proces but my procfix does not get executed when I do snmpwalk I get this UCD-SNMP-MIB::prErrMessage.1 = STRING: No apache2 process running. UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: error(1) UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0) this my snmpd.conf: grou

Re: tcp_handler() error on FreeBSD

2008-07-31 Thread Thomas Anders
(private) HKS wrote: > Installed by FreeBSD ports. Requested output below: The ports package is believed to ship with custom patches. Could you please build a stock 5.4.2.rc1 (to be released anytime soon) and check whether it has the same problem? +Thomas -- Thomas Anders (thomas.anders at b

Net-SNMP 5.4.2.rc1 available

2008-07-31 Thread Dave Shield
Net-SNMP 5.4.2.rc1 is now available for testing. This contains a significant number of bug fixes over the 5.4.1 release. We would encourage as many of you as possibly to download this code, try this in your own environments, and let us know of any problems. The NEWS snippit for this release is a

RE: How to get host's ip address?

2008-07-31 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of xiao ren > Sent: Thursday, July 31, 2008 10:09 AM > But why must I use ip address as the index of the OID to > query it's own ip address? You don't - you can use get-next from the top of the table and discover the in

Re: Make-Error

2008-07-31 Thread Thomas Anders
Phani Chand.Kolli wrote: > BRKSVX20e/ul/yyyt158/net-snmp-5.4.1.2#perl -V > [...] > cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem [...] > > cc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib > > -D_ALL_SOURCE - As documented in README.aix, you sho

Re: tcp_handler() error on FreeBSD

2008-07-31 Thread (private) HKS
Installed by FreeBSD ports. Requested output below: '--enable-shared' '--enable-internal-md5' '--with-mib-modules= host disman/event-mib smux mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio' '--with-default-snmp-version=3' '[EMAIL PROTECTED]' '--with-sys-location=somewhere' '--with-logfile=/var/

Re: tcp_handler() error on FreeBSD

2008-07-31 Thread Thomas Anders
(private) HKS wrote: > Net-SNMP 5.4.1.2 on FreeBSD 7.0. Is that your own build or a package provided by FreeBSD ports? What's the output of "net-snmp-config --configure-options"? +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --

Make-Error

2008-07-31 Thread Phani Chand.Kolli
Hi frnds, When I run - Net-SNMP configuration summary: - SNMP Versions Supported:1 2c 3 Net-SNMP Version: 5.4.1.2 Building for: ai

tcp_handler() error on FreeBSD

2008-07-31 Thread (private) HKS
I haven't been able to find anything on Google, so hopefully someone here can help me out. Net-SNMP 5.4.1.2 on FreeBSD 7.0. Any snmpwalk that touches the tcpConnTable (1.3.6.1.2.1.6.13) fires off this error in my logs: snmpd[9996]: netsnmp_assert !"cache == valid" failed mibII/tcp.c:218 tcp_hand

How to get host's ip address?

2008-07-31 Thread xiao ren
Hi, buddies I need to get some host's all IP addresses by snmp periodically. I try the RFC1213-MIB(IP-MIB::ipAdEntAddr.1)by snmpget, it reports "IP-MIB::ipAdEntAddr.1 = No Such Instance currently exists at this OID", and if I use IP-MIB::ipAdEntAddr.127.0.0.1 as the variable instance, it will b

what is the value of DEFMAXLOADAVE

2008-07-31 Thread Osvaldo Alvarez Pozo
Hi all. yes, I can not find out what is the value of DEFMAXLOADAVE? Thanks - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great

RE: Netsnmp Security issue

2008-07-31 Thread Joan Landry
Ok, thanks for your help, Given your input I opted to change the -I command from inclusion to exlusion be means of the (-) option. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, July 31, 2008 9:45 AM To: Joan Landry Cc

Re: net-snmp links to unsubscribe/subscribe to/from mailing lists do not work

2008-07-31 Thread Dave Shield
2008/7/31 michael kapelko <[EMAIL PROTECTED]>: > please fix it Which links, please? Dave - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin S

net-snmp links to unsubscribe/subscribe to/from mailing lists do not work

2008-07-31 Thread michael kapelko
please fix it - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event a

Re: sending snmp traps

2008-07-31 Thread Osvaldo Alvarez Pozo
Ok I got a solution. monitor -r 10 -o dskPath -o dskAvail -o dskTotal "dskTable " dskErrorFlag 0 1 so when dskErrorFlag=1 I get .1.3.6.1.2.1.88.2.0.2 and when dskErrorFlag=0 I get .1.3.6.1.2.1.88.2.0.3 Thanks On Thu, Jul 31, 2008 at 3:04 PM, Dave Shield <[EMAIL PROTECTED]> wrote:

Re: Netsnmp Security issue

2008-07-31 Thread Dave Shield
2008/7/31 Joan Landry <[EMAIL PROTECTED]>: > Why should the -I option have an impact on the master agent doing > authentication? Because the authentication and access control functions are implemented as (optional) modules. If you omit these module from the master agent, then it won't do authent

RE: Netsnmp Security issue

2008-07-31 Thread Joan Landry
I do not want to deligate authentication to the sub agent. I want the master agent to do authentication. The problem is that by adding the -I option the master agent NO LONGER does authentication. My question is how do I get the master agent to do authentication and still use the -I option for

Re: monitor directive: Trigger query (walk) failed: -2

2008-07-31 Thread Dave Shield
2008/7/31 Michael Musenbrock <[EMAIL PROTECTED]>: > I want to monitor my own scalar, handled by a subagent, with the disman event > handler. This doesn't work with 5.4.1. Have a go with 5.4.2.pre2 or 5.4.2.rc1 (hopefully later today!) We think this problem should be fixed there. Dave --

Re: IPv6 support in Net SNMP

2008-07-31 Thread Wes Hardaker
> On Wed, 30 Jul 2008 20:41:56 +0530, Ravindra <[EMAIL PROTECTED]> said: R> I would like to know which is the first stable official version of Net R> SNMP that added support for IPv6 ? I can't give you the exact version number without a lot of searching, but support has existed for it since U

Re: sending snmp traps

2008-07-31 Thread Dave Shield
2008/7/31 Osvaldo Alvarez Pozo <[EMAIL PROTECTED]>: > monitor -r 11 -o dskPath -o dskErrorMsg "dskTable clear " > dskErrorFlag == 0 > > now i get my trap, but the only problem is that it has almost the > same message WARNING: :Disk Space low dskTable clear (null) (null) > dskErrorFlag.1 0

Re: sending snmp traps

2008-07-31 Thread Osvaldo Alvarez Pozo
Hy I tried that and It worked. But I have a new problem. I changed my file like this: monitor -r 10 -o dskPath -o dskErrorMsg "dskTable alert" dskErrorFlag != 0 monitor -r 11 -o dskPath -o dskErrorMsg "dskTable clear " dskErrorFlag == 0 now i get my trap, but the only problem is t

monitor directive: Trigger query (walk) failed: -2

2008-07-31 Thread Michael Musenbrock
Hi, online search seemsto be unavailable (everytime 0 results), so I apologize if the question was asked yet, but it is quite urgent. I want to monitor my own scalar, handled by a subagent, with the disman event handler. Steps I've done: create v3 user -> snmpget/walk requests working use for t

Re: How convert string to integer

2008-07-31 Thread Dave Shield
2008/7/31 Murilo Fujita <[EMAIL PROTECTED]>: > I extended my agent to compare voltage value (greater or less than 12 > volts) gotten through data acquisiton. > But 30778.9.4.1.2.7.47.98.105.110.47.115.104.2 is string as shown below. The DisMan Event MIB (i.e. monitor) can really *only* w

Re: Netsnmp Security issue

2008-07-31 Thread Dave Shield
2008/7/31 Joan Landry <[EMAIL PROTECTED]>: > I want netsnmp to handle certain parts of the mib tree so I start it up > with the following cmd line: [snip] > When I do this net-snmp ignores the authentication in the snmpd.conf > with respect to the users I allow access via the com2sec option.

How convert string to integer

2008-07-31 Thread Murilo Fujita
Good morning! About my doubt, does somebody can help me? I would like an answer. If it´s impossible, I´ll try another way. But, please, answer me. Thanks again. Murilo Hi! I extended my agent to compare voltage value (greater or less than 12 volts) gotten through

Netsnmp Security issue

2008-07-31 Thread Joan Landry
All, I want netsnmp to handle certain parts of the mib tree so I start it up with the following cmd line: ./snmpd -f -Le -I snmpEngine,snmpMPDStats,at,ip,snmp_mib,tcp,icmp,udp,setSerialNo,ipCidrRo uteTable,tcpConnectionTable I want the subagnet to handle the rest of the mib tree. When I do this

Re: sending snmp traps

2008-07-31 Thread Dave Shield
2008/7/31 Osvaldo Alvarez Pozo <[EMAIL PROTECTED]>: > I have a problem sending snmptraps. I check disk space, and load. I > want to send a trap in case on disk space probleme, an another when > disk space is normal again. > monitor -r 80 -o prNames -o prErrMessage "procTable" prErrorFlag

sending snmp traps

2008-07-31 Thread Osvaldo Alvarez Pozo
Hi. I have a problem sending snmptraps. I check disk space, and load. I want to send a trap in case on disk space probleme, an another when disk space is normal again. I get the trap when the disk space is under minimun value , but I get nothing when disk space is normal again. My file snmpd.con

RE: Solaris 10's Net-SNMP requires Unix Domain Sockets

2008-07-31 Thread Sinha, Birendra (Birendra)
Larry, I think problem here is something different. Please see the details below: Solaris 10 is shipped with System Management Agent(SMA) which is an SNMP agent that is based on Net SNMP. The Net-SNMP version used in SMA is 5.0.9. We are using iReasoning Agent Builder for subagent building. The