snmp

zabbix支持的主要监控方式

冷暖自知 提交于 2019-12-02 21:29:55
一、zabbix支持的主要监控方式: zabbix主要Agent,Trapper,SNMP,JMX,IPMI这几种监控方式,本文章主要通过监控理论和实际操作测试等方式来简单介绍这几种方式的监控原理和优缺点等 。下面对几种监控方式的监控原理进行介绍: 1、Agent监控方式 在Agent监控方式下,zabbix-agent会主动收集本机的监控信息并通过TCP协议与zabbix-server传递信息。Agent监控方式分为主动和被动模式。在被动模式下,zabbix-agent监听10050端口,等待zabbix-server的监控信息收集信息请求;在主动模式下,zabbix-agent收集监控信息并通过10050端口主动将数据传给zabbix-server所在服务器的10051端口。 优点: (1)是zabbix最常用的监控方式,监测指标深入细致有针对性。 (2)内置监控功能强大,内置监控项目丰富。 (3)TCP方式实现通讯,可靠性也有保证。 缺点: (1)需要在被监控机器上安装zabbix-agent客户端,部署相对麻烦,最初需要逐个机器安装代理软件 (2)zabbix-agent客户端运行在被监控机上,会收集本机信息 2、Trapper监控方式 Trapper监控方式使用zabbix-sender程序主动向zabbix-server发送数据

How can I access ink levels of printers programmatically?

大憨熊 提交于 2019-12-02 19:51:32
Okay, this is a Windows specific question. I need to be able to access the ink levels of a printer connected to a computer. Possibly direct connection, or a network connection. I recognize that it will likely be different for each printer (or printer company at least) but where can I find the information of how they reveal ink levels to a PC. Also, what is the best language to read this information in? Okay, this is a OS agnostic answer... :-) If the printer isn't a very cheapo model, it will have built-in support for SNMP (Simple Network Management Protocol). SNMP queries can return current

zabbix监控网络设备显示snmp checks not compiled in

爷,独闯天下 提交于 2019-12-02 11:12:55
zabbix监控网络设备显示snmp checks not compiled in 问题表现 zabbix使用snmp方式监控网络设备,将设备关联到对应的代理服务器,在下一个采集间隔,发现snmp状态呈现红色,即snmp无法正常获取到设备信息,选中snmp按钮,查看详细报错原因:snmp checks not compiled in 排查原因 snmp checks not compiled in即接收设备信息的代理上的snmp可能是未编译的或者编译过未成功。登上代理服务器,查看历史编译命令,发现是: ./configure --prefix=/app/zabbix --enable-proxy --enable-agent --with-mysql --with- netsnmp --with-libcurl --with-libxml2 --enable-java 而正确的命令是: ./configure --prefix=/app/zabbix --enable-proxy --enable-agent --with-mysql --with- net-snmp --with-libcurl --with-libxml2 --enable-java 重新编译后进入/tmp下的zabbix_proxy.log查看或者tail,如果没有更新的报错的话就可以重启proxy进程:

remote devices supervision

喜欢而已 提交于 2019-12-02 11:04:41
问题 This is a more comprehensive post than my last one. I want to monitor devices using python so: i've a remote agent which, with sensors, will get device datas such as disks usage, processes etc. a server get datas from remote agents and store them into DBs a website allows you to see these data What i already have: psutil to get device informations MySQL + NoSQL to store devices datas django as website to see stored data What i need: how to communicatite between remote agents and server. I've

How to get the name of the Oid (#Snmp)?

人盡茶涼 提交于 2019-12-02 10:59:34
Ok, following the advice of Lex Li and I try to get Oid name using an other lib : #SnmpLib Here the sample : public static void Main(string[] args) { string oid = ".1.3.6.1.4.1"; IObjectRegistry registry = new ReloadableObjectRegistry(@"C:\Users\Fnizz\Desktop\MIBS_BARCO\"); IObjectTree tree = registry.Tree; var o = tree.Search(ObjectIdentifier.Convert(oid)); string textual = o.AlternativeText; Console.WriteLine(textual); if (o.GetRemaining().Count == 0) { Console.WriteLine(o.Definition.Type.ToString()); } Console.ReadKey(); } But instead of to get the value .iso.org.dod.internet.private

Implementing SNMP SendTrap using Indy components

你说的曾经没有我的故事 提交于 2019-12-02 09:31:31
I need to report errors from my application on C++Builder via SNMP. I started implementing SNMP SendTrap using Indy components. void __fastcall TMainForm::btSendTrapClick(TObject *Sender) { UnicodeString myEnterprise = "1.5.5.5.5.5.5.5"; UnicodeString eventType = "1.5.5.5.5.5.5.5.1"; UnicodeString eventDistance = "1.5.5.5.5.5.5.5.2"; TIdSNMP * idSnmp = 0; TSNMPInfo * infoSnmp = 0; idSnmp = new TIdSNMP(NULL); infoSnmp = new TSNMPInfo(idSnmp); idSnmp->Host = edHost->Text; idSnmp->Community = "public"; infoSnmp->Host = edHost->Text; infoSnmp->Community = "public"; infoSnmp->Enterprise =

java.net.BindException: Cannot assign requested address

☆樱花仙子☆ 提交于 2019-12-02 07:53:16
问题 I want to use low port in my application (SNMP Trap Receiver on Spring web + Tomcat7). As I told in this thread Binding Low Port to Java Program on Ubuntu Server, before, I got error Permission denied. Then I change tomcat7 user group be root. But after that, I got java.net.BindException: Cannot assign requested address error. For every port that I try (low or high port), I always got this error. I check if the port has used, I see that the port still free. I check my /etc/host content, it is

java.net.BindException: Cannot assign requested address

放肆的年华 提交于 2019-12-02 04:35:18
I want to use low port in my application (SNMP Trap Receiver on Spring web + Tomcat7). As I told in this thread Binding Low Port to Java Program on Ubuntu Server , before, I got error Permission denied. Then I change tomcat7 user group be root. But after that, I got java.net.BindException: Cannot assign requested address error. For every port that I try (low or high port), I always got this error. I check if the port has used, I see that the port still free. I check my /etc/host content, it is like this: 127.0.0.1 localhost 127.0.1.1 test-server # The following lines are desirable for IPv6

remote devices supervision

浪子不回头ぞ 提交于 2019-12-02 04:16:14
This is a more comprehensive post than my last one . I want to monitor devices using python so: i've a remote agent which, with sensors, will get device datas such as disks usage, processes etc. a server get datas from remote agents and store them into DBs a website allows you to see these data What i already have: psutil to get device informations MySQL + NoSQL to store devices datas django as website to see stored data What i need: how to communicatite between remote agents and server. I've already read doc about, zmq, twisted, rpc-json, tornado but i don't know which is the best regarding