hii, i am working on SNMP from开发者_StackOverflow社区 last few days,i have develope a small application(SNMP Agent) which
* Run on 161 port.
* Have a tree structured OID support.
* Respond to all Get,GetNext,Set Pdu Request types.
* Tested with some SNMP Managers(free available) by get and set the values of the OID's.
BUT,now question is when i tried it with Cacti it will not respond anything,but detect windows snmp service..it just respond to the requests of the SNMP Managers.
So,Is it mandatory to provide mib with SNMP Agent??.
No, MIBs aren't strictly required to be able to query a SNMP agent.
A MIB allows a SNMP client to interpret the information returned by the agent (i.e., by giving it a readable name rather than just the OID, correctly displaying data in the desired format, etc.). If you know the OID, a client should be able to query the agent without being provided a MIB.
@Divya mohan Singh, you would like Cacti to detect your agent then you should go after Cacti itself.
Once you know which OIDs are expected by Cacti, you can implement them in the agent and then everything should be ok.
If you have time you may implement as many SNMP objects within the agent as possible, but if Cacti only relies on a few of them, you may take the easy way to implement on the few it asks for.
Well, it may sound like that I am encouraging you to develop an SNMP agent that does not comply to the RFC words, but the truth is that many agents already break the rules, and yours will not be the last one. :)
精彩评论