Re: snmpd as Master and sub-agent

This is a discussion on Re: snmpd as Master and sub-agent within the SNMP Coders forums, part of the Networking and Network Related category; >>>>> On Mon, 6 Mar 2006 17:37:11 -0600, "David Hill" <dhill@...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2006
Wes Hardaker
 
Posts: n/a
Default Re: snmpd as Master and sub-agent

>>>>> On Mon, 6 Mar 2006 17:37:11 -0600, "David Hill" <dhill@calpont.com> said:

David> 1. Can I launch 1 snmpd as the "master agent" (snmpd.conf
David> as master agent) and another snmpd as a sub-agent ( with -X
David> argument) and reading snmpdx.conf directly with the PROC, LOAD,
David> DISK, FILE turned on and have this all work without any extra
David> coding?

Yes. The configuration may be a bit complex, but it won't require any
code. You'll need to make use of the -I switch as well though to turn
on some modules in the subagent, and to turn off modules in the master.

David> 2. Can you use snmpd to do both this functions and is there a good
David> writeup somewhere on how to do it, in case I'm missing something in my
David> configuration and snmpd startups?

There isn't a great set of documentation on how to do it. The
important part is you need to:

1) configure the master agent to *not* do one of the mib modules. Run
snmpd with -f -Le -Dmib_init and watch the output. That lists a
bunch of tokens that you need to decide which you want to run in
the sub agent and which in the master. Pick an example, say "proc"
which is for process monitoring. Run the master agent with "-I
-proc" and the subagent with "-I proc".

2) separate the configuration of the two. Run the master agent as
normal, but have the sub-agent read from a different set of
directories for configuration (use the SNMPCONFPATH env variable to
control that).

David> 3 Seems that snmpd can be used as a AgentX sub-agent, but it's
David> has very limitted functionality as is.

Nope, it should work just fine as a sub-agent.


Now.... you also said "disman" at one point. The disman/event-mib
monitoring *must* run in the master agent if you want it to be able to
monitor the sub-agents. It will not work at all in the subagent.

--
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
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 09:39 AM.


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