Managing ProLiant servers with Linux HOWTO
17
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/spool/compaq/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
You can also manipulate the /opt/hp/hp-snmp-agents/cma.conf file which contains one or more
exclude directives. Any string after the exclude keyword is interpreted as an agent name that should
not be started. Examples include:
exclude cmahealthd
exclude cmastdeqd
These two lines exclude two agents from the startup: the Health Agent (cmahealthd) and the Standard
Equipment Agent (cmastdeqd).
3-2 Starting and stopping agents and services
After the initial installation, both the ProLiant Management Agents and the Health Monitor are loaded.
Upon a reboot, the initscripts /etc/init.d/hp-health and /etc/init.d/hp-snmp-agents reload the Health
Monitor and SNMP agents and drivers, even if a different kernel was used for the new run.
To start and stop the hp-health service at runtime, run:
# /etc/init.d/hp-health stop
# /etc/init.d/hp-health start
To start and stop the hp-snmp-agents at runtime, run:
# /etc/init.d/hp-snmp-agents stop
# /etc/init.d/hp-snmp-agents start
You can also use distro-provided shortcuts for these commands.