Re: developing an application to return snmp information

This is a discussion on Re: developing an application to return snmp information within the SNMP Coders forums, part of the Networking and Network Related category; 2008/4/30 ntwrkd <ntwrkd@gmail.com>: > I can create my own MIB, but how does the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-30-2008
Dave Shield
 
Posts: n/a
Default Re: developing an application to return snmp information

2008/4/30 ntwrkd <ntwrkd@gmail.com>:
> I can create my own MIB, but how does the mib know how to retrieve the
> information from the application??


You write the code to do this.

> Would I have to write my own snmp agent?


Not the complete agent, no.
But you would need to write the MIB module code
to plug into the main SNMP agent.

Please see the FAQ entries about extending the agent,


> Lets say I want to get snmp to return data for a custom application I
> have written on linux.
> How would I go about starting out to get snmp to retrieve information
> from this application?


The simplest way would probably be to use the "extend" mechanism
to run a suitable command, which would report the information you
are interested in.
That would allow you to retrieve this information, without having
to define and implement a MIB.

See 'snmpd.conf(5)' for details.


> What about retrieving data that isn't in the ucd-snmp mib from a linux host.


What about it?
It's perfectly possible, by extending the agent (as outlined above,
and in the FAQ).

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0