System state changes
The NPSNoLongerOnline and SystemOnline rules enable the system to notify you when the system state changes, or when a state change exceeds a specified timeout.
These events occur when the system is running. The typical
states are
- Online
- Pausing Now
- Going Pre-Online
- Resuming
- Going OffLine Now
- Offline (now)
- Initializing
- Stopped
The following is the syntax for the template event rule
NPSNoLongerOnline:
-name NPSNoLongerOnline -on no -eventType sysStateChanged
-eventArgsExpr '$previousState == online && $currentState != online'
-notifyType email -dst 'you@company.com' -ccDst '' -msg 'NPS system
$HOST went from $previousState to $currentState at $eventTimestamp
$eventSource.' -bodyText '$notifyMsg\n\nEvent:\n$eventDetail\n'
-eventAggrCount 1
The following is the syntax for event rule
SystemOnline:
-name SystemOnline -on no -eventType sysStateChanged -eventArgsExpr
'$previousState != online && $currentState == online' -notifyType
email -dst 'you@company.com' -ccDst '' -msg 'NPS system $HOST went
online at $eventTimestamp $eventSource.' -bodyText
'$notifyMsg\n\nEvent:\n$eventDetail\n' -eventAggrCount
50
The valid values for the previousState and currentState
arguments are:
initializing pausedNow syncingNow
initialized preOnline syncedNow
offlining preOnlining failingBack
offliningNow resuming failedBack
offline restrictedResuming maintaining
offlineNow stopping maintain
online stoppingNow recovering
restrictedOnline stopped recovered
pausing stoppedNow down
pausingNow syncing unreachable
paused synced badState
For
more information about states, see Table 1.
The
following table describes the state changes.
Previous state | Current state | Severity | Notify | Impact | Action |
---|---|---|---|---|---|
Online | Not Online | Varies | Admins, NPS®, DBAs | System no longer processing queries | Determine cause |
Not Online | Online | n/a | Admins, NPS, DBAs | Normal | None |
Not Synchronizing | Synchronizing | n/a | Admins, NPS | Query processing is suspended until complete | None |
Synchronizing | Not Synchronizing | n/a | Admins, NPS | Query processing is resumed when Online | Contact Netezza Performance Server |