Configuring the SubagentChapter 13 Monitoring Directory Server Using SNMP 471The SNMP subagent included with Directory Server uses the AgentX protocol tocommunicate with the SNMP master agent running on your system. You mustmake sure that you enable AgentX support on your master agent. This is typicallydone by adding a line containing agentx master in the master agent's snmpd.conffile. For more details on configuring the master agent for AgentX support, refer tothe Net-SNMP website (http://www.net-snmp.org).Configuring the SubagentThe Directory Server SNMP subagent is located inserver_root/bin/slapd/server/ldap-agent.Subagent Configuration FileTo use your subagent, you must first create a subagent configuration file. You canname this file whatever you like and place it wherever you like. This configurationfile is used to specify how to communicate with your master agent, logfile location,and which Directory Server instances to monitor.agentx-masterThe agentx-master setting tells the subagent how to communicate with the SNMPmaster agent. If this setting is not specified, the subagent will try to communicatethe the master agent via the Unix domain socket /var/agentx/master. This is alsowhere the Net-SNMP master agent listens for AgentX communications by default.If you configured your master agent to listen on a different Unix domain socket,you must use the agentx-master setting for your subagent to communicate withyour master agent. If your master agent were listening on /var/snmp/agenx, theagentx-master setting would be agentx-master /var/snmp/agentx. Make surethat the user as whom you are running the subagent has the appropriatepermissions to write to this socket.If the master agent is listening for AgentX communications on a TCP port, youwould have an agentx-master setting of agentx-master localhost:705.agent-logdirThe agent-logdir setting specifies the directory where you want the subagent towrite its logfile. For example:agent-logdir /var/log