lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

how to find CPU/Mem/NetWorkCard/DiskSpace OID #526

Closed lextudio-support closed 2 hours ago

lextudio-support commented 2 hours ago

SNMP is very Good, I'm very like her, my question:

1、CPU/Mem/NetWorkCard/DiskSpace OID for win2003
2、CPU/Mem/NetWorkCard/DiskSpace OID for linux;

Thanks!!
CPU,内存,存储空间,进程数量,网卡负载 for win2003 or in Linux

Original Reported Date: 2008-10-21T23:01:13.55-07:00 Original CodePlex Discussion Thread ID: 38234

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

首先说中文吧:)仅靠#SNMP不能完成你需要的工作。在Windows的情况下,你需要安装SNMP相关的Windows组件,就像安装IIS等部件一样。然后你再阅读(或者用MIB Browser分析)通过安装而出现在Windows\System32下的*.mib文件查看哪些对象对应于你列出的几个项目。最后,就是写一个监控软件,每隔一定时间读取这些对象的数值就好了,这个时候你可以采用#SNMP来进行SNMP通信,也可以采用其他的SNMP函数库。Linux的情况就复杂很多,要看你安装的SNMP Agent部件是什么,如果是Net-SNMP的话,需要查看Net- SNMP相关的文档。其他的Agent应该也带有相关的文档。由于我从来没做过Windows或者Linux的类似监控软件,所以只能给你上面这些建议了。

Now let me translate those words into English so other readers can see what we discussed. The requirements hjbemail posted cannot be done solely by #SNMP. For Windows 2003, you need to install SNMP components/features like you install IIS. Then you need to read or analyze the *.mib files installed under Windows\System32 folder to know which managed objects in them can be used. Finally you can write an application to monitor the values of those objects.

SNMP or other SNMP libraries can be used to develop such applications. The

case is slightly different because you must choose an SNMP agent at first (such as Net-SNMP), and then follow its own instructions. Because I never made such applications before, I can only provide some guidelines here.

-Lex

Original Posted Date: 2008-10-22T05:41:55.11-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Thank you very much!

The problem is resolved

Original Posted Date: 2008-10-22T23:30:18.993-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Hi all, due to some unknown issue (probably because of Chinese encoding), last post here by hjbemail is corrupt. I just sent him a mail to ask if he can post again here in English.

-Lex

Original Posted Date: 2008-10-23T05:09:50.4-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Thanks,the problem is resolved. There is a new question ,how to get the disk IO infomation ?

Original Posted Date: 2008-10-27T22:35:39.533-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

:) I am not the right person to answer this question because I don't have a Server 2003 box. You can read the *.mib files under system32 to see if there are objects for disk IO. If there are no items, I guess then Windows SNMP agent does not support disk IO objects and you may try another agent.

-Lex

Original Posted Date: 2008-10-31T06:51:27.453-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Thank you very much !


[????] ??????????????-????????

Original Posted Date: 2008-11-02T20:47:04.81-08:00

lextudio-support commented 2 hours ago

Marked as Answer Date: 2013-10-06T21:29:19.55-07:00