HP Insight Management Agents 9.10 Managing ProLiant Servers with Linux HOW TO Whitepaper

3 Customization
This section includes advanced topics on data center customization.
Configuration files
The ProLiant Management Agents Configuration file /opt/hp/hp-snmp-agents/cma.conf
is shared by all HP ProLiant Management Agents. Currently, exclude directives, taint directives,
trap interface, trap email notification configuration, and base socket number (used by cmaX) are
supported. The agents are capable of sending email notifications in addition to SNMP traps. The
trapemail entries in /opt/hp/hp-snmp-agents/cma.conf configure the email commands,
which are then read by the Peers software during their initialization.
The exclude directives allow customization of which agents to start automatically. Any drivers and
agents included on this line will not be started by the run level scripts.
The exclude entries can be modified using the /sbin/hpsnmpconfig command.
If trapemail entries are edited, the Peers software must be restarted before the configuration
modification is effective. The command to restart the SNMP agents is:
# /etc/init.d/hp-snmp-agents restart
Or
# service hp-snmp-agents restart
The syntax of the trapemail lines is:
trapemail mail_command
The keyword "trapemail" indicates that the rest of the line is the command for sending trap email.
In mail_command, you must provide the full path of your email command, the subject, and the
recipients.
Multiple trapemail lines can be defined in /opt/hp/hp-snmp-agents/cma.conf. A default
line is added during installation if none exists:
trapemail /bin/mail s HP Insight Management Agents Trap Alarm root
The mail_command can be any Linux command that reads standard input. For example, using
trapemail /usr/bin/logger will log trap messages to the system log file (/var/log/
messages).
The cmaXSocketBase entry in configuration file /opt/hp/hp-snmp-agents/cma.conf
configures the starting socket port used for communications between cmaX and Peers. The entry
is not needed unless the "bind() failed!" message displays in the Agents log file /var/log/
hp-snmp-agents/cma.log.
This entry should be listed in the configuration file as follows:
cmaXSocketBase 12345
The trapIf entry in configuration file /opt/hp/hp-snmp-agents/cma.conf can be used to
configure the IP address used by the SNMP daemon when sending traps. For example, to send
traps using the IP address of the eth1 interface you would add:
trapIf eth1
If the cmaXSocket Base entry is edited, the snmpd and Peers software must be restarted before
the configuration modification is effective. You can do this by entering the following commands:
# /etc/init.d/snmpd restart
# /etc/init.d/hp-snmp-agents restart
Or
# service snmpd restart
Configuration files 21