Sun N1 System Manager 1.3 Discovery and Administration Guide

ProcedureTo Set Threshold Values for a Server

Before You Begin

To enable the management agent IP and security credentials on a server named server, add the management features on the server as explained in Adding and Upgrading Base Management and OS Monitoring Features.

Steps
  1. Log in to the N1 System Manager.

    See To Access the N1 System Manager Command Line for details.

  2. Use the set server command with the threshold attribute.

    The syntax requires the threshold keyword to be followed by the attribute for which you are setting a threshold. The attribute is an OS health attribute. OS health attributes are described in OS Health Monitoring and listed in Table 6–2.

    The threshold is either criticallow, warninglow, warninghigh, or criticalhigh. The value is a numeric figure and usually represents a percentage.

    This set server operation does not actually touch the managed server. It just synchronizes the data on the management server itself.

    • To set one threshold value, type the following:


      N1-ok> set server server threshold attribute threshold value
      
    • To set multiple threshold values for the server, type the following:


      N1-ok> set server server threshold attribute threshold value threshold value
      
    • For a server group, use the set group command with the threshold attribute. To modify one threshold for the server group:


      N1-ok> set group group threshold attribute threshold value
      
    • To modify multiple thresholds for the server group:


      N1-ok> set group group threshold attribute threshold value threshold value
      

Example 6–5 Setting Multiple Threshold Values for CPU Percentage Usage on a Server

This example shows how to set the CPU usage warninghigh severity threshold on a managed server named serv1 to 53 percent. This example also shows how to set the criticalhigh severity threshold value to 75 percent.


N1-ok> set server serv1 threshold cpustats.pctusage warninghigh 53 criticalhigh 75


Example 6–6 Setting Multiple Threshold Values for File System Percentage Usage On a Server

This example sets the file system percentage usage warninghigh threshold on a managed server named serv1 to 75 percent. This example also sets the criticalhigh threshold value to 87 percent. This example sets the threshold for every file system on the server.


N1-ok> set server serv1 threshold fsusage.pctused warninghigh 75 criticalhigh 87

You can also specify the file system for which you want to set multiple threshold values. To set the warninghigh threshold to 75 percent and the criticalhigh threshold value to 87 percent, for the /usr file system on the same server, use the filesystem attribute:


N1-ok> set server serv1 filesystem /usr threshold fsusage.pctused 
warninghigh 75 criticalhigh 87


Example 6–7 Setting a Threshold Value for File System Free Space On a Server

This example sets the warninghigh threshold for file system free space for the /var file system on a managed server named serv1 to 150 Kbytes of free space.


N1-ok> set server serv1 filesystem /var threshold fsusage.kbspacefree warninghigh 150


Example 6–8 Setting a Threshold Value for Percentage of Free Memory On a Server

This example sets the criticalhigh threshold for the percentage of free memory on a managed server named serv1 to 5%.


N1-ok> set server serv1 threshold memusage.pctmemused criticalhigh 5


Example 6–9 Deleting a Threshold Value for File System Percentage Usage on a Server

This example shows how to delete a value that was set for the warninghigh threshold on a managed server named serv1.


N1-ok> set server serv1 threshold fsusage warninghigh none

In this case, any previously set value for this threshold at this severity is deleted. In effect, monitoring is disabled for the warninghigh threshold for file system usage for this server.



Example 6–10 Setting Multiple Threshold Values for File System Usage on a Server Group

This example shows how to set the file system usage warninghigh threshold to 75 percent on a group of managed servers with a group name of grp3. This example also shows how to set the criticalhigh threshold severity value to 87 percent.


N1-ok> set group grp3 threshold fsusage.pctused warninghigh 75 criticalhigh 87