11.9 Defining or Editing Group Monitoring Types

If you want to add a Group Monitoring type to the group monitoring that is not defined or change the label of any of the predefined types, you can access the /opt/novell/nrm/NRMGroupHealthInfo file and make changes to it.

Each item is defined between the beginning and ending NRM_Health_Item_Definition XML tags as shown below.

<NRM_Health_Item_Definition>
   <Type_Name>PING</Type_Name>
   <Display_Name>Ping(ICMP)</Display_Name>
   <Platform>Linux</Platform>
   <Health_Test>
      <Command_Line>
         ping -c1 -W1 %ITEM_ADDR | grep "bytes from" 1>/dev/null
      </Command_Line>
      <Result>
         <Value>0</Value>
         <Result_Icon>/sys/login/NRMcanping.gif</Result_Icon>
         <Return_Value>HEALTH_STATUS_UP</Return_Value>
         <Click_Command>ping -c4 %ITEM_ADDR</Click_Command>
      </Result>
      <Result>
         <!Value>0</!Value>
         <Return_Value>HEALTH_STATUS_CANT_CONNECT</Return_Value>
         <Click_Command>ping -c4 -W1 %ITEM_ADDR</Click_Command>
      </Result>
   </Health_Test>
</NRM_Health_Item_Definition>