host name is not available, check the remote Linux Firewall [[email protected] ~]. # Snmpwalk-V 2C-C public localhost 1.3.6.1.4.1.2021.11.11.0ucd-SNMP-MIB: sscpuidle.0 = no more variables left in this MIB view (it is past the end of the MIB Tree) # The above indicates that the CPU idle status cannot be obtained (Note: 1.3.6.1.4.1.2021.11.11.0 is the
#!/usr/bin/Envpython#-*-coding=utf-8-*-#Using GPL v2.7#Author: [email protected]126. Com#python Monitor network card traffic"""1, the realization principle: obtains the system information through the SNMP protocol, then carries on the corresponding computation and the format, the final output result2, special note: SNMP is required on the monitored machine.Yum Install-Y net-snmp*installation"""#!/usr/bin/pythonimport reimport os#get SNMP-MIB2 of the Devicesdef Getallitems (host,
sfzhang Ro // read permissionRouter (config) # SNMP-server community sfzhang RW // write permission
3) MIB (Management Information Base): Management Information Base. MiB is a collection of managed objects. It defines a series of attributes of the managed object: Object Name, object access permission, and object data type.
4) oId (objectidentifier): object ident
. Different machines may be stored in/etc/snmp,/usr/local/share/snmp/, and experiment with each other based on different situations)
Add the following line:
Set access permissions for all users: executable, record, and pass:
authcommunityexecute,log,netpublic
Set traphandle (that is, when you receive the OID information of. 1.3.6.1.4.1.2021.251.1, run test. pl)
traphandle.1.3.6.1.4.1.2021.251.1/home/long/test.pl
Here. 1.3.6.1.4.1.2021.25
SNMP
# snmpwalk -v 2c -c public .Yum Install SNMP[root@localhost ~]# yum install net-snmp* -ySNMP Configuration[[Email protected] ~]# vim/etc/snmp/snmpd.confView SystemView included.1.3.6.1.2.1. -.1.1Find this line and add the following configurationView SystemView included.1This is a new addition.procMOUNTD//Find these configurations and remove the annotationsprocNtalkd4procSendMailTen 1Disk/10000Load A - -Start SNMPD[root@localhost ~]# service snmpd startGetting data through SNMPNeed t
running status, features, and System Configurations of local devices. The management agent software is like an information broker of each managed device, which completes the collection information task assigned by the network administrator. The management agent software acts as an intermediary between the management system and the management agent software resident device, and manages the device by controlling the information in the Management Information Database (
/, and experiment with each other based on different situations)
Add the following line:
Set access permissions for all users: executable, record, and pass:
Authcommunity execute, log, net public
Set traphandle (that is, when you receive the OID information of. 1.3.6.1.4.1.2021.251.1, run test. pl)
Traphandle. 1.3.6.1.4.1.2021.251.1/home/long/test. pl
Here. 1.3.6.1.4.1.2021.251.1 is an Enterprise-OID
/Home/
#!/usr/bin/env python#-*-coding=utf-8-*-#Using GPL v2.7#Author: [email protected]#python monitoring Memory (swap) Utilization" "1, the realization principle: obtains the system information through the SNMP protocol, then carries on the corresponding computation and the format, the final output result 2, the special attention: the monitoring machine needs to support SNMP. Yum install-y net-snmp* Installation" "#!/usr/bin/pythonImportOSdefGetallitems (Host, OI
#!/usr/bin/env python#-*-coding=utf-8-*-#Using GPL v3.3#Author: [email protected]#python monitoring Disk"""1, the realization principle: obtains the system information through the SNMP protocol, then carries on the corresponding computation and the format, the final output result 2, the special attention: the monitoring machine needs to support SNMP. Yum install-y net-snmp* Installation"""#!/usr/bin/pythonImportReImportOSdefGetallitems (host,oid): SN1
-blocking mode provided by snmpsharpnet. But today I read the previous stress test report again and found that there were still many problems in my tests, first, there is no field test. Only two devices can be used to simulate the test of hundreds of devices. More packets are received probably because the MIB library reading speed of the device is slow or because of other reasons. In the future, I will perform this test if conditions are met, and then
can program, write a program to hit the command to collect the chant.If you are a leader, find an engineer who can write code and write a program to do the command collection.V: the Inhuman OID valueAsk you a question, do you know what this is?.1.3.6.1.2.1.2.1.8Answer: The SNMP OID value.Ask again?What OID value?If you say: This refers to the interface state of
NMS to NE, all SNMP commands only change (set) or check (get) variables. In another direction, from NE to NMS, a small number of unrequested messages (traps) are used to indicate asynchronous events. SNMP avoids complex information exchange, and RFC1157 stipulates that it uses UDP transmission protocol for transmission.
Netsnmp is one of the most widely used SNMP software on the network host. It can be downloaded from many image sites on www.Sunfreeware.com. As NMA software, it can be through t
hdOutBlocks
Add the above content to the configuration file, save and exit.
Restart the snmpd service
Server snmpd restart
3. Test on cacti monitoring host
[Root @ backup ~] # Snmpwalk-v 2c-c public 192.168.5.44. 1.3.6.1.4.1.2021.58
UCD-SNMP-MIB: ucdavis.58.1.1 = INTEGER: 1
UCD-SNMP-MIB: ucdavis.58.2.1 = STRING: "hdOutBlocks"
UCD-SNMP-MIB: ucdavis.58.3.1 = STR
/bin/snmpdiskio hdNum
Exec. 1.3.6.1.4.1.2021.55 hdIndex/usr/local/bin/snmpdiskio hdIndex
Exec. 1.3.6.1.4.1.2021.56 hdDescr/usr/local/bin/snmpdiskio hdDescr
Exec. 1.3.6.1.4.1.2021.57 hdInBlocks/usr/local/bin/snmpdiskio hdInBlocks
Exec. 1.3.6.1.4.1.2021.58 hdOutBlocks/usr/local/bin/snmpdiskio hdOutBlocks
Add the above content to the configuration file, save and exit.
Restart the snmpd service
Server snmpd restart
3. test on cacti monitoring host
[Root @ backup ~] # Snmpwalk-v 2c-c public 192.168
SNMP protocol Overview
SNMP (Simple Network Management Protocol) is a Simple Network Management Protocol, which provides a framework for the network management system to manage the underlying network. The SNMP protocol is widely used in many types of network devices, software, and systems, mainly because it has the following features:
First, SNMP is easy to implement compared with other types of network management systems or management protocols. SNMP management protocols,
structure of the specific data)SNMP from getting started to developing: Advanced articleUse C # to develop some examples of snmpsharpnet-based SNMP development applications that utilize snmpsharpnet in real-world projects.After the SNMP function is added and the SNMP service is turned on, the information cannot be obtained using the example above. You can try to choose to accept SNMP packets from any host in the security properties of the SNMP service. and Restart the service, you should be ab
Zabbix SNMP interface template, found that the Zabbix sampling time is 1 minutes, in our due to large flow, quickly cleared, and sometimes counted 0 after the new value, more than the last count, Zabbix thought not clear 0, The direct subtraction is divided by the time interval, resulting in "the illusion of a steep drop in network traffic".After finding the reason, the rest is good, and what we need is to use the OID data of counter64.Export Templat
Statistics
ARP (MAC-IP) Information table
View device IP Layer Traffic information
Port forwarding
Routing information
Device information on the switch port
Device Disk Memory information
6.SNMP Trap Reception and displayThe tool comes with an SNMP trap service that can accept SNMP trap information and automatically displays the details of the trap on the interface.7.SNMP MiB BrowserThe tool comes with
: In the Windows2000 environment, click "Start-> Run", type Snmputilg in the edit box and then enter or click "OK".
2. Unlike previously encountered, Snmputilg.exe is a graphical interface tool, although the execution of the program can use the Command Line Control window to open it, but the actual launch after the success of the interface is still graphics, open the interface as shown:
3. When the tool is started, the node edit box displays the default loopback address, and the address valu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.