Re: Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-20 Thread Simone Moni
"A unique value for each active alarm" > ::= { acmLogWatchEntry 1 } > > acmLogWatchSpecificProblem OBJECT-TYPE > SYNTAX DisplayString > MAX-ACCESS read-w

Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-20 Thread Simone Moni
MAX-ACCESS read-write STATUS current DESCRIPTION "the specific problem of the alarm" ::= { acmLogWatchEn

Re: HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-14 Thread Wes Hardaker via Net-snmp-coders
Simone Moni writes: >         if ($request_info->getMode() == MODE_GET) { >             # ... generally, you would calculate value from oid >             if ($oid == new > NetSNMP::OID(".1.3.6.1.4.1.193.37.10.11.64.10.1.2.0")) { >             $request->setValue(ASN_OCTET_STR, $default_SP); >    

HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-07 Thread Simone Moni
DisplayString MAX-ACCESS read-write STATUS current DESCRIPTION "the specific problem of the alarm" ::= { acmLogWatchEn

Re: Problem with proxy the entire tree

2020-09-20 Thread Jenny Yao
Hi Wes, The option -l works for us. Thanks a lot for your help. Jenny On Fri, Sep 18, 2020 at 3:31 PM Wes Hardaker wrote: > Jenny Yao writes: > > > It works fine. However, we would like to have this proxy transparent to > the > > user, and wonder if there is a way to achieve this without

Re: Problem with proxy the entire tree

2020-09-18 Thread Wes Hardaker via Net-snmp-coders
Jenny Yao writes: > It works fine. However, we would like to have this proxy transparent to the > user, and wonder if there is a way to achieve this without using > context. There is no way to do exactly what you want without removing the registrations that the agent itself is implementing. You

Problem with proxy the entire tree

2020-09-15 Thread Jenny Yao
Hi All, We are using net-snmpd 5.8 as a proxy. But when the objects from the remote device conflict with objects from the proxy, we get the objects from the proxy. To solve this problem, we follow the suggestion in the wiki to use context as a selector to integrate the entire tree

Re: Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-03 Thread Keith Mendoza
Dave, On Thu, May 3, 2018, at 2:02 PM, Dave C wrote: > Thanks, you solved my problem but with the path as /usr/local where I had > installed openssl to. Glad I could help. Since you said you were running Raspbian I assumed that you used the OpenSSL Debian packages which usually installs i

Re: Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-03 Thread Dave C
Thanks, you solved my problem but with the path as /usr/local where I had installed openssl to. I'll probably have to stick with 5.7.3 for production for now (on Pi Compute Module) but seeing as you did me a favour I thought I would give 5.8 pre3 a spin for you. Perhaps I'm the first

Re: Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-03 Thread Keith Mendoza
gt; > char EVP_md5 (); > > ^~~ > > In file included from /usr/local/include/openssl/x509.h:73:0, > > from /usr/local/include/openssl/ssl.h:156, > > from t.c:1: > > /usr/local/include/openssl/evp.h:716:15: note: previous dec

Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-02 Thread Dave C
t; /usr/local/include/openssl/evp.h:716:15: note: previous declaration of > ‘EVP_md5’ was here > const EVP_MD *EVP_md5(void); >^~~ I'm not sure if that's the exact test that the configure script is doing but it's just not detecting I hacked the configure sc

Problem Deleting snmpv3 User

2018-04-02 Thread Madhusudhana R
Hi All, Please help on this. I am facing an issue when deleting a SNMP v3 user. I have modified snmp agent in such a way that both snmptrapd and snmpd are running as a single agent where snmptrapd will continuously send traps for testing purpose. I have created an snmpv3 user as below. rwuse

Problem Deleting snmpv3 User

2018-03-29 Thread Madhusudhana R
Hi Coders, I am facing an issue when deleting a SNMP v3 user. I have modified snmp agent in such a way that both snmptrapd and snmpd are running as a single agent where snmptrapd will continuously send traps for testing purpose. I have created an snmpv3 user as below. rwuser User1 createUser

Re: Duplicate notifications serious problem.

2018-01-12 Thread Bill Fenner
Jose, Your debugging determined that you have a loop in your network, which delivers one copy to your trap receiver every time around the loop. The number of traps that you receive maps directly to the TTL of the packet that net-snmp sends out. This is not a problem with how net-snmp sends

Duplicate notifications serious problem.

2018-01-11 Thread Jose Roberto Fernandez Anahia
Hello net-snmp coders. Please, take a look at my last posts in the net-snmp-users list about this subject. There are something really wrong with the network code of the net-snmp (configuration or integration/porting) that I started to investigate but until now without success. Any help will be

snmpd problem

2017-07-10 Thread 王旭哲
HI NICE GUYS i modify the code of "snmp_agent.c" by :static int inprocessing = 0; when a snmpget request come , i count the OIDs it is dealing with. For Example: snmpget -v 1 -c public localhost 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.2.0 inprocessing:2 COMP:1 COMP:0 2->1->0 but why i se

Re: net-snmp instalation problem :snmpd not installed

2017-02-23 Thread Wes Hardaker
deepak.sachan deepak.sachan writes: > 1. I am not able to find snmp.conf &snmpd.conf You likely need to create them. Some packages come with example configuration files, I'm not sure about ubuntu. > 2. snmp server (snmpd) is not installed. (is it possible while installing > net-snmp ,snmpd is

net-snmp instalation problem :snmpd not installed

2017-01-20 Thread deepak . sachan deepak . sachan
Hi I am trying to install net-snmp on ubuntu13.10 from .tar source . After complete installation- 1. I am not able to find snmp.conf &snmpd.conf 2. snmp server (snmpd) is not installed. (is it possible while installing net-snmp ,snmpd is not installed ) 3. All the snmp client tool (snmpwalk ,sn

problem solved :: can not find -lperl

2017-01-15 Thread deepak . sachan deepak . sachan
-snmp-5.7.3/agent' make: *** [subdirs] Error 1 By doing some googling I resolved this problem by symbolic linking $ sudo ln -s /usr/lib/libperl.so.5.18 /usr/lib/libperl.so -- Developer Access Program for Intel Xeo

RE: Problem whit SNMPv3

2016-10-20 Thread Edgar Serrano Kanemoto
. Para: Edgar Serrano Kanemoto ; [email protected] Asunto: 答复: Problem whit SNMPv3 1. Does the snmpd work well? 2. Maybe you can do some packet capture. 发件人: Edgar Serrano Kanemoto [ <mailto:[email protected]> mailto:[email protected]]

Re: Problem whit SNMPv3

2016-10-13 Thread Robert Story
On Wed, 5 Oct 2016 18:24:23 -0500 Edgar wrote: ESK> Hi!! Hola! ESK> I have a problem in SNMPv3. ESK> ESK> When I execute snmpwalk command, I resive timeout like answer Does SNMPv2c work? How are you configuring SNMPv3? How are you calling snmpwalk?

答复: Problem whit SNMPv3

2016-10-08 Thread 陇昕翼
1. Does the snmpd work well? 2. Maybe you can do some packet capture. 发件人: Edgar Serrano Kanemoto [mailto:[email protected]] 发送时间: 2016年10月6日 7:24 收件人: [email protected] 主题: Problem whit SNMPv3 Hi!! I have a problem in SNMPv3. When I execute snmpwalk command, I

Problem whit SNMPv3

2016-10-06 Thread Edgar Serrano Kanemoto
Hi!! I have a problem in SNMPv3. When I execute snmpwalk command, I resive timeout like answer Add evidence: I can help me please. Best regards! Jisaburo Edgar Serrano KanemotoI Seguridad de la Información Tautenet International I Soluciones de TI T MX. (55

Problem with NET-SNMP v 5.5

2015-12-03 Thread Domingo Corral de Dios
Hello, I have a problem with snmp configuration. If I create a user win MD5 and DES authentication all it’s OK: /var/lib/net-snmp/snmpd.conf: createUser UserPrueba MD5 12345678 DES 87654321 /etc/snmp/snmpd.conf: rouser UserPrueba auth service snmp start Test: # snmpwalk -v3 localhost -a MD5

Problem with NET-SNMP v 5.5

2015-11-18 Thread Domingo Corral de Dios
Hello, I have a problem with snmp configuration. If I create a user win MD5 and DES authentication all it’s OK: /var/lib/net-snmp/snmpd.conf: createUser UserPrueba MD5 12345678 DES 87654321 /etc/snmp/snmpd.conf: rouser UserPrueba auth service snmp start Test: # snmpwalk -v3 localhost -a MD5

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread Bill Fenner
ndler_registration > netsnmp_create_table_data > netsnmp_table_helper_add_indexes > netsnmp_register_table > > The problem we are facing is that if our table is columns, c1, c2, and c3, > and if c1 is of string data type. > Now if we are doing “snm

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread sarath azad
4, 2014 at 3:33 AM, sarath azad wrote: Hi Bill, Thanks for the reply.Here for registration of the table we are using belowfunctions:netsnmp_create_handler_registration    netsnmp_create_table_data    netsnmp_table_helper_add_indexes    netsnmp_register_table T

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread Bill Fenner
er_registration > netsnmp_create_table_data > netsnmp_table_helper_add_indexes > netsnmp_register_table > > The problem we are facing is that if our table is columns, c1, c2, and c3, > and if c1 is of string data type. > Now if we are doing “snmpset c1 c2 c3

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread sarath azad
Hi Bill, Thanks for the reply. Here for registration of the table we are using below functions: netsnmp_create_handler_registration netsnmp_create_table_data netsnmp_table_helper_add_indexes netsnmp_register_table The problem we are facing is

Re: problem in SNMPSET on table with string data type columns

2014-09-03 Thread Bill Fenner
iterator( reg, iinfo ); assert( result == MIB_REGISTERED_OK ); int injected = netsnmp_inject_handler( reg, netsnmp_get_serialize_handler() ); assert( injected == SNMPERR_SUCCESS ); Bill On Wed, Sep 3, 2014 at 3:19 AM, sarath azad wrote: > Hello, > > Could you please help in

problem in SNMPSET on table with string data type columns

2014-09-03 Thread sarath azad
Hello, Could you please help in solving the below problem, in doing SNMPSET for tables with string data? thanks and regards S Sarath On Friday, August 22, 2014 9:03 PM, sarath azad wrote: Hello, Could you please help in resolving the below issue? For SNMPSET on a table which contains

problem in SNMPSET with string data type columns

2014-08-22 Thread sarath azad
Hello,   Could you please help in resolving the below issue? For SNMPSET on a table which contains a column of "string" data type, if we are giving values of all the columns in the single SNMPSET query, then we are getting the values of the string column properly, only if the order of column value

Re: A problem about develop new oid

2014-08-19 Thread Niels Baggesen
Den 20-08-2014 kl. 02:57 skrev L'oiseau de mer: > case MODE_SET_ACTION: > strncpy(A, requests->requestvb->val.string, > sizeof(A)); > A[sizeof(A)-1]='\0'; A SNMP string is not a 0-terminated C string. You must respect (and save) the length of th

A problem about develop new oid

2014-08-19 Thread L'oiseau de mer
Hi, everyone I am a snmp newbie developer, and want to write some new OIDs. And generate sample code from mib2c MY-DEFINE-MIB file. But when i develop this part, i meet a big problem: when set string, requests->requestvb->val.string always remain some old data, i don't know how to em

Re: omsnmp plugging creates authentication problem on SNMP receiver side.

2014-03-14 Thread Niels Baggesen
tion IP as a SNMP listener. my actual problem is when i > run my binary on client and see the trap on manager side, its showing a > error messages containing authentication error even OMSNMP only permits > SNMP V1 0r SNMP V2C. so give me your valuable suggestion so that i can > solve my

omsnmp plugging creates authentication problem on SNMP receiver side.

2014-03-11 Thread VIPUL PRAJAPATI
Hi all, Currently i am using rsyslog 7.6.0 build packge and doing implementation for to transfer all the syslog messages to the SNMP listener as a SNMP trap messages. for that i compiled and configured all the parameters and set one destination IP as a SNMP listener. my actual problem is when

SNMP :: Problem in fetching IP address of a server from GET/SET request

2014-01-04 Thread Sonia .
Hi, I had written an SNMP Subagent to handle GET/SET request for resyncVar object. In the SNMP Subagent, I have registered a handler (mentioned below) using netsnmp_register_scalar function for the MIB object resyncVar to handle the GET/SET requests. Handler for handling GET/SET request fr

problem statement

2013-11-25 Thread Gaurav Gulati
Hi All, I am new to Net-SNMP. I need to write a SNMP manager which need to search and poll different devices connected in network. The application should be compatible with both SnmpV1 & SnmpV3. Also , it should monitor the connected devices and update their status. The same application has been

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-21 Thread Niels Baggesen
Den 19-11-2013 11:03, Jean-Paul VILLETTE skrev: > The tarballs don't seem to be online. Problems ? Sorry 'bout that :-( A filesystem had filled up, but they should be back now /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight,

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-19 Thread Jean-Paul VILLETTE
Hello Niels, The tarballs don't seem to be online. Problems ? Regards, Jean-Paul VILLETTE Le 14/11/2013 11:28, Niels Baggesen a écrit : > On Thu, Nov 14, 2013 at 10:55:35AM +0100, Jean-Paul VILLETTE wrote: >> Excuse me for this question (so basic) but are those the last version of >> the sourc

Problem with negative number in counters

2013-11-18 Thread Robo BAss
Hi friends, I have a problem. I reinstall new fedora OS Linux xxx2 3.8.11-200.fc18.x86_64 #1 SMP Wed May 1 19:44:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux and my old netmonitor I porting on this new OS system and don't work. I see problem between snmpget and rrdtool snmpget take me

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-14 Thread Niels Baggesen
On Thu, Nov 14, 2013 at 10:55:35AM +0100, Jean-Paul VILLETTE wrote: > Excuse me for this question (so basic) but are those the last version of > the source code with applied patches ? That is what will be 5.7.3, hopefully before too long. > What are the rules between this code and the normal rel

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-14 Thread Jean-Paul VILLETTE
Hello, No. Mea culpa. I haven't yet. Excuse me for this question (so basic) but are those the last version of the source code with applied patches ? What are the rules between this code and the normal release 5.7.2 (for example) ? Regards, Jean-Paul VILLETTE Le 13/11/2013 15:14, Niels Bagges

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Niels Baggesen
On Wed, Nov 13, 2013 at 01:19:30PM +0100, Jean-Paul VILLETTE wrote: > I think the "configure" does not test if IP_RECVDSTADDR is present and > usable. This means for hpux, the IP_RECVDSTADDR is enabled due to its > definition in /usr/include/sys/socket.h but nothing enables the rest of > the cod

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Jean-Paul VILLETTE
Hello Niels, OK. Understood. I think the "configure" does not test if IP_RECVDSTADDR is present and usable. This means for hpux, the IP_RECVDSTADDR is enabled due to its definition in /usr/include/sys/socket.h but nothing enables the rest of the code to use this particular format. As i said

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Niels Baggesen
On Wed, Nov 13, 2013 at 12:26:33PM +0100, Jean-Paul VILLETTE wrote: > Thanks for your mail. I don't understand what your point is exactly. > What's your idea ? Do you mean the configure has been changed > (or patched) to better handle this option ? Configure tries to determine whether the option

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Jean-Paul VILLETTE
Hello, Thanks for your mail. I don't understand what your point is exactly. What's your idea ? Do you mean the configure has been changed (or patched) to better handle this option ? Regards, Jean-Paul VILLETTE HP Den 07-11-2013 12:54, Jean-Paul VILLETTE skrev: > Due to the many uses of this

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-12 Thread Niels Baggesen
Den 07-11-2013 12:54, Jean-Paul VILLETTE skrev: > Due to the many uses of this option in the source code, the best way for me > is to "#undef" this > option globally for now. But the question stays : how ? I have tried the -U > CFLAGS without any success. Any ideas ? You might want to try

Problem using IP_RECVDSTADDR on HPUX.

2013-11-07 Thread Jean-Paul VILLETTE
Hello, I have a problem using snmpd from net-snmp 5.7.2 on HPUX (version 11.23 and 11.31, IA version). When using UDP, the daemon doesn't send back correctly the reply. There is a mistake in defining the distant IP address : the snmpd daemon sends the replies to itself, the dista

Problem with NET-SNMP-TUTORIAL-MIB

2013-09-25 Thread Juan Bússoli
Hi, I downloaded the MIB "NET-SNMP-TUTORIAL-MIB", then i store it in the route `../net-snmp-5.7.2/mibs/NET-SNMP-TUTORIAL-MIB.txt' and also in `/usr/local/share/snmp/mibs/NET-SNMP-TUTORIAL-MIB.txt', but when i make a query "snmptranslate" at the agent to see the detail of the objects that belong to

Re: Problem in snmpget

2013-09-11 Thread Anish
well to check the sematics before coming to an conclusion. -- Anish From: Geet Bhatia To: Anish Cc: Net-snmp-coders Sent: Tuesday, 10 September 2013 2:38 PM Subject: Re: Problem in snmpget Hi Anish, Thanks for responding. The output of print_variable

Re: Problem in snmpget

2013-09-10 Thread Geet Bhatia
Hi, I am not using any str* functions. Its only memcpy. Please check the code below: for(vars=response->variables;vars;vars=vars->next_variable) { if(vars->type == ASN_OCTET_STR) { char *sp = (char*)malloc(1+vars->val_len); memcpy(sp,vars->val.string,vars->v

Re: Problem in snmpget

2013-09-10 Thread Geet Bhatia
;variables; vars; vars = vars->next_variable) >print_variable(vars->name, vars->name_length, vars); > > > > -- > *From:* Geet Bhatia > *To:* [email protected] > *Sent:* Monday, 9 September 2013 2:22 PM > *S

Re: Problem in snmpget

2013-09-09 Thread Anish
9 September 2013 2:22 PM Subject: Problem in snmpget Hi, I have written a code to send snmp request and receive response from agent. The program is also processing the response. For this I memcpy the response in a buffer. I am using the following code to copy the response after rece

Re: Problem in snmpget

2013-09-09 Thread Niels Baggesen
Den 09-09-2013 10:52, Geet Bhatia skrev: > The value sent by agent is correct. I have checked it on wireshark. Even > the print_variable is printing correct value on console. But I am not > able to get this value copied in buffer. This does not make sense. If print_variable can print it, then the

Problem in snmpget

2013-09-09 Thread Geet Bhatia
//process the sp buffer } } The response is of 40 Bytes of ASN_OCTET_STR. The first byte of response is always 0. *Problem*: The problem is I am not getting anything in vars->val.string. Though the length returned by vars->val_len is 40 and data type returned by vars->type is ASN_OCT

Problem in snmpget

2013-09-06 Thread Geet Bhatia
//process the sp buffer } } The response is of 40 Bytes of ASN_OCTET_STR. The first byte of response is always 0. *Problem*: The problem is I am not getting anything in vars->val.string. Though the length returned by vars->val_len is 40 and data type returned by vars->type is ASN_OCT

Re: MIB compile problem

2013-07-30 Thread Bill Fenner
EGER <---compiler says Item "nsExtendResult" in >> > sequence "NsExtendOutput1Entry" has conflicting syntax specified >> > } >> > I’m no expert in ASN.1 but I can’t find what the problem is. I even >> > looked in the imports >> >

Re: MIB compile problem

2013-07-25 Thread Fulko Hew
says Item > > "nsExtendOutNumLines" in sequence "NsExtendOutput1Entry" has > > conflicting syntax specified > > nsExtendResult INTEGER <---compiler says Item "nsExtendResult" in > > sequence "NsExtendOutput1Entry" has conflicting

Re: MIB compile problem

2013-07-24 Thread Magnus Fromreide
On Thu, 2013-07-18 at 19:47 +, O'hara, Joseph (Contractor) wrote: > Hi net-snmp-coders, > > I am having trouble compiling the NET-SNMP-EXTEND-MIB which I just > downloaded > from your website. I am using the latest version of the MB-Soft MIB > Browser with Compiler. > > The indicate

Re: MIB compile problem

2013-07-24 Thread Andrew Hood
syntax specified > nsExtendResult INTEGER <---compiler says Item "nsExtendResult" in > sequence "NsExtendOutput1Entry" has conflicting syntax specified > } > I’m no expert in ASN.1 but I can’t find what the problem is. I even > looked in the imports > fi

MIB compile problem

2013-07-24 Thread O'hara, Joseph (Contractor)
Item "nsExtendResult" in sequence "NsExtendOutput1Entry" has conflicting syntax specified } I'm no expert in ASN.1 but I can't find what the problem is. I even looked in the imports files to see if those names were defined there. I have compiled many other MIBs i

problem in snmp_select_info

2013-02-20 Thread Geet Bhatia
Hi All, I am writing a async snmp application taking help from netsnmp async code example. I am following the same steps that are mentioned in example. In my application I am polling the agent at regular interval. On timer elapse the code creates a snmp_session with all values and sends the get re

Re: Problem in receiving traps

2013-01-22 Thread Dave Shield
On 22 January 2013 10:23, Geet Bhatia wrote: > I am trying to build a simple C trap receiver. Is there any reason why you don't wish to use the standard 'snmptrapd' application? > Here I am calling function netsnmp_transport_open_server with application > name and udp:162 as parameters. But thi

Problem in receiving traps

2013-01-22 Thread Geet Bhatia
Hi, I am trying to build a simple C trap receiver. Here I am calling function netsnmp_transport_open_server with application name and udp:162 as parameters. But this function is returning NULL every time. I am not able to find the problem. Please tell me what could be the possible problem

Re: index allocate/deallocate of integer values over 255 fails (problem isolated)

2012-11-15 Thread Fulko Hew
s (sequence of allocate/register/unregister/deallocate) > is small (less than 255 entries) it works fine, but as soon as I add a 256th > entry for my table (that I've registered), when I go to Unregister (them all), > one of them will fail with an indexNotAllocated error response. I

Problem in receiving traps

2012-11-01 Thread Geet Bhatia
Hi, I need to receive enterprise specific traps from different equipments connected to my application. These traps are present in different mibs. I have written a C code for that. But I am not able get traps. I have also taken help from snmptrapd.c code. But I am still not able get traps. If any b

problem in extending snmp-agent

2012-10-16 Thread Jatin Bodarya
Hello Sir, Need your help... I am using net-snmp-5.7.2.rc1 in organization which is handling thousands of users. For getting interface wise data I am doing following snmpwalk -v 2c -c public 127.0.0.1 1.3.6.1.2.1.2.2.1.10.1 IF-MIB::ifInOctets.1 = Counter32: 20709544 In my Linux Server th

Re: Problem with C APIs

2012-10-03 Thread Wes Hardaker
Geet Bhatia writes: > Hi, > > I am trying to make small manager application in qt (for GUI) with Net-SNMP > C APIs. > > 1. I am able to parse MIB file through read_mib. But when I traverse the > tree struct, return value of read_mib, to get information it shows zero > content in that but pointer

Problem with C APIs

2012-09-19 Thread Geet Bhatia
Hi, I am trying to make small manager application in qt (for GUI) with Net-SNMP C APIs. 1. I am able to parse MIB file through read_mib. But when I traverse the tree struct, return value of read_mib, to get information it shows zero content in that but pointer to that tree is not zero, that means

Trap generation Problem with DisMan Schedule MIB

2012-09-17 Thread Jatin Bodarya
Hello sir,I have written following line in my "snmpd.conf". but it is not working...It is not sending any kind of trap notificationEvent ifInOctets.2 IF-MIB::ifInOctets.2 1.3.6.1.2.1.2.2.1.10.2 monitor -D -r 20 -S -u root -e ifInOctets.2 "Warn: High value" 1.3.6.1.2.1.2.2.1.10.2 > 1500 Ins

snmp trap trigger problem...

2012-09-13 Thread Jatin Bodarya
In my Mib2c generated C code I am getting some data from system...I am Usinf for(;;) in "handle" function for updating data..but it is called only after GET or WALK requests fired. What I need is a can call a function continually which is returning a INT value between 1-100...and When the value goe

RE: net-snmp agent problem

2012-09-12 Thread Jatin Bodarya
You are very much right sir, Ignoring warnings and error values can give troubles. Its working !! with pclose(pipe); only..thank you so much sir... -- Live Security Virtual Conference Exclusive live event will cover al

Re: net-snmp agent problem

2012-09-12 Thread Dave Shield
On 12 September 2012 10:02, Jatin Bodarya wrote: > But the issue is with popen(); call... when I am using SNMPWALK > command to get value it is working perfectly and returning me correct > value... but only 10-15 time... then after popen fails ! Have you considered closing the pipe a

RE: net-snmp agent problem

2012-09-12 Thread Jatin Bodarya
int temp() { FILE *pipe = NULL; pipe=popen("/home/jatin/net-snmp-5.7.2.rc1/agent/mibgroup/cpu.sh","r"); if(!pipe) { snmp_log(LOG_ERR, "popen failed in temp(), errno: %d\n", errno); return -1; } Thank you Sir, But the issue is with popen

RE: net-snmp agent problem

2012-09-12 Thread Schmoll Walter
Hi Jatin! I don't know much about SNMP but your problem might come from your function temp. What exactly is temp returning if popen or fscanf fails? There is no return statement in these pathes. So the function might return anything. Probably 0. I would return a specific value, so tha

net-snmp agent problem

2012-09-11 Thread Jatin Bodarya
Hello everyone, I have generated a C code with mib2c tool, than implemented it according to my need. Everything is working fine .I have assigned values with system calls. These system call calling a shell script and getting output from there. When I am using SNMPGET or WALK it g

net-snmp agent problem

2012-09-11 Thread Jatin Bodarya
Hello everyone, I have generated a C code with mib2c tool, than implemented it according to my need. Everything is working fine .I have assigned values with system calls. These system call calling a shell script and getting output from there. When I am using SNMPGET or WALK it g

Re: How to solve this problem.

2012-09-11 Thread Dave Shield
On 11 September 2012 05:32, Jatin Bodarya wrote: > If the port is allocated to another process kill it with > Kill -9 PROCESSID Arggg No!! Do not NOT *NOT* use "kill -9" as your weapon of choice. Use a simple "kill" by all means - that at least allows the process a chance t

RE: How to solve this problem.

2012-09-10 Thread Jatin Bodarya
I am using Ubuntu 12.04 version in Vmware when i was trying to compile an SNMP file i am getting an error Error opening specified endpoint "udp:161" please help me out Try this out..may be it will help you with this error. Netstat -anp | grep 161 If the por

答复: check snmp storage have problem.

2012-07-23 Thread robin yin
in nagios it display as 18% used. -邮件原件- 发件人: [email protected] [mailto:[email protected]] 代表 Dave Shield 发送时间: 2012年7月21日 4:53 收件人: robin yin 抄送: [email protected]; Yin, Robin 主题: Re: check snmp storage have problem. On 17 July 2012 10:48, robin yin

Re: 答复: check snmp storage have problem.

2012-07-23 Thread Dave Shield
likely to be able to explain/fix this problem. Dave -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond.

Re: check snmp storage have problem.

2012-07-20 Thread Dave Shield
On 17 July 2012 10:48, robin yin wrote: > When I use check_snmp_storage script to check windows server 2003’s storage, That's not part of the Net-SNMP suite, so it's a bit difficult to know exactly what it is doing. > I found the percentage is not correct on E drive. But on the other it is ok,

check snmp storage have problem.

2012-07-18 Thread robin yin
Dear friend, When I use check_snmp_storage script to check windows server 2003's storage, I found the percentage is not correct on E drive. But on the other it is ok, can you tell what is wrong? ./check_snmp_storage -C public -H 10.101.161.131 -m ^E -w 80 -c 90 OK : E:\ Label:data Serial

Re: Problem with compiling mib objects with subagent

2012-05-15 Thread Robert Story
On Tue, 15 May 2012 11:33:13 +0530 Jasti wrote: JD> Whenever I restart or shutdown my system all my configurations like JD> compiling mib objects with subagent are erased...am not getting where the JD> problem occurred pls can anyone help regarding this? This doesn't seem to make se

Problem with compiling mib objects with subagent

2012-05-14 Thread Jasti Durgashree
Whenever I restart or shutdown my system all my configurations like compiling mib objects with subagent are erased...am not getting where the problem occurred pls can anyone help regarding this? -- Live Security Virtual

Re: problem with snmpset

2012-05-03 Thread Dave Shield
On 3 May 2012 05:01, Durga Sree wrote: > Am able to solve that problem if i run with sysName am getting the correct > result > but when i use other objects am getting the following error > > root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost > sysName.0 s

RE: problem with snmpset

2012-05-03 Thread Durga Sree
Am able to solve that problem if i run with sysName am getting the correct result but when i use other objects am getting the following error root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysName.0 s "office" SNMPv2-MIB::sysName.0 = STRING: office root@newus

Re: problem with snmpset

2012-05-02 Thread Robert Story
On Wed, 2 May 2012 09:35:31 + Durga wrote: DS> Hi, DS> I am facing problem with snmpset. DS> after alkl settings in access control still am not able to solve the DS> problem I am getting the following error DS> DS> root@newuser-desktop:/home/newuser# snmpset -v 2c -c pr

problem with snmpset

2012-05-02 Thread Durga Sree
Hi, I am facing problem with snmpset. after alkl settings in access control still am not able to solve the problem I am getting the following error root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysLocation.0 s "Hello" Error in packet. Reason: notWritable (T

Re: problem with snmpset

2012-05-01 Thread Dave Shield
On 1 May 2012 13:15, Jasti Durgashree wrote: >   I am facing a problem with snmpset, even though i have defined my mib > object to be read-write am getting the following problem >  so can anyone please help? Check the access control settings for your agent. >From the FAQ: Why can

problem with snmpset

2012-05-01 Thread Jasti Durgashree
Hi all, I am facing a problem with snmpset, even though i have defined my mib object to be read-write am getting the following problem so can anyone please help? root@ubuntu:/home/user# snmpset -v 2c -c public localhost XXX.0 s mumbai Error in packet. Reason: noAccess Failed object: SNMPv2

Re: Problem with cross-compiling net-snmp package 5.6.1.1

2011-12-13 Thread Bill Fenner
Prashant, There is a whole web site dedicated to making it easier to build embedded Linux systems: http://buildroot.net/ . Their system includes net-snmp 5.7.1. Maybe you can find a way to leverage their tools to accomplish your goal. Bill (I don't know anything specific about buildroot, just

Re: Problem with cross-compiling net-snmp package 5.6.1.1

2011-12-09 Thread Bill Fenner
Prashant, There is a whole web site dedicated to making it easier to build embedded Linux systems: http://buildroot.net/ . Their system includes net-snmp 5.7.1. Maybe you can find a way to leverage their tools to accomplish your goal. Bill (I don't know anything specific about buildroot, jus

Re: Problem with running sub-agent: AgentX

2011-11-23 Thread Dave Shield
On 23 November 2011 11:00, prashant n wrote: > 1)  If  i want to handle other objects with types such as table, float, > string etc.. then what changes  i need to do in source file example-demon.c ? >From the FAQ entry Which mib2c configuration file should I use? For implementing a group

Problem with running sub-agent: AgentX

2011-11-23 Thread prashant n
Hi Dave, *Thanks for your reply.* * * Again i tried both the cases i,e 1) I am able to create sub-agent: AgentX automatically using the net-snmp-config script and i tested. 2) Instrumenting my own code with agentx sub agent support as given in tutorial I killed the snmpd command (Ct

RE: Problem with running sub-agent: AgentX

2011-11-23 Thread Eirik Nordbrøden
t > Subject: Re: Problem with running sub-agent: AgentX > > On 23 November 2011 06:33, prashant n wrote: > > Following lines shows the output of the command: > >  sudo /usr/local/sbin/snmpd -f -L -d -p Turning on AgentX > > master support. > > NET-SNMP ver

Re: Problem with running sub-agent: AgentX

2011-11-23 Thread Dave Shield
On 23 November 2011 06:33, prashant n wrote: > Following lines shows the output of the command: >  sudo /usr/local/sbin/snmpd -f -L -d -p > Turning on AgentX master support. > NET-SNMP version 5.6.1.1 OK - so there's no sign of any warning messages. So opening the AgentX socket should ha

Problem with running sub-agent: AgentX

2011-11-22 Thread prashant n
Hi Dave, *Thanks for your valuable feedback.* Ya now i got advantage of using sub-agent, you have been very helpful for me. Following lines shows the output of the command: sudo /usr/local/sbin/snmpd -f -L -d -p Turning on AgentX master support. NET-SNMP version 5

Re: Problem with running sub-agent: AgentX

2011-11-22 Thread Dave Shield
On 22 November 2011 14:43, prashant n wrote: > my snmpd.conf looks like this > > rwcommunity  private > master agentx > >  and i run the master agent using command: > sudo /usr/local/sbin/snmpd -f -L -d -p What is the output of this command? What does it log? Dave --

  1   2   3   4   5   6   7   8   9   >