A monitoring system generates alerts indicating predefined conditions exist
in a computer system. Alerts are generated by comparing alert definitions
to a host state representing the state of the hardware and software
components of a computer system. to determine if conditions defined in the
alert definitions exist in the host state; and generating alerts
accordingly. The host state is a static tree structure including elements
in a fixed hierarchical relationship, the elements being given value by
associated tokens, the elements and associated tokens representing the
hardware and software components of the computer system. The alert
definitions generate alerts according to the values of at least one token,
at least one alert or a combination of various tokens and/or alerts. The
host state is created by providing a static tree structure representing a
general computer system. Component information indicating hardware and
software components of the computer system is extracted from diagnostic
data of the computer system. The host state is generated according to the
static tree structure and the component information.