If you have installed monitor solution for Dell Servers and you want to actually demonstrate its functionality with a Dell server then what's the best thing to show. Chances are that you do not have a number of Dell servers lying around that you can simulate a database failure or an OS crash.
This guide will show you how to demonstrate 2 different components of monitor solution, the first will be to monitor an actual event from a Dell server and the second will be to demonstrate monitoring of a service that is or should be running.
To be able to run this demo you will need a Notification Server with Monitor Solution and Monitor for Dell Servers installed. You will also need a Dell server that has both the Altiris agent installed with the monitor agent and also Dell OpenManage Server Administrator on the box. The Altiris Monitor Agent obtains data from OMSA through SNMP requests. The agent then uses its own mechanisms and the Altiris Agent to transfer data from the server to the computer running Notification Server.
Demo 1: Monitoring a power failure
Simulating a power failure with a Server is quite easy to do assuming that you have two power supplies attached to the back of your server, if not you probably don't want to try this demo until you find yourself another power cable. (Especially for a server in production). Once you have installed your monitor solution agents there are a couple of things you need to check to make sure that everything is ready to go.
The first thing to check is the collection called 'All Dell Windows Computers with OpenManage Server Administrator and Altiris Monitor Agent SP4'. This can be found under configuration>Dell Servers folder within the manage>monitoring page. The Dell server should appear under this collection, if not make sure that the agent has been pushed and the client has updated its configuration. Note: it may take a few minutes for the machine to appear under this collection. You should also check to make sure that your monitor packs are disabled by going to Tasks>Manage Monitor Packs.
It is important to disable monitor packs before you begin to use the product as you may trigger off rules unexpectedly which will result in alerts being generated and your dashboard staying continuously in a critical state. Once you become more familiar with monitor solution you can start to experiment with enabling different monitor packs.
Click on Manage > Monitoring to access the main monitor page within the Altiris 6.5 console. The first thing to look at is the monitor dashboard. Here you should see your server status as good. (Represented by green bars in the graph).
This guide isn't for those who are new to monitor solution but as a recap you need to understand the differences between Metrics, Rules and Monitor Packs.
Metrics define how the Monitor Agent collects data from supported data sources, called metric sources. Each agent can use numerous metrics to define all of the data that you want to collect.
Rules specify how to analyze metric or event data collected by the Monitor Agent. Rules also define under what conditions they are triggered and the actions taken. The actions can include sending an e-mail, generating an SNMP trap, creating an Alert Manager or Helpdesk incident, and running a command on the monitored computer from the command-line.
A Monitor pack is a group of rules for a similar purpose, such as monitoring an operating system or an application. The rules of a Monitor pack are grouped into categories for greater ease in working with them.
Monitor Solution for Dell Servers provides the metrics needed to monitor Dell servers.
For a more detailed understanding on how monitor solution works, please go to the documentation section on the Altiris website.
Back to the demo, the first thing we need to do is to edit the existing Dell-Windows-Basic monitor pack. Double click on the monitor pack and you will notice that there are two categories by default, server and storage management.
Double click on the server administrator and scroll down the rules until you find "Power Supply detected a failure".
Double click on this rule and on the Action tab, change the 'Display state as' to Critical and check box the reset state 'Incident acknowledgment'. This means that although a power failure may be corrected when the power is plugged back in but the dashboard will stay critical until we acknowledge that we have seen the problem.
Now to see if the setup of the monitor pack is correct, pull out one of the power supplies plugged into the back of the server. After a few seconds (could take up to 60 seconds) your dashboard should turn red.
If you click on the glasses icon at the bottom of the page you will be shown which rules have triggered the critical status.
In this example you can see that by pulling the power cable from the server you have triggered 2 rules, 1 is that a power supply failure has been detected and the 2nd is the redundancy has been lost as a result. Explain at this point you would go to the server room and see that the power cable has been pulled out and you would replace the power to the machine. Even though the agent will detect that normal service has been resumed the dashboard will not reset until you acknowledge the rule. To do this click on the acknowledge all icon
Click on the close acknowledge once the pop up window appears and then go back to the dashboard and you should see that normal service has been resumed (the graph should be green again)
Demo 2: Monitoring a Service
The second demo scenario is to show how monitor solution can be used to monitor a service and make sure that it is always running. For this demo we are going to use the Altiris Deployment Server as our service (express service). We will create a metric, a rule and a monitor pack to show how if the Altiris service is stopped, we can be alerted and it will be automatically restarted.
Creating a Metric
The first thing you need to do is to create a Metric that monitors the Altiris Service. Go to the Manage > Monitoring view and click on the 'Manage Metrics' link.
Click on the + icon to create a new metric. Complete the Metric as shown in the image below. Make sure you create a WMI metric.
The next thing to do is edit your Monitor pack to add your newly created Metric. To do this browse to your monitor packs and edit the Dell>Windows>Basic monitor pack. Create a new category called Altiris Management as shown below.
Double click on the new category. Under the general tab you need to create a detection rule for the Altiris Service. The Detection rule allows the agent to work out if it needs to apply this policy, if the detection rule isn't met the policy is simply ignored. This will stop policies being downloaded to servers that it doesn't apply to. Create a new detection method and complete the details as shown in the below image.
Now click on the 'Rules' tab. Under the general tab we need to create a rule for the service that you intend on monitoring. In this instance we will be monitoring the Altiris Deployment Service. Click on the new button and complete the rule metric as shown below. Under the metric drop down, select the Altiris Deployment Service that you created in the earlier stage. The 'Value' field should be 'Running' as this is the state of the service that we are monitoring.
Now that we have created a monitor metric for the Altiris Service and created a rule that monitors that the service should be in a running state, we need to create an action for when the service leaves the running state (i.e. the service stops).
The first thing to do is click on the 'Action' tab. Under the display state, make sure that the state is set to 'Critical'. Another important thing here is to set the 'Reset state using' value to "Update Metric Value". What this does is updates the dashboard automatically so that when the service restarts it changes the dashboard back to a good state.
The final step to make is to define the action that we want to automate. In this instance we want to try and restart the Altiris Service when it detects that it has stopped. To do this click on the new button and complete the fields as shown on the image below.
Testing the Rule
To test the rule you first need to update your configuration of the agent so that it will download the latest policy we just created. You can then go to you Monitor Solution dashboard and you should see that everything is normal.
Now go to your services under the administrative controls and stop the Altiris express Server service as shown below.
If your policy is configured correctly, after a few moments you should see the dashboard change to show the critical error.
If you click on the glasses icon you will then see the triggered rules that affected the machine. On the page you should see the name of the service that you created earlier. Because you have set the Altiris system to automatically try and restart the service the service may restart and the dashboard will go back to a normal state.
You can now play around with the solution and create your own monitor rules that monitor other services or processes that are running.