I am developing a C# (targeting full framework 4) windows app. I need that app to write to a few simple counters and more importantly raise (or should that be fire) a few SNMP traps when significant app events occur.
Now most .NET SNMP libraries avalable can do this, so far so good. However I have one significant further requirement; my MIB must add to the PC's own MIB, it must not replace all the good SNMP things that come "out of the bag" with your Windows PC.
This last one seems to be the big deal. All my investigations to date indicate any .NET SNMP solutions out there seem to replace the Windows MIB and the SNMP service(s); they replace the Windows MIB to expose yours. I need to add mine to Windows.
The solution must add its own MIB to the Windows deployment PC, which from what I can tell, means it must (at least in part) provide an unmanaged SNMP extension DLL to extend the standard windows SNMP service.
- Can anyone recommend an approach which extends the standard Winsows SNMP service with extension agents for your own MIB that is a good fit with managed code?
- If I have to do some native Win32 C/C++/Delphi work for the extension agent can anyone recommend an aproach that minimises the amount of unmanged code required?