Extending ICE-Linux Monitoring

9
The file will look similar to the following, but not exactly:
<?xml version="1.0" encoding="UTF-8"?>
<tool-list>
<ssa-command-tool name="Configure ICE-Linux Management Services"
guid="00000019bb3a62fe00000005000000a3" revision="1.0" accepts-
targets="false">
<category>ICE-Linux Tools</category>
<description>Configures the ICE-Linux management and monitoring
services</description>
<comment>This tool always runs on the CMS</comment>
<default-target>uranus</default-target>
<execute-as-user>root</execute-as-user>
<toolbox-enabled value="true" />
<toolbox toolbox-name="ICE-Linux Tools" />
<ssa-block>
<command command-type="stdout"
log="false">/opt/hptc/config/sbin/setup --batch --ihifile
/opt/hptc/config/icelx/cconfig_batch_ihi.ini</command>
</ssa-block>
<attribute name="help-stucture-source"></attribute>
<attribute name="menu-path">Options</attribute>
<attribute name="help-
url">/mxhelp/mxportal/MxHelpMapper.jsp?appid=icelx-
monitor&amp;topic=configserver</attribute>
<attribute name="help-index-terms"></attribute>
<attribute name="help-locale-index">en</attribute>
<attribute name="help-base-url">../../../icelx-
monitor</attribute>
<attribute name="i18n-attrs">TOOL,mxtools</attribute>
</ssa-command-tool>
</tool-list>
Copy the file to a new working copy:
# cp –p /opt/hptc/nagios/etc/originaltdef.xml \
/opt/hptc/nagios/etc/newtdef.xml
Now edit the newtdef.xml file. Locate this line (it appears as one line in the file but is presented in
two lines because of spacing considerations):
<command command-type="stdout" log="false">/opt/hptc/config/sbin/setup --
batch --ihifile /opt/hptc/config/icelx/cconfig_batch_ihi.ini</command>
And change that line to the following:
<command command-type="stdout" log="false">/opt/hptc/config/sbin/setup --
batch --ihifile /opt/hptc/config/icelx/cconfig_batch_ihi.ini; addbmc
icelx1 demos-cp.example.com v2;
/opt/hptc/bin/setup_management_services --buildmgmtdataini ;
/opt/hptc/bin/setup_management_services –pushmgmtdataini </command>
Where the addbmc icelx demos-cp.example.com v2 command uses your site-specific
parameters. The addbmc command supports a –file option that could also be used here for larger
system counts. After editing, the new definition needs to be installed into HP SIM:
# mxtool –m –f /opt/hptc/nagios/etc/newtdef.xml –x force