snmp takes 100% of cpu usage

2014-03-20 Thread Jatin Bodarya
Hi all... I am using net-snmp 5.7.2 CentOS 6. In my system there are thousands of PPPoE users / virtual inteface. So snmpd service cause too much load in my system. Can anyone help me with this ? how to resolve it ? Which MIB is affected with this ? so I can remove / change code of

Remove IF-MIB and IP-MIB

2013-12-02 Thread Jatin Bodarya
NET-SNMP version: 5.7.2.rc1 Ubuntu 12.04 Hi all, I want to remove these mibs from my snmp agent. How can I achieve it ? at configure level as well as runtime ? Also I suppose to stop all the MIB from master and just want to include my own MIBs. And run it as a subagent. How can I

Remove IF-MIB and IP-MIB

2013-12-02 Thread Jatin Bodarya
Hi all, I want to remove these mibs from my snmp agent. How can I achieve it ? at configure level as well as runtime ? Also I suppose to stop all the MIB from master and just want to include my own MIBs. And run it as a subagent. How can I achieve it ? Thanks in Advance.

RE: Remove IF-MIB and IP-MIB

2013-12-02 Thread Jatin Bodarya
solution. Thanks Regards, Jatin. From: Bill Fenner [mailto:fen...@gmail.com] Sent: 02 December 2013 22:01 To: Jatin Bodarya Cc: Net-SNMP Coders Subject: Re: Remove IF-MIB and IP-MIB [[ I've removed net-snmp-users, since this question is more appropriate for coders. Note

RE: snmp using chroot

2013-06-13 Thread Jatin Bodarya
Bodarya Cc: 'applebupt'; Net-snmp-coders@lists.sourceforge.net Subject: Re: snmp using chroot On Thu, Jun 13, 2013 at 10:04:02AM +0530, Jatin Bodarya wrote: Now my issue is as my SNMP packaging is in /var partition and I suppose to use it with CHROOT , Its just returning me how many space

snmp using chroot

2013-06-12 Thread Jatin Bodarya
Hello all, I am using netsnmp 5.7.1 as my packaging is in /var partition. Running binary using chroot command with mounted environment snmpwalk -c public -v 2c 127.0.0.1 1.3.6.1.4.1.2021.9.1 This all OIDs give output of only /var partition as its rooted in /var !!! How Can I grep

RE: snmp using chroot

2013-06-12 Thread Jatin Bodarya
... From: applebupt [mailto:wenpinghuajx...@126.com] Sent: 13 June 2013 07:33 To: Jatin Bodarya Subject: Re: snmp using chroot Can you give your output of using snmpwalk command, we can't understand your question clearly. ��?2013-6-12锛�涓���?:27锛?Jatin Bodarya jatin.boda...@elitecore.com

snmp support for TC-linux utility

2013-01-28 Thread Jatin Bodarya
Hi all, Is there any standard MIBs or API or Code available with which I can get the data from TC-utility( http://www.google.co.in/url?sa=trct=jq=tc%20utility%20linuxsource=webcd =1cad=rjaved=0CC4QFjAAurl=http%3A%2F%2Fwww.tldp.org%2FHOWTO%2FTraffic-Con

community for network instead of single IP

2012-12-11 Thread Jatin Bodarya
rwcommunity public 10.XXX.1.127 trap2sink 10.XXX.1.127 I have used this two sentence in my snmpd.confwhich are useful for read-write community as well as sending traps to a particular IP how can I change it for a particular network ? so with the single statement I can

snmp : prot unavilable

2012-11-23 Thread Jatin Bodarya
Hi all, I have 2 different systems A,B . I have configured snmpd.conf of both the linux system according to vice versa. From A - B I can easily walk but B - A it is showing no respose from the hostsame as From B - A I can easily traps can be send but A - B

cache reload issue in agentX

2012-11-01 Thread Jatin Bodarya
Hie Dave, I have implemented C code using mib2c.create-dataset.conf ( with cache enabled) Here I suppose to read very large amount of data from file. And so I m Facing problem while reloading the cache... And because of the slow speed snmpwalk returns no response from the host. Is it

RE: cache reload issue in agentX

2012-11-01 Thread Jatin Bodarya
First question: Why are you creating two caches? I would expect this to double the loading time (Though given that poolTable_load1 doesn't seem to be defined anywhere, I can't see how this code would even compile!) -ooosssthat was a silly try forgot to comment 2nd

SNMPWALK gives Error in packet:Reason (genError)A general failure occurred

2012-10-31 Thread Jatin Bodarya
Hie Dave, I have implemented C code using mib2c.create-dataset.conf ( with cache enabled) As in my getfield(tmp, 2); function I am reading CSV file and geting value of 2nd column. If I run this function on normal mode It is reading whole file with lakes of rows... but with SNMP generated code If I

RE: SNMPWALK gives Error in packet:Reason (genError)A general failure occurred

2012-10-31 Thread Jatin Bodarya
Found the solution of it... Added agentxTimeout 10 in snmpd.conf in my pooltable.h file I have changed cache value as below... #define poolTABLE_TIMEOUT10 Now what should be the proper values ?? as my time command shows for SnmpWalk is 9 to 9.7 seconds for eg. (1 rows,3

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
To find the location of snmp.conf you can use : snmpd -Dread_config -H 21 | grep config path | sort -u then tell the tools to load this MIB (examples):: snmpwalk -m +MY-MIB . (load it for this command only) or export MIBS=+MY-MIB

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
(as per your installation )) mibs +TEST-MIB then restart agent From: avihai marchiano [mailto:avihai...@yahoo.com] Sent: 31 October 2012 15:25 To: Jatin Bodarya Cc: Net-snmp-coders@lists.sourceforge.net Subject: Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
Add it in snmp.conf, remove from snmpd.conf than restart the service, if you cannot find snmp.conf simply create it at desired location and add just a single line in it !!! From: avihai marchiano [mailto:avihai...@yahoo.com] Sent: 31 October 2012 16:06 To: Jatin Bodarya Cc: Net-snmp-coders

need help to update values in mib2c.create-dataset.conf generated code

2012-10-26 Thread Jatin Bodarya
Hello all, Below is my code for 'table'.I am compiling it as a subagent. Which is getting data from a file. But my issue is it is taking the data from first time only The file data.txt is changing its values frequently... But with snmpwalk I can get the only same data all the time.. How

snmpwalk :No such Instance currently exist at this OID

2012-10-18 Thread Jatin Bodarya
Below is my mib2c generated code while I m trying SNMPWALK on 1.3.6.1.4.1.XXX.4.2.1 it shows :: No such Instance currently exist at this OID Can anyone help me where it is going wrong ?? Thanks in advance. /* * Note: this file originally auto-generated by mib2c using * $ */

RE: snmpwalk :No such Instance currently exist at this OID

2012-10-18 Thread Jatin Bodarya
As my table is Read-Only I can not use Snmpset !!! I suppose to add a row and its value from the code it self -Original Message- From: Katia S. [mailto:kat...@iit.demokritos.gr] Sent: 18 October 2012 14:28 To: Jatin Bodarya Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: snmpwalk

implement mib2c generated code for table

2012-10-17 Thread Jatin Bodarya
Below is my mib2c generated code. I am compiling it as subagent... but it is not showing any kind of values. What should be my next step to implement it ? from where can I get data? Please help me to implement it. snmpwalk -c public -v 2c localhost 1.3.6.1.4.1.21068 POOL-MIB::elite = No Such

[no subject]

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

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

Trap Severity Levels Confusion

2012-10-08 Thread Jatin Bodarya
notificationEvent ifMtu.1 IF-MIB::ifMtu.1 1.3.6.1.2.1.2.2.1.4.1 monitor -I -u root -s -t -r 18 Warn: High ipp Usage -e ifMtu.1 1.3.6.1.2.1.2.2.1.4.1 != above lines are of my snmpd.conf file which is generating a trap when condition get false. my issue is I want to send Trap Severity Levels with

SNMPD in CHROOT ... errors!!

2012-10-03 Thread Jatin Bodarya
While running snmp as CHROOT mode it is showing following error can anyone help me ??? Previously It was working fine..but suddenly It is giving errors.. [root@manage /]# /usr/sbin/chroot /var/snmp1/ /usr/local/sbin/snmpd -f -Le -Ddisman /usr/sbin/chroot: syntax error near unexpected

RE: While building netsnmp /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status thrown

2012-09-27 Thread Jatin Bodarya
Install perl before compiling net-snmp with sudo apt-get install libperl-dev From: Anish Nath [mailto:anish2g...@gmail.com] Sent: 26 September 2012 18:18 To: net-snmp-coders@lists.sourceforge.net Subject: While building netsnmp /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit

snmpd.conf: need help for trigger traps

2012-09-18 Thread Jatin Bodarya
Hello sir, In my snmpd.conf file following lines are generating a trap after 25 seconds, as the value of 1.3.6.1.2.1.6.3 = 12 notificationEvent tcpRtoMax.0 TCP-MIB::tcpRtoMax.0 1.3.6.1.2.1.6.3 monitor -u root -S -t -r 25 Warn: High Disk Usage -e tcpRtoMax.0 1.3.6.1.2.1.6.3 - - 9 11

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 Instead

snmpd.conf: trap generation errors !!!

2012-09-16 Thread Jatin Bodarya
Hello, sir Below is my snmpd.conf file. When I am start my service snmpd as I have configure with DISMAN mib, It is generating coldstart trap. I am able to see it on remote machine. snmpv3 queries are also working fine with GET/WALK requests. As I read in snmpd.conf(5) disman event

Traps Error

2012-09-14 Thread Jatin Bodarya
Hi Dave, When I am Restarting my snmpd on the other hand with snmptrapd it continuously receiving traps of v1, v2c cold start and nsNotifyshutdown traps !!! What is the reason behind it? As I read in FAQ section The Net-SNMP agent sends a 'coldStart(0)' trap when it first starts up, and an

snmpv3 error

2012-09-14 Thread Jatin Bodarya
Hello sir, I have following errors please help me with thishow to solve it ??? [root@jatin ~]# net-snmp-config --create-snmpv3-user -a my_password myuser adding the following line to /var/net-snmp/snmpd.conf: createUser myuser MD5 my_password DES adding the following line to

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 goes

net-snmp agent problem

2012-09-12 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

net-snmp agent problem

2012-09-12 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

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 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

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 port

Oid values Update Issue

2012-09-09 Thread Jatin Bodarya
Hello, Sir I have developed one net-snmp client. Everything is working fine. When I am executing code it gives me all available values with GET request. Here my issue is after executing once it gives me same data all the time, But my needed data is changing with every

system call errors in mib2c generated code

2012-09-06 Thread Jatin Bodarya
Hello Dave.. My mib2c generated code is not allowing me to make system calls..!!! Plz help me in this. I have generated this code using watcher.conf and currently running on agentX. I want to assigning some values to OIDs that can I get back on GET request.. but it is

RE: mib2c-system information help

2012-09-06 Thread Jatin Bodarya
The compiler issues a warnning because you do not check the returnr value from the call to system. It does do the call. Maybe you should check the return values from system, fopen, fscanf! It might also help to specify to full path of the script that you call You cannot be sure what the PATH is..

RE: A primary OID handler for a whole subtree

2012-09-05 Thread Jatin Bodarya
Could anyone point me in the right direction concerning my MIB module? Do I need to implement it in a different way and/or am I missing something? It does not seem like request for any child elements of test are directed to its handler. Though if I register all 3 scalars with same handler method

RE: A primary OID handler for a whole subtree

2012-09-05 Thread Jatin Bodarya
Than try it snmp_set_var_typed_value(requests-requestvb, ASN_OCTET_STR, (u_char *) datapointer, strlen(datapointer)); and also try with defining datapointer as an array or char*

mib2c-system information help

2012-09-05 Thread Jatin Bodarya
Hello all, I want to add some system information with my enterprise OID. Can anyone help me ? how can I do this? My mib2c generated code is not allowing me to call the system function to run another program from it or fscanf function to read from the file .. Please help me

Mib2C generated code error..

2012-09-04 Thread Jatin Bodarya
Hello DEVs, Please help me In my mib2c generated code I cannot write any function which returns a value For examples some of the warning are given below.. Please help me, How can I resolve it ?? Thanks in advance.. ionline.c: In function 'handle_memory': ionline.c:869:8: warning: ignoring

RE: Mib2C generated code error..

2012-09-04 Thread Jatin Bodarya
-Original Message- From: Magnus Fromreide [mailto:ma...@lysator.liu.se] Sent: 05 September 2012 02:36 To: Jatin Bodarya Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Mib2C generated code error.. On Tue, 2012-09-04 at 17:08 +0530, Jatin Bodarya wrote: Hello DEVs, Please help

RE: Mib2C generated code error..

2012-09-04 Thread Jatin Bodarya
Below is my code which is showing warning of ionline.c: In function 'handle_memory': ionline.c: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] ionline.c: warning: ignoring return value of 'fscanf', declared with attribute

function calling error outside INIT

2012-09-03 Thread Jatin Bodarya
In below code I m using net-snmp subagent method to start the process. But when I am trying to call any other function inside send_highCpuUsage_trap() it is returning me garbage value !!! can Yyou tell me what is the reason behind it ? and how can i call another function inside this function ??

snmp trap function help

2012-09-02 Thread Jatin Bodarya
Hell all, need help !! Below are my two functions for trap generation... Can anyone tell me how can I pass any external argument to this functions? I want to use some external values that I can send with trap..Help Me.. And can anyone tell me what these two arguements are useful for it ??

register oid proble.m

2012-08-30 Thread Jatin Bodarya
netsnmp_register_int_instance(cpuPercentUsage, cpuPercentUsage_oid, OID_LENGTH(cpuPercentUsage_oid), cpuPercentUsage,handle_diskp); Hey guyz, above is my function to register INT

need Trap function help

2012-08-29 Thread Jatin Bodarya
Below there are two functions are given for generating traps, I want to pass an integer argument eg. highCpuUsage .so that I can send value of this variable in a trap.How can I pass such arguments in below send_highCpuUsage_trap function ? Thanks in advance, Jatin. void cpu() {

compilation error: mib2c

2012-08-28 Thread Jatin Bodarya
Below is my mib2c generated code for my own enterprise... while compiling it it is showing following error : # gcc -I/usr/local/include ionline.c -lnetsnmpagent /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start': (.text+0x18): undefined reference to `main'

[no subject]

2012-08-27 Thread Jatin Bodarya
Hello sir, I want to know that how can I configure mymib.c and mymib.h file in to my system. Without main() function they r giving compilation error. And than also I can not configure this files in to my system.. I have attached my ionline.c file with it.kindly reply me.

mib2c generated (c+h) files error

2012-08-27 Thread Jatin Bodarya
mib2c error Description: Binary data -- 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. Discussions

SNMP-errors

2012-07-26 Thread Jatin Bodarya
I can't grab integer values with read_objid() function.. can tou help me? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT