Networking :: Make Mib File For Snmp?
Mar 9, 2011how to make mib file for snmp....
View 3 Replieshow to make mib file for snmp....
View 3 RepliesI'm trying to configure SNMP service to send traps to SNMP server. I've installed net-snmp-utils, now I need to configure the "snmpd.conf" file...
View 2 Replies View RelatedI wanted to know is there any way to send a content of a file as snmp trap with snmpd agent of linux?
View 3 Replies View RelatedWhen I try to compile some Java code on Ubuntu 10.10 (kernel 2.6+) using make and a Makefile.
I get an error indicating that the make utility cannot execute the java compile command (javac).
The error reads: /bin/bash: line 6: .: /usr/local/jdk1.5.0_18/bin/javac: cannot execute binary file
I am executing make as root. I have enabled permissions on all directories in the path /usr/local/jdk1.5.0_18/bin/javac and on javac itself.
I get this error whether using a jdk installed via ubuntu apt-get, or whether I install the jdk myself. And I get it using either Java 1.5 or 1.6
My machine has an 80386 processor. I notice the make utility is built for i686-pc-linux-gnu
However, I can manually compile using javac.
I can compile calling javac from within a bash script.
I can compile using the java compiler gcj from the command line: gcj --main=HelloWorld HelloWorld.java -o HelloWorld.exe
But I cannot compile java code from the makefile. Any reasons why I might be getting this error?
I have installed Net-SNMP.It is binded to port udp 161I start it with the command: snmpd -Lo
when I do snmpget -v 1 -c public localhost system.sysObjectID.0on the same machine the snmpd is running on- I get a respond SNMPv2-MIB::sysObjectID.0 = OID: ccitt.1when I send same request from another machine (using SNMPc program) - I see no reaction.I used "wireshark" to monitor packets, and I see the requests sent from the other machine. I also see them get to the first machine.
I want to make a file called file roller for Ubuntu 9.10. The folder has a file called install.sh and some others that are make.
I figure first I need to make a file and then run install.sh to install. But I don't know how to do this.
I need to enable SNMP on our Suse linux boxes, so that What's Up Gold can monitor them.
I need to add the community name, that I know, but where?
I have enabled SNMP monitoring in my debian box (using apt-get install snmp) and configured it to allow my PC to query the server.
I'm able to query the server and get SNMP data but when I get STG to give me a per/second graph of the interface octets, it only updates the data every 12 seconds or so.
Is this a setting in SNMP which could be causing this problem? If so, how can I enable it so that SNMP can give me up to the second octet rates.
2 machines (one of them working as a server to monitor the network with IP 192.168.100.110 and the other one to be monitored with IP address 192.168.100.1):
In the first machine:
snmpwalk -v1 localhost -c public sysName (working fine)
snmpwalk -v1 192.168.100.1 -c public sysName (don't works -> Timeout: No Response from 192.168.100.1)
In the monitored machine:
snmpwalk -v1 192.168.100.110 -c public sysName (it works)
snmpwalk -v1 localhost -c public sysName (dont works -> Timeout: No Response from localhost)
I'm trying to sniff snmp traps being sent to a NMS. I'm setting -s to 0 but when I start sniffing, some of the packets, instead of being decoded, show me messages like this:
Code:
[len1468<asnlen1663]
What is that supposed to mean?
I am facing issues on few machines but rest all are ok. They have the same config but I don't know what is wrong. I tried as much as I could but couldn't fix it. Here is the rpms installed on this client
[code]...
The same config is working for all clients but have problems with few machines. May be I am doing something wrong in config or testing at very basic level.
I have an issue when sending snmp traps. I have an embedded system connected to a SNMP manager. I am sending traps from the box to the manager continuosly. After sometime I don't see any trpas coming out.
I get this error message.
Cannot open file /proc/net/tcp ...
: Too many open files
Cannot open file /proc/net/snmp ...
: Too many open files
What could be the reason for such an error?
I have recently set up nagios on a ubuntu server (9.10), and set it up to monitor all the servers, switches etc, following the quickstart guide provided on the nagios website.My problem is this:I have setup the nagios-plugins, and tried to set it up to monitor the network switches via SNMP but receive the following within the nagios web interface:SNMP problem - No data received from host I tried it from the command line, and got the exact same error.Is there some further configuration I need to do to be able to get this data?I've used up all my google-fu, and read over everyone else's problems on every forum I could find, but to no avail.
View 6 Replies View Relatedsnmpwalk -v1 -c public localhost system
No log handling enabled - using stderr logging
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
SNMPv2-MIB::sysDescr.0 = STRING: Linux ipbrick 2.6.30.10-586-smp-64gb #2 SMP Mon Dec 28 14:44:55 GMT 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (17496443) 2 days, 0:36:04.43
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysName.0 = STRING: ipbrick
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01
End of MIB
Why are some errors in the beginning of the output? How can I remove them? The file HOST-RESOURCES-MIB.txt is in /usr/local/share/snmp/mibs.
I have created this thread as it sis realy hard for me to send traps from my Linux workstation... I m lost with v1/v2/v3 snmp... So here is the initial configuration: (without traps)
rocommunity myrocom
rwcommunity MyL33tP4ss 10.5.32.202
rwcommunity MyL33tP4ss 127.0.0.1
syslocation "FR"
syscontact root
From there i can "poll" my system. But what should i do if i want my Linux system sending traps when disks are full or system overloaded etc...I have found information on Internet but not easily understandable It is for v3:
rwuser admin
createUser admin MD5 mypasword
#
# From there i would have to comment the lines regarding the communities
#
[code]....
10.5.32.202 is my management host ... is this config ok ? But it seems that trap2sink is for v2 ? How does it work ?
I was following the installation guide of SNMP client and server [URL], but when I do an apt-get install snmp scli tkmib the /etc/snmp/snmpd.conf is empty with nothing inside..
View 7 Replies View RelatedI'm trying to get SNMP setup so I can send custom snmp trap messages. I followed this "How to" [URL] and I think I have it setup and working. This is my fist time messing around with SNMP, and I don't know where to check to see if I received the trap message. Do the snmp trap message even get logged any where?
View 1 Replies View RelatedI am trying to monitor a Centos 5.3 box using SNMP and I am having a lot of trouble getting the data that i need from it. Everytime I try to get information from the UCD-SNMP MIB it returns "End of MIB". It is my understanding that UCD-SNMP is a standard package when Net-SNMP is installed and should always be there. Then why can't I access it? I have tried removing the reinstalling Net-SNMP, but that hasn't worked. My server is update date on all it's patches as well. It is quite old hardware, but I don't believe that should affect SNMP from being gathered. Iptables is down, and I cant' even get it from the local machine.
View 1 Replies View RelatedWhen I run the following GET commad:
./snmpget -m ALL -M /data/net/naamab/snmp/snmp_mib/ -v 3 -a MD5 -l authPriv -u test1 -A welcome1 -x DES -X privpass 127.0.0.1 NOVELSAT-MODULATOR-MIB::nsModLineCMMode.0 -d
I get the error:
Encryption support not enabled.
snmpget: USM encryption error
I have defined a user (and user, view and access) that should work with encryption:
snmpd.conf:
createUser test1 MD5 welcome1 DES privpass
group debugGroup usm test1
view debugView included .1
access debugGroup "" usm priv exact debugView debugView none
General details:
I am using net-snmp on linux embedded
version 5.5
Configuration (part of it):
./configure --target=mips64-octeon-linux-gnu
--build=mips64-octeon-linux-gnu
--host=i686-pc-linux-gnu
message dump:
Sending 64 bytes to UDP: [127.0.0.1]:161->[0.0.0.0]
0000: 30 3E 02 01 03 30 11 02 04 1D 23 6A FA 02 03 00 0>...0....#j....
0016: FF E3 04 01 04 02 01 03 04 10 30 0E 04 00 02 01 ..........0.....
0032: 00 02 01 00 04 00 04 00 04 00 30 14 04 00 04 00 ..........0.....
0048: A0 0E 02 04 4C 08 7B B5 02 01 00 02 01 00 30 00 ....L.{.......0.
Received 118 bytes from UDP: [127.0.0.1]:161->[0.0.0.0]
0000: 30 74 02 01 03 30 11 02 04 1D 23 6A FA 02 03 00 0t...0....#j....
0016: FF E3 04 01 00 02 01 03 04 24 30 22 04 11 80 00 .........$0"....
0032: 1F 88 80 2D 53 AF 7D 00 00 00 00 00 00 00 08 02 ...-S.}.........
0048: 02 02 CF 02 03 01 11 C5 04 00 04 00 04 00 30 36 ..............06
0064: 04 11 80 00 1F 88 80 2D 53 AF 7D 00 00 00 00 00 .......-S.}.....
0080: 00 00 08 04 00 A8 1F 02 04 4C 08 7B B5 02 01 00 .........L.{....
0096: 02 01 00 30 11 30 0F 06 0A 2B 06 01 06 03 0F 01 ...0.0...+......
0112: 01 04 00 41 01 09 ...A..
Can't connect to master agent: netstat -an | grep master gives me unix 2 [ ACC ] STREAM LISTENING 451121 /var/agentx/masterand if I run snmpd -f -Le -Dagentx I get:
agentx_register_app_config_handler: registering .conf token for "agentxsocket"
agentx/subagent: init_subagent sess 08052880
agentx_register_app_config_handler: registering .conf token for "agentxsocket"
[code]....
how can I configure snmp to receive traps from diffé²¥nt machines??
View 1 Replies View RelatedI have a pair of special radio-devices which support SNMP, but the problem is, that if I snmpwalk those devices, I only see few generic values(sysContact, sysDescr, sysServices etc) and nothing else. Most likely I need MIB files so NMS could know what values can be asked from the radio devices? If yes, is there a possibility to get all the OID's device supports without MIB files as those devices have been out or production for years?
View 2 Replies View RelatedI have to fetch the information present in MIB of network agent.. i dont how to strat my program. pls text one sample program.
View 3 Replies View RelatedCan any one tell me a network monitoring tool which can monitor remote connectivity and generate a comprehensive report about the link state like up/down, error timings, increase in latency and packet loss rate.
View 3 Replies View Relatedi was trying mrtg, but when the light go off the graphics get distorted. Trying to adjust the conf files i get nothing than trying rrdtool but i keep having the same problems. So i was thinking to use php, i got working php snmp walk function but i am looking the way to get the bandwidth or usage of the device from snmp or any snmp function but still now i keep searching. Once done this stages i would be able to save the data into an array and the plot it into a graph and personalize the max and min values for avoiding distorted graphs.
View 4 Replies View RelatedI'm curious as to what defines the SNMP trap info sent by switches? I would like to get updates on 802.1x authentication and state of switches (all manufacturers if possible). Is the data sent via traps determined by the manufacturer or is it possible to modify/select it from the switch MIB?
View 3 Replies View Relatedhow can I configure snmp and snmptrap to receive a trap when the used disk (/home/linux) is 20%
View 1 Replies View RelatedI want to know how can I activate SNMP in solaris system??
View 5 Replies View Relatedhaow can I parametrize the time of answer of a snmp request?
View 3 Replies View RelatedI want to generate snmp trap when cpu usage is high..me how to configure snmpd.conf....to generate this trap...
View 2 Replies View Related