On Thu, Nov 27, 2008 at 5:48 PM, <
[EMAIL PROTECTED]> wrote:
> Send Net-snmp-users mailing list submissions to
> net-snmp-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Net-snmp-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Any way to specify the IP Address that all responses
> should go out with (arijit)
> 2. RE: Help connecting to agent (Mike Ayers)
> 3. RE: Help connecting to agent (Arazo Camprecios, Marc)
> 4. Distinguishing monitored procs via cmdline args? (Larry Schrof)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Nov 2008 07:37:23 -0800 (PST)
> From: arijit <[EMAIL PROTECTED]>
> Subject: Re: Any way to specify the IP Address that all responses
> should go out with
> To: net-snmp net-snmp <net-snmp-users@lists.sourceforge.net>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
>
> Some digging around got me here:
>
> o I am using udp as transport and use agentx for master-slave subagent on
> Unix domain socket /root/.snmp/agentx master (no dig for them)
> o snmpUDPDomain.c in snmplib contains function netsnmp_udp_transport -
> which creates the transport socket for response!
> o Based on if local is true (server) or not (client), bind happens to given
> IP address or to the client address (to send from).
>
>
> Now the quo - about the second bullet point! Will the case of a response to
> a snmpwalk (which is from a snmp manager - elsewhere) be treated as client
> case (local == false) and the case of agentx communication be treated as
> local == true?
>
> If yes, will the specification of address against agentaddress in
> snmpd.conf serve any purpose? I tried it - and landed up with master-slave
> agentx communication broken - as I think, it causes the master agent to stop
> listening on the Unix socket! So, should I specify a comma separated list of
> the Unix socket and the IP address I want the responses to be bound to?
>
> Thanks a ton for all help!
>
> -Arijit
>
>
> ----- Original Message ----
> From: arijit <[EMAIL PROTECTED]>
> To: net-snmp net-snmp <net-snmp-users@lists.sourceforge.net>
> Sent: Wednesday, November 26, 2008 4:47:48 PM
> Subject: Any way to specify the IP Address that all responses should go out
> with
>
> Hi,
> Is there any way to specify an interface (or IP address) that all
> responses from the agent should go out with?
> Regards,
> -Arijit
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 26 Nov 2008 10:10:48 -0800
> From: "Mike Ayers" <[EMAIL PROTECTED]>
> Subject: RE: Help connecting to agent
> To: Ra?l Mellado <[EMAIL PROTECTED]>,
> <net-snmp-users@lists.sourceforge.net>
> Message-ID:
> <
> [EMAIL PROTECTED]>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> > From: Ra?l Mellado [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 26, 2008 2:30 AM
>
> > thanks for your quick answer. This is my snmpd.conf
> > (placed in /usr/local/share/snmp/):
> >
> > ##############################################################
> > #############
> > #
> > # snmpd.conf
> > #
> > # - created by the snmpconf configuration program
> > #
> > ##############################################################
> > #############
> > # SECTION: System Information Setup
> > #
> > # This section defines some of the information reported in
> > # the "system" mib group in the mibII tree.
> >
> > # syslocation: The [typically physical] location of the system.
> > # Note that setting this value here means that when trying to
> > # perform an snmp SET operation to the sysLocation.0
> > variable will make
> > # the agent return the "notWritable" error code. IE, including
> > # this token in the snmpd.conf file will disable write access to
> > # the variable.
> > # arguments: location_string
> >
> > syslocation "Test location string"
> >
> > # syscontact: The contact information for the administrator
> > # Note that setting this value here means that when trying to
> > # perform an snmp SET operation to the sysContact.0
> > variable will make
> > # the agent return the "notWritable" error code. IE, including
> > # this token in the snmpd.conf file will disable write access to
> > # the variable.
> > # arguments: contact_string
> >
> > syscontact "Test contact info"
> >
> > # sysservices: The proper value for the sysServices object.
> > # arguments: sysservices_number
> >
> > sysservices 0
> > ##############################################################
> > #############
>
> There is no access control in here, so no command will ever be
> answered.
>
> > And these are the failing commands (all of them get
> > Timeout: No Response from localhost)
> >
> > snmpget -v1 -c public localhost system.sysLocation.0
> > snmpwalk -v1 localhost -c public system
> >
> > (I've tried with -v1 and -v2c, and the result is the same).
> >
> > Any advice about what to try next? Thank you so much for your help!
>
> This is the expected response to an unauthorized community. Please
> add to your snmpd.conf:
>
> rwcommunity public
>
> This will help you get started.
>
>
> HTH,
>
> Mike
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 27 Nov 2008 08:31:48 +0100
> From: "Arazo Camprecios, Marc" <[EMAIL PROTECTED]>
> Subject: RE: Help connecting to agent
> To: "Mike Ayers" <[EMAIL PROTECTED]>, Ra?l Mellado
> <[EMAIL PROTECTED]>, <
> net-snmp-users@lists.sourceforge.net>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Try something like this:
>
>
> ############################################################################
> # General configuration
>
> ############################################################################
>
> # Map the community name into a security name
> #
> # sec.name source community
> com2sec local 127.0.0.1/32 localcom
> com2sec network 192.168.0.0/24 netcom
>
> # Map the security names into group names:
> #
> # sec.model sec.name
> group MyRWGroup v1 local
> group MyRWGroup v2c local
> group MyRWGroup usm local
> group MyROGroup v1 network
> group MyROGroup v2c network
> group MyROGroup usm network
>
> # Create a view for us to let the groups have rights to:
> #
> # incl/excl subtree mask
> view all included .1 80
>
> # Grant the 2 groups access to the 1 view with different permissions:
> #
> # context sec.model sec.level match
> read write notif
> access MyROGroup "" any noauth
> exact all none none
> access MyRWGroup "" any noauth
> exact all all none
>
> Regards,
> Marc
>
> -----Mensaje original-----
> De: Mike Ayers [mailto:[EMAIL PROTECTED]
> Enviado el: mi?rcoles, 26 de noviembre de 2008 19:11
> Para: Ra?l Mellado; net-snmp-users@lists.sourceforge.net
> Asunto: RE: Help connecting to agent
>
> > From: Ra?l Mellado [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 26, 2008 2:30 AM
>
> > thanks for your quick answer. This is my snmpd.conf
> > (placed in /usr/local/share/snmp/):
> >
> > ##############################################################
> > #############
> > #
> > # snmpd.conf
> > #
> > # - created by the snmpconf configuration program
> > #
> > ##############################################################
> > #############
> > # SECTION: System Information Setup
> > #
> > # This section defines some of the information reported in
> > # the "system" mib group in the mibII tree.
> >
> > # syslocation: The [typically physical] location of the system.
> > # Note that setting this value here means that when trying to
> > # perform an snmp SET operation to the sysLocation.0
> > variable will make
> > # the agent return the "notWritable" error code. IE, including
> > # this token in the snmpd.conf file will disable write access to
> > # the variable.
> > # arguments: location_string
> >
> > syslocation "Test location string"
> >
> > # syscontact: The contact information for the administrator
> > # Note that setting this value here means that when trying to
> > # perform an snmp SET operation to the sysContact.0
> > variable will make
> > # the agent return the "notWritable" error code. IE, including
> > # this token in the snmpd.conf file will disable write access to
> > # the variable.
> > # arguments: contact_string
> >
> > syscontact "Test contact info"
> >
> > # sysservices: The proper value for the sysServices object.
> > # arguments: sysservices_number
> >
> > sysservices 0
> > ##############################################################
> > #############
>
> There is no access control in here, so no command will ever be
> answered.
>
> > And these are the failing commands (all of them get
> > Timeout: No Response from localhost)
> >
> > snmpget -v1 -c public localhost system.sysLocation.0
> > snmpwalk -v1 localhost -c public system
> >
> > (I've tried with -v1 and -v2c, and the result is the same).
> >
> > Any advice about what to try next? Thank you so much for your help!
>
> This is the expected response to an unauthorized community. Please
> add to your snmpd.conf:
>
> rwcommunity public
>
> This will help you get started.
>
>
> HTH,
>
> Mike
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 26 Nov 2008 10:50:08 -0600
> From: "Larry Schrof" <[EMAIL PROTECTED]>
> Subject: Distinguishing monitored procs via cmdline args?
> To: <[EMAIL PROTECTED]>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> I am ignorant of the inner-workings of net-snmp, so forgive any
> potential ignorance here.
>
>
>
> We have several processes that we need to monitor for existence. These
> processes all have the same full-path (executable), but different
> instances are invoked, and they are distinguished only via their
> command-line arguments. The process monitoring section of the snmpd.conf
> man page states that processes are monitored as they would appear in 'ps
> -e', which doesn't show cmdline args.
>
>
>
> Doing a raw, cummulative count on the number of these processes running
> at any given time is not feasible. They are constantly started and
> stopped on their own individual schedules. We need a way to treat
> "/some/path/binary -c arg1" and "/some/path/binary -c arg2" as two
> completely different, trackable entities, and have them monitored.
>
>
>
> Is this possible?
>
>
>
> I am not a member of the list. Please use my From: address for
> responses. Thanks!
>
>
>
>
>
>
>
> Larry Schrof
> Technical Services - Linux & Solaris Systems Engineer
> Chicago Trading Company
> Office: 312-863-4477
> Cell: 773-469-7360
>
>
>
>
>
>
> This message is intended only for the personal and confidential use of the
> recipients named above. If the reader of this email is not the intended
> recipient, you have received this email in error and any review,
> dissemination, distribution or copying is strictly prohibited. If you have
> received this email in error, please notify the sender immediately by return
> email and permanently delete the copy you received.
>
> This message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments. CTC Holdings nor any affiliates ("CTC") are
> responsible for any recommendation, solicitation, offer or agreement or any
> information about any transaction, customer account or account activity that
> may be attached to or contained in this communication. CTC accepts no
> liability for any content contained in the email, or any errors or omissions
> arising as a result of e-mail transmission. Any opinions contained in this
> email constitute the sender's best judgment at this time and are subject to
> change without notice.
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
> ------------------------------
>
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
> End of Net-snmp-users Digest, Vol 30, Issue 30
> **********************************************
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users