snmp

Binding Low Port to Java Program on Ubuntu Server

ⅰ亾dé卋堺 提交于 2019-12-11 10:03:51
问题 I have a mini listener/daemon to catch SNMP trap. This will listener executed while running the main project (spring web) on tomcat7. But I always got error java.net.BindException: Permission denied I have try to use authbind (http://java-notes.com/), but my problem not solved. I also had tried to change the port to greater one, but I got error java.net.BindException: Cannot assign requested address This is my application/trap-receiver code: @Component public class TrapReceiver extends Thread

Send SNMP trap with powershell script

余生颓废 提交于 2019-12-11 09:34:26
问题 I'm trying to send SNMP traps with a powershell script (it has to be a powershell script, it will be running on a windows server). I have a test enviroment running that has a trap reciever. I've been following this tutorial http://www.activexperts.com/network-component/howto/snmpts/powershell10/ but I haven't gotten it to work. Below is my code, the script is running fine $objSnmpTrapManager = new-object -comobject AxNetwork.DnsServer #create object # Create a SnmpTrapOut instance

question about SNMP MIB file

末鹿安然 提交于 2019-12-11 07:34:55
问题 i wanna know how can i create a new customize MIB file ? i wanna create a MIB file and use it in LINUX that with this mib i wanna monitor an application please help me thanks 回答1: MIB files are created in a simple text editor (following the rules for SMIv2). Then you'll need to turn it into code, modify the code to suit your data, compile it into an agent and run the agent. Then you can use a management application to request the data from the agent. Net-SNMP is the most popular linux stack

Is there a limit how many character can be send over udp/snmp?

拈花ヽ惹草 提交于 2019-12-11 06:12:54
问题 I'm trying to send a string from server to client via UDP/SNMP. However, if I copy a string with length 86 to pdu packet->value_value everything works fine, I get the string on client side. If I add just one char more to the string, length is now 87 , the packet can not deliver to the client. The packet size raise correctly. Is there a limit how many char can be send? My packet is smaller than 1500. This code snippet shows how I copy the string to packet->value_value value_value = "asd asd

SNMP pass-through command not returning with snmpget

旧街凉风 提交于 2019-12-11 05:39:23
问题 I am trying to get some scripts working in my snmpd.conf file using pass, however calling snmpget on the OID is returning No Such Instance currently exists at this OID in the snmpd.conf I have pass .1.3.6.1.4.1.13732.100.2.1 /bin/sh /usr/share/snmp/local/terminal and when I call snmpget -c public -v2c 127.0.0.1 .1.3.6.1.4.1.13732.100.2.1.1 I get the no such instance error. Why does the snmpget not seem to find the pass in the conf file and use the script? It is able to find the OID in the MIB

zabbix监控docker容器

回眸只為那壹抹淺笑 提交于 2019-12-11 05:36:40
###安装agent rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm yum -y install zabbix-agent ###修改zabbix-agent配置文件 Server=192.168.0.2 (zabbix服务器的ip) ServerActive=192.168.0.2 (zabbix服务器的ip) Hostname=wuliji zabbix_agentd 配置 vim /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf UserParameter=docker.discovery,/root/zabbix_docker/docker.py UserParameter=docker.[*],/root/zabbix_docker/docker.py $1 $2 ###查看防火墙状态 如果开启请关闭 systemctl stop firewalld ###脚本 #!/usr/bin/python import sys import os import json def discover(): d = {} d['data'] = [] with os.popen(

Error - (noSuchName) There is no such variable name in this MIB - netSnmp?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:24:28
问题 I have made a private MIB - RASP-MIB. Here is the mib RASP-MIB DEFINITIONS ::= BEGIN IMPORTS OBJECT-TYPE, MODULE-IDENTITY,enterprises FROM SNMPv2-SMI TEXTUAL-CONVENTION FROM SNMPv2-TC; rasp MODULE-IDENTITY LAST-UPDATED "201804210000Z" -- 21 April 2018, midnight ORGANIZATION "net-snmp" CONTACT-INFO "postal: ABC HELLO CHECK 512310 email: net-snmp-coders@lists.sourceforge.net" DESCRIPTION "A simple mib for Raspberry PI information gathering." ::={enterprises 9100} RowStatus ::= TEXTUAL

build-pysnmp-mib: convert cisco mib files to a python fails on Ubuntu 14.04

拈花ヽ惹草 提交于 2019-12-11 01:18:28
问题 I'm trying to convert some .my files from the cisco site to .py files to use with pysnmp application but each one is failing. ftp://ftp.cisco.com/pub/mibs/supportlists/wlc/wlc-supportlist.html I have already set my SMIPATH to the current directory with all my mibs. But i'm receiving the same error on each of the cisco mibs. root@testbox:/home/johnny# build-pysnmp-mib -o CISCO-CDP-MIB.py CISCO-CDP-MIB.my Segmentation fault (core dumped) Empty input smidump -k -f python CISCO-CDP-MIB.my | /usr

php warning redirect

僤鯓⒐⒋嵵緔 提交于 2019-12-10 23:57:08
问题 I use snmp2_real_walk function. $tmp = snmp2_real_walk($ip, '***'.$vlan, $title, 100000,10); When oid is correct and the device is working i get the desired output. But i want to handle warnings: Invalid object identifier... or No response from 192.168.19.249... or whatever. My problem is: how can i either redirect those warnings into my variable? or is there some another function which shows these warnings? Thanks! 回答1: You could also have a look at set_error_handler to set your own error

SNMPv3 endOfMibView

断了今生、忘了曾经 提交于 2019-12-10 15:59:10
问题 endOfMibView is an SNMPexception, right? if endOfMibView occurs in SNMPv3, what will be the value of the error-status parameter in the PDU? Is there any RFC regarding this matter? In SNMPv1, "noSuchName" is set to the error-status. Thanks for answering! 回答1: Actually, no... endOfMibView is an exception added to the varbind value itself when it's hit. This is done so that an endOfMibView can occur along side a real variable as well. In the SNMPv2 PDU structure, documented in RFC3416, you'll