The following procedure describes how to use the command line to disable the monitoring of hardware health and operating system health of a server or a server group. Hardware health and OS health monitoring are both disabled with this command, provided that the OS monitoring feature has been added.
You might want to disable monitoring of a hardware component to perform maintenance tasks without generating events.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Set the monitored attribute to false by using the set server command.
N1-ok> set server server monitored false |
In this example, server is the name of the provisionable server that you want to stop monitoring. Executing this command disables monitoring of the server. With monitoring of a server disabled, the violation of threshold values by attributes related to that server does not generate events.
For a server group, set the monitored attribute to false by using the set group command.
N1-ok> set group group monitored false |
This command is executed for the group of servers that you have already named. See set group in Sun N1 System Manager 1.2 Command Line Reference Manual for details. In this procedure, group is the name of the group of provisionable servers for which you want to disable monitoring.
View the server details.
N1-ok> show server server |
The output shows that monitoring is disabled.
If you are not interested in the values of some OS health attributes, you can disable the threshold severity for the monitoring of those attributes, while continuing to monitor other OS health attributes. This action prevents annoyance alarms. Example 5–6 shows how to accomplish this task. For general information about threshold values, see Monitoring Threshold Values. You can also remove the OS health monitoring feature. See To Remove the OS Monitoring Feature.