Hello everybody,

I have a mib something like,

diskFull TRAP-TYPE
ENTERPRISE comtek
VARIABLES { sysDescr, diskModuleName,
diskSystemName, diskPartitionUsed }
-- STATUS mandatory for all Comtek VOS Agents
DESCRIPTION
"Disk system usage has reached or exceeded critical threshold.
The configuation file variable DiskUse defines the critical
threshold for disk usage. The configuation file variable
DiskAlarm defines how frequently these traps are repeated."
::= 2

now i have to generate the trap when the disk crosses the threshold limit.(which i will be notified.)

I have compiled this mib using mib2c.scalar.conf and then i am getting some ODI's for all the variables as well as for trap.

So if to generater the trap what should i do ?
should i call send_enterprise_trap_vars() or send_easy_trap () or send_trap_vars ??

if the OID's generated are

static oid diskModuleName_oid[] = { 1, 3, 6, 1, 4, 1, 2, 13, 1, 6, 7, 2 }; static oid diskSystemName_oid[] = { 1, 3, 6, 1, 4, 1, 2, 13, 1, 6, 7, 3 }; static oid diskPartitionUsed_oid[] = { 1, 3, 6, 1, 4, 1, 2, 13, 1, 6, 7, 4 };

static oid      diskFull_oid[] =
       { 1, 3, 6, 1, 4, 1, 2, 13, 1, 6, 7, 0, 2 };

then if i am calling send_enterprise_trap_vars() then what values parameters should i pass ?
What I am doing is correct?

Please someone help me as soon as possible

Regards
Chinmay

_________________________________________________________________
Get yourself a brand new Mobile. http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-378?ck=BuyNewMobile Find,Compare & BUY IT NOW on eBay.in!



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to