|
Installing SNMP Agents
The following section describes the installation procedure for several vendor specific SNMP agents. In some cases, the vendor agent acts like a sub-agent by interfacing with another main SNMP agent, or else listens on a TCP port other than 161.
NetVigil has built in support for the following vendor specific MIBs already. You just need to run a new tests discovery on the specific server after installing the SNMP agent and NetVigil will display the vendor specific tests automatically.
C.1 NET-SNMP
This is a free SNMP agent available from
http://www.net-snmp.orgwith excellent support for most Unix platforms, and bundled with most OS platforms.C.1.1 Pre-compiled SNMP agents
Pre-compiled snmp agents for Linux and Solaris are available for download at http://support.fidelia.com/downloads/NetVigil/snmp-agent/. After downloading the appropriate archive, install the agent using the following steps:
C.1.2 Editing the snmpd.conf file
The only line needed in the net-snmp/share/snmp/snmpd.conf file (also located in /etc/snmp/ on some vendor systems), is the community string:
## Define a read-only list of SNMP v1/v2 community strings ## Format is rocommunity <community> [hostIP|subnet/bits] rocommunity public rocommunity anotherStringAfter changing these, you should restart your snmpd.
C.1.3 Configuring SNMP v3 in net-snmp
If you are using the net-snmp software on your server, you can enable SNMP v3 on the snmpd agent using the following steps. Note that there are 2 separate
snmpd.conffiles which need to be edited:/usr/local/net-snmp/share/snmp/) and add the following line:
rouser myuser priv
This adds SNMP v3 user 'myuser' and specifies that both
authentication and encryption of packets is required for this user.
'myuser' in the /usr/local/var/snmpd.conf file (this is a "runtime" file used by snmpd has comments in it about not editing manually except to add users).You must stop any running snmpd processes before editing this file:
This tells the snmpd process to create a user "myuser" with the MD5 authentication pass phrase and encryption password as specified.
Then restart snmpd. This line will automatically be replaced by a 'usmUser' entry without the cleartext passwords.
snmpwalk -v 3 -n "" -u myUser -l authPriv -a MD5 \ -A "myAuthPasswd" -X "myEncryptPasswd" \ 192.168.1.100 sysUptimeIn NetVigil, you specify these parameters by setting the community string to be:
(i.e. separated by colon characters).
C.2 Solaris
Note that the Solaris agent only includes support for MIB-II tree, which will enable you to monitor the network interfaces on the server. Since the agent does not support HOST-MIB tree, NetVigil will not be able to find any disks or CPU. Also note that this agent only support SNMP version 1, so when creating a new device, make sure to select version 1 on the device creation page on the web interface.
Optionally, you can install the net-snmp software from http://www.net-snmp.org or from the Fidelia support web site. If you do this, then you must stop and disable the existing Sun provided agents using:
If you would like to use the Sun SNMP agent, then you should download and install the latest Solstice Enterprise Agent from http://www.sun.com/software/entagents/. The package includes instruction on how to uninstall the existing agent first.
The following config entries for
/etc/snmp/conf/snmpd.confshould be sufficient to get basic information from the agent:#--------------------------------------- sysdescr My Server system-group-read-community public read-community public trap localhost trap-community SNMP-trap managers localhost #---------------------------------------C.3 Windows 2003/XP/2000
NOte: If possible, it is preferable to use the native Windows WMI protocol instead of using SNMP on Windows devices because it allows monitoring of applications and parameters that the Windows SNMP agent does not provide.Note: According to Microsoft Knowledge Base article, SNMP counters for storage devices (including physical and virtual memory) on Windows 2000 are not dynamically updated. Please refer to http://support.microsoft.com/support/kb/articles/Q295/5/87.ASP for additional information.
- To install an SNMP Agent on a Windows2003/XP Server/2000:
- Click on Start | Settings | Control Panel.
- Double-click on Add/Remove Programs.
- Click on Add/Remove Windows Components.
- Click on Management and Monitoring Tools and click on Details.
- Check Simple Network Management Protocol and click OK.
- Click on Next and let the install process complete.
- Double-click on Administrative Tools (inside Control Panel).
- Double-click on Computer Management.
- Expand the Services and Applications tree on the left frame.
- Click on Services on the left frame.
- Locate SNMP Service on right frame and double-click on it.
- On the General tab, select Automatic for Startup Type.
- On the Security tab, click on Add... for Accepted community names.
- Leave Community Rights to Read-Only and pick a secure Community Name. Click on OK.
NOTE Remember this name, as this information will be required to configure your Win2000 machine as a NetVigil device.For additional reference, please refer to: http://support.microsoft.com/support/kb/articles/Q237/2/95.ASP
Disk utilization for Windows 2000 host does not change
Recently Microsoft has release service pack 3 for Windows 2000, and a fix for this problem has been included in this update. If you are monitoring disk utilization on Windows 2000 workstations/servers using NetVigil, we recommend that you apply service pack 3 at your earliest convenience. This will ensure that you receive the correct utilization information, which also affects trend analysis for capacity planning.
Follow the same steps as above for Windows 2000. Minor differences may exist in the operating systems, so please refer to: http://support.microsoft.com/support/kb/articles/Q237/2/95.ASP for the most recent information.
The SNMP agent provided with Windows NT 4.0 does not implement all elements of MIB-II and HOST-RESOURCES mibs, which provides information on system resources, such as CPU and disk utilization, etc.
C.4 Oracle SNMP agent
Installing the agent on Windows
The SNMP "Intelligent Agent" is shipped with the database and can be installed using the Oracle Universal Installer from the Enterprise Manager tree list or the database server tree list (check to see first if the agent is already installed by looking in the Windows "services" list. It will be listed in the Windows Services panel as "Oracle <ORACLE_HOME> Agent".
Configure the Agent on Windows
Oracle has a master SNMP agent that runs on port 161, and the Windows SNMP agent must be configured to run as the sub-agent (on port 1161). Note however, that on a Windows platform, you can monitor all the Windows metrics using WMI instead of SNMP so you do not need to install the Windows SNMP agent.
TRANSPORT ordinary SNMP OVER UDP SOCKET AT PORT 1161 COMMUNITY public ALLOW ALL OPERATIONS USE NO ENCRYPTION
- Start the Peer SNMP Master Agent from the Windows Services Panel (the binary is
ORACLE_HOME\bin\agent.exe).- Then start the Oracle sub-agent (the Intelligent Agent) which automatically registers itself with the master agent. To start the sub-agent, click on the Windows Control Panel->Services and start the Oracle Agent service (set to automatically start by right clicking on the service name).
To verify that the agent is running, look for the "dbsnmp" process in the Windows Task manager.
Configuring Oracle Agent on Unix
On Unix platforms, install the Oracle SNMP Intelligent Agent from the Universal Installer. You will be required to run the
root.shscript as superuser as part of this install, which installsORACLE_HOME/bin/dbsnmp. Then:TRANSPORT ordinary SNMP OVER UDP SOCKET AT PORT 1161 COMMUNITY public ALLOW ALL OPERATIONS USE NO ENCRYPTIONC.5 Lotus Notes SNMP agent
The Lotus Notes (Domino) SNMP agent allows monitoring of Domino statistics via the industry standard SNMP protocol (it currently supports SNMP v1). It consists of:
- LNSNMP -- Handles requests for Domino-related information from the management station by passing the request to the QuerySet Handler and responding back to the management station. Also receives trap notifications from the Event Interceptor and then sends them to the network management system via the platform-specific, master SNMP Agent.
- QuerySet Handler -- An add-in task that queries server statistics information and sets the value of configurable Domino-based parameters. The QuerySet Handler returns Domino statistics information to LNSNMP, which then forwards the information to the management station using the platform-specific, master SNMP Agent.
- Event Interceptor -- An add-in task that responds to the SNMP Trap notification for Domino Event Handlers by instructing the Trap Generator to issue a trap.
The Domino SNMP Agent constantly monitors the status of the server indirectly through an add-in task using IPC to determine whether the server is up or down. The Domino SNMP Agent is not a Lotus Notes API application; all of its status information is gathered out of band.
Installing the Agent
(Where e: is the CD-ROM drive.)
Enter 1 to install only the Domino SNMP Agent;
Configuring the Agent:
To configure the SNMP agent for Lotus Notes (Domino server),
Arrange for the add-in tasks to be restarted automatically when Domino is next restarted. Add
qurysetandintrcptto the ServerTasks variable in Domino's NOTES.INI file.C.6 BEA Weblogic SNMP
and then configure the SNMP agent.
Since the SNMP agent cannot be configured to run as a subagent (only as a master agent), if you are running Oracle on the same host you will have to run the BEA snmp agent on another port (such as 2161). Note that the Oracle agent expects the subagents on port 1161 (and the masquerade agent in Oracle can probably be told to communicate with the BEA snmp agent running on another port).
See http://edocs.bea.com/wls/docs81/ConsoleHelp/snmp.html
The BEA mib is at:
C.7 SCO Unix
Select option 1 to install. You may want to verify progress by making sure that the following process exists:
/etc/smuxtcl /etc/sysadm.d/hostmib.tcl
in the process table using "ps -fe | grep smux". When the process completes, you see:
Loading Host Resources MIB..............done
The output should be similar to the following sample excerpt:
Name : hrSystemUptime.0 Value : 118356496 Name: hrSystemDate.0 Value : 07 d0 03 0d 09 06 17 00 2d 00 00Once the host resources agent is configured and running, when you re-discover the device, CPU/disk/memory etc tests should be found.
|
Fidelia Technology, Inc. NetVigil v4.0 www.fidelia.com |