hi,all
I want to call a C program to handle supposed traps, and also know it should be configured in snmptrapd.conf as follow:
traphandle OID program args
but how to define the args passed to C program? Is there any examples avaliable?
environment: Net-snmp version: win32 binary release of
hello,everyone
I install win32 binary release of Net-SNMP 5.2.1, and start it from command line as follow:
net start "Net-SNMP Agent"
And, "NET START" command also displays Net-SNMP Agent is started.
But when issuing any snmpget, "Timeout:No Response from localhost" is returned.
What sho
hello,everyone
Traps ,using IP address of NMS in snmptrap command directly, are received very slowly, so I suspect it's related with DNS.
Aftering adding the followig lines to DNS, traps, sent from localhost and wxqu, which using IP address of NMS, reach NMS immediately !
172.26.4.44 localhos
good morning,everyone:
I replaced "localhost" with the IP address of the NMS(172.26.4.44), and it works. But snmptrapd received it very slowly,after about 20 seconds!
The snmptrapd.conf, under /usr/local/etc/snmp, includes the following statement: traphandle 1.3.6.1.4.1.705 /usr/wxqu/mypr
hi,all
I replaced "localhost" with the IP address of the NMS(172.26.4.44), and it works. But snmptrapd received it very slowly,after about 20 seconds! :-(
The snmptrapd.conf, under /usr/local/etc/snmp, includes the following statement: traphandle 1.3.6.1.4.1.705 /usr/wxqu/mypro/ups-trap-handle.
i replace "localhost" with the IP address of the NMS(172.26.4.12) in snmptrapd, and it works very well.
Thanks for Thomas and Dave.
---------wanxia qu wrote:> But how can i send this trap to d
hi,all
i have generated a snmpd.conf , using snmpconf script, and moved it to /usr/local/share/snmp and /usr/local/etc/snmp.
In this configure file, there are three lines:
trapsink 172.26.4.12trap2sink 172.26.4.12informsink 172.26.4.12
But when i issue the following trap, it was received