Skip to content

Advanced Topics

G-Core G-Health Actions

From G-Core version 7.1.x onwards G-Core has a G-Core PLC action GHeathAlarm. This action is triggered in G-Core when the G-Health Client starts an alarm on the NVR. Using this action you can configure local events and behaviour rules in G-Set for custom local behaviour on the NVR such as switching relays, triggering alarms or logging events in G-SIM etc.

Alarms for items such as cameras of hard disks will often have two actions triggered. One for the device and another which is a global alarm to indicate that any alarm of that type is active on the NVR. Global actions have a device id of '0'

Examples

E.g. If camera loses its connectivity you will get an alarm action to indicate the camera is offline (Sync Loss) and you will get another action to indicated that at least one camera is in an offline state. If a second camera then goes offline you will receive a new action indicating that the second camera is offline. An action indicating that all cameras are back online will only be sent once both cameras are online.

Parameter Description
G-Health ID Alarm Id from G-Health Client
G-Health Alarm Type Code See G-Health Alarm Types
G-Health Alarm Type Name The alarm type name
G-Health Device ID Integer indicating the device Id. For Cameras this is the media channel Id. (not the global number which might change)
G-Health Device Descriptive name of the device that is alarming (E.g. camera name etc)
G-Health Rule ID Internal Id number of the rule
G-Health Priority Priority Value of the Alarm (Info = 100, Warning = 200, Critical = 300)
G-Health Alarm Value If a value is associated with the alarm it is displayed here. E.g. Disk Temperature
G-Health Message A message describing the alarm
G-Health Timestamp The Alarm Timestamp
G-Health Alarm State 'Started' or 'Stopped'

G-Health Alarm Type Codes

Alarm Type Alarm Type Code
GCoreConnectivity 1001
GCoreInvalidCredentials 1002
GCoreCameraCpa 1003
GCoreCameraSync 1004
GCoreCameraSyncIntermittent 1005
GCoreArchive 1006
GCoreRecordingThroughput 1007
GCoreConfigurationChanged 1009
GCoreSystemError 1010
GCoreRedundantPowerFailure 1011
GCoreDongleMissing 1012
HardDriveArray 2001
HardDriveMissing 2002
HardDriveSmart 2003
HardDriveTemperature 2004
SystemDriveSpace 5001
SystemMemory 5002
SystemProcessUtilisation 5003
SystemRestarted 5004
TimeSync 5005
WindowsServiceStopped 5006
ClientOverdue 6001
InsufficientLicenses 7001
ServerDiskSpaceLow 7002
LicenseExpired 7003
StorageFileSpaceLow 7004