> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Andreas Appelbaum
> Sent: Friday, February 08, 2008 5:48 AM

> I have to monitor an Oracle Database and the OS HP-UX and 
> want to use SNMP to do so.
> Since the standard SNMP that is delivered with HP-UX does not 
> seem to give me CPU/FileSystem/Memory details I started to 
> configur ethe NET-SNMP Agent following this Guide 
> <http://forums.cacti.net/about15353.html> .

        That guide passes the --prefix and --exec-prefix flags to `make 
install`.  It is better to pass them to the configure script.  Also, you 
probably want to make sure you have --with-mib-modules=host.  I believe this is 
default behavior, you can use `./configure --help | more` to check the defaults.

> that is obviously for some other Monitoring product but the 
> steps to get net-snmp running must be the same(?).

        Generally speaking, yes, provided you want to monitor the same 
information.  The agent neither knows now cares which manager asks for data, 
it's all SNMP.

> That all went fine and I ended up with  snmpd.conf like this:
> 
> 
> ##############################################################
> #############
> # SECTION: Access Control Setup
> #
> #   This section defines who is allowed to talk to your running
> #   snmp agent.
> # rwcommunity: a SNMPv1/SNMPv2c read-write access community name
> #   arguments:  community [default|hostname|network/bits] [oid]
> rwcommunity  public
> agentaddress tcp:161
> syslocation Fleet
> syscontact DanTse
> inculdeAllDisks
> proc httpd

        If a highly insecure config is acceptable, this should be good.

> I also edited the service file to contain the snmp tcp ports. 

        SNMP is usually run over UDP.

> The above readme ended at that stage and now comes my 
> ignorance into play: How do I start the bl***y thing? 
> The FAQ on the net-snmp site is helpful, but it does not say 
> how to do that :-)

$ ${sbindir}/snmpd -Ls d

...should do the trick This assumes snmpd.conf is in ${sysconfdir} (default 
${prefix}/etc).

> The net-snmp agent will obviously be the master agent(?) so I 
> need to kill the HP-UX Agent and then the only snmpd 
> executable I found was in /usr/local/sbin .

        That's probably the one you built.  I'm not sure that make install 
accepts the --prefix flag.

> That starts fine and I can see it in the process list but 
> when I try to get to it from my monitoring station (IPSwitch 
> Whats Up Gold) it just times out (no firewall in between).

        Get to it?  Try this from a commandline with ${bindir} (${prefix}/bin) 
in your PATH:

$ snmpgetnext -v 1 -c public localhost .1.3

        If that times out, try using the hostname instead of localhost.

> Once I have this done and can poll CPU/MEMORY etc. I start 
> worrying about integrating the Oracle SUB-AGENT but I first 
> need to get this going :-)
> 
> I have also no idea how these mailing list things work (is 
> there no forum for net-snmp?), if someone is so kind to help 
> me, could you send your answer to [EMAIL PROTECTED] please?

        You have joined the mailing list, right?  Many things we routinely 
discuss will be of great interest to you at this stage of your learning.


        HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to