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
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
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.
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
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
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
...
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
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
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
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
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
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
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
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
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
(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
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
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
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
* $
*/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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();
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
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
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
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
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..
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
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*
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
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
-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
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
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 ??
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 ??
netsnmp_register_int_instance(cpuPercentUsage,
cpuPercentUsage_oid,
OID_LENGTH(cpuPercentUsage_oid),
cpuPercentUsage,handle_diskp);
Hey guyz, above is my function to register INT
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()
{
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'
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 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
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
54 matches
Mail list logo