5.222 System Events

The broad category of system events may be broken down into two subcategories: events and notification conditions.

5.222.1 Events

Events are created by many components in the system, but most events originate from Moab Workload Manager and Moab Web Services. Events can be created via the MWS interface or by being placed on the message queue. See 5.266 Creating Events and Notifications for more information. The ZeroMQ™ message queue libraries were introduced in Moab and MWS 7.5.0.

In a typical system, Moab will communicate events to MWS via a "private" message queue, and then MWS will replicate the events on the "public" message queue, or the message queue that is available to subscribers with the correct secret keys. In some cases, such as those related to the MWS service lifecycle, MWS uses events to determine activities or capabilities that are available.

A typical message on the message queue may look like the following (sent with a topic of system.moab):

Sample message on message queue
------------------------------------

{
	"body" : {
		"associatedObjects" : [
			{
				"id" : "Moab",
				"type" : "scheduler"
			}
		],
		"code" : 16777619,
		"eventDate" : "2014-02-28T10:57:21.000-0700",
		"message" : "A scheduler iteration is ending.",
		"origin" : "MSysMainLoop.c, MSysMainLoop, line 959"
	},
	"messageId" : "843269550",
	"messageType" : "event",
	"senderId" : "mwm@mwm-server",
	"sentDate" : "2014-02-28T10:57:21.000-0700",
	"ttl" : 3000
}

5.222.2 Notification Conditions

Notification Conditions are related to an event, but differ in three distinct areas:

  1. Notification conditions are a persistent condition of the system or a component rather than a single occurrence.
    • They are ongoing rather than reoccurring, which is why they are generated from NotificationConditions.
    • They may be observed many times, but the condition is always the same.
    • A good test for this is if something "is" wrong rather than something "went" wrong.
  2. Notification conditions can be acted on to result in a resolved state, mean the administrator or user can and must take actions to "fix" the condition or problem.
  3. Notification conditions contain state information based on administrator or user input, meaning that they contain information about the condition (similar to events), but also contain the "status" of the administrator's view of the notification, whether it is currently open, dismissed, or ignored.

In general, questions may be asked to ascertain whether an event or a notification condition is the right fit for an occurrence. These questions, along with some sample situations, are provided below.

Related Topics 

© 2016 Adaptive Computing