Hi,
I've implemented a trap similar in this way:
-in my mib_file.txt 
i've implemented a node trap in which objects are "notification type";
-
then i've created a source and header file from it throug mib2c (using 
mib2c.notify.conf);
-then i've modified source file (that has been a 
very hard operation for me!) including a comparison between values and 
the "snmp_alarm_register" operation that verify the condition every X 
seconds.
-then i've created a shared object and linked it to snmpd 
(including the instruction dlmod in snmpd.conf).
-then run snmptrapd.
conf -f -Le and from another prompt snmpd.

You will see notification 
now!

It's great but i had a problem!

QUESTION: In source file 
generated by mib2c you will need objects values! How can you do it?
ANSWER:    I've done it implementing 2 internal GET instruction. That 
because I don't know if there is a simple instruction that allow you to 
get value inside agent without implementing a get instruction!
I think 
it's the only way.

For any question, mail me!

Bye

----Messaggio 
originale----
Da: [EMAIL PROTECTED]
Data: 24-lug-2007 6.43 AM
A: 
<net-snmp-users@lists.sourceforge.net>
Ogg: neeed help in snmptrap conf 
file

 Hi ,
          can any one help me in creating snmptarp.conf 
file and I have my
own xx.mib file , in that mib file contains a 
variables v1 and v2 .Now i
have to gerate a snmptarp alrets when the 
varibles v1 and v2 values
incerases 100 (v1>100 i have to generate a 
snmptrap alret) How to Generate
snmptrap alrets .
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through 
log files to find problems?  Stop.
Now Search log events and 
configuration files using AJAX and a browser.
Download your FREE copy 
of Splunk now >>  http://get.splunk.
com/_______________________________________________
Net-snmp-users 
mailing list
Net-snmp-users@lists.sourceforge.net
Please see the 
following page to unsubscribe or change other options:
https://lists.
sourceforge.net/lists/listinfo/net-snmp-users




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to