oifalert.c File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAX_STRING_LENGTH   64
#define OSIRIS_ERROR_MESSAGES   20
#define OSIRIS_ERROR_MESSAGE_LENGTH   255
#define CHECKSTALTA(n)
#define DoCheckNoiseLevel(i)

Functions

int CheckStaLtaBounds (void)
 alert method
int CheckProcessOshWww (void)
 alert method
int CheckProcessOshCmd (void)
 alert method
int CheckProcessTrigger (void)
 alert method
int CheckProcessSysd (void)
 alert method
int CheckProcessConfiguration (void)
 alert method
int CheckProcessGpsd (void)
 alert method
int CheckProcessDiskmgr (void)
 alert method
int CheckProcessAcquisit (void)
 alert method
int CheckGeneralError (void)
 alert method
int CheckBootTime (void)
 alert method
int CheckGps (void)
 alert method
int CheckBatteryETR (void)
 alert method
int CheckBatteryLevel (void)
 alert method
int CheckInternalBatteryLevel (void)
 alert method
int CheckDriftAmplitude (void)
 alert method
int CheckTimeShiftAmplitude (void)
 alert method
int CheckLastInformationTime (void)
 alert method
int CheckStorageError (void)
 alert method
int CheckStorageDisk (void)
 alert method
int CheckAgeOfLastPulse (void)
 alert method
int CheckSageLastData (void)
 alert method
int CheckSageLastEventList (void)
 alert method
int CheckRecordingAge (void)
int CheckAcquisitDiskmgrTime (void)
int CheckContinuousRecording (void)
int CheckNoiseLevel (void)

Variables

struct OsirisAlert AlertTable []
 alert table: should generate an email
struct OsirisAlert MykerinosRAlertTable []
 alert table: should generate an email
struct OsirisAlert WarningTable []
 warning table: should be displayed but no mail sent


Define Documentation

#define CHECKSTALTA (  ) 

Value:

{ \
                if ((staMin[n]>0)&&(acquisit_Sta##n.valid)) \
                { \
                        if ((staMin[n]>0)&&(acquisit_Sta##n.value.d<staMin[n])) \
                        { \
                                return(1); \
                        } \
                        if ((staMax[n]>0)&&(acquisit_Sta##n.value.d>staMax[n])) \
                        { \
                                return(1); \
                        } \
                } \
                if ((ltaMin[n]>0)&&(acquisit_Lta##n.valid)) \
                { \
                        if ((ltaMin[n]>0)&&(acquisit_Lta##n.value.d<ltaMin[n])) \
                        { \
                                return(1); \
                        } \
                        if ((ltaMax[n]>0)&&(acquisit_Lta##n.value.d>ltaMax[n])) \
                        { \
                                return(1); \
                        } \
                } \
        }

Referenced by CheckStaLtaBounds().

#define DoCheckNoiseLevel (  ) 

Value:

if ((acquisit_Lta##i.valid==1)&&(acquisit_Sta##i.valid==1)&&(acquisit_Fs##i.valid==1)&&(acquisit_Fs##i.value.d>5)) \
        { \
                if (((acquisit_Lta##i.value.d==0)||((acquisit_Lta##i.value.d>>8)>=(1<<24)-1))&& \
                    ((acquisit_Sta##i.value.d==0)||((acquisit_Sta##i.value.d>>8)>=(1<<24)-1))) \
                { \
                        return(1); \
                } \
        }

Referenced by CheckNoiseLevel().

#define MAX_STRING_LENGTH   64

Definition at line 23 of file oifalert.c.

#define OSIRIS_ERROR_MESSAGE_LENGTH   255

Definition at line 25 of file oifalert.c.

#define OSIRIS_ERROR_MESSAGES   20

Definition at line 24 of file oifalert.c.


Function Documentation

int CheckAcquisitDiskmgrTime ( void   ) 

Returns:
1 if this alert is raised

Definition at line 600 of file oifalert.c.

References acquisit_CorrectedTime, diskmgr_LastAcquisitCorrectedTime, and MAX_FUZZYNESS.

int CheckAgeOfLastPulse ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 473 of file oifalert.c.

References acquisit_LastGpsTop, gpsd_SystemTime, MAX_GPS_TOP_OLDNESS, and sysd_OsirisModel.

int CheckBatteryETR ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 263 of file oifalert.c.

References POWER_REMAINING_THRESHOLD, and sysd_BattRemaining.

int CheckBatteryLevel ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 279 of file oifalert.c.

References POWER_LEVEL_THRESHOLD, sysd_ExtBat, and sysd_OsirisModel.

int CheckBootTime ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 206 of file oifalert.c.

References REBOOT_DELAY, sysd_OsirisModel, and sysd_StartTime.

int CheckContinuousRecording ( void   ) 

Returns:
1 if this alert is raised

Definition at line 619 of file oifalert.c.

References diskmgr_Record, and trigger_RecordingMode.

int CheckDriftAmplitude ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 354 of file oifalert.c.

References acquisit_Drift, and sysd_OsirisModel.

int CheckGeneralError ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 190 of file oifalert.c.

References comd_MessageFlag.

int CheckGps ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 244 of file oifalert.c.

References gpsd_GpsState.

int CheckInternalBatteryLevel ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 315 of file oifalert.c.

References INTERNAL_BATTERY_MAX_LEVEL, INTERNAL_BATTERY_MIN_LEVEL, sysd_IntBat, and sysd_OsirisModel.

int CheckLastInformationTime ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 418 of file oifalert.c.

References gpsd_SystemTime, MAX_LONGINFOS_AGE, and MAX_LONGINFOS_AGE_TIMEOUT.

int CheckNoiseLevel ( void   ) 

Returns:
1 if this alert is raised

this alert is activated for ARM+DSP based stations

Definition at line 633 of file oifalert.c.

References DoCheckNoiseLevel, and sysd_OsirisModel.

int CheckProcessAcquisit ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 181 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessConfiguration ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 154 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessDiskmgr ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 172 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessGpsd ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 163 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessOshCmd ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 127 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessOshWww ( void   ) 

alert method

alert method

Returns:
1 if this alert is raised

Definition at line 118 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessSysd ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 145 of file oifalert.c.

References myMessage, and myShi.

int CheckProcessTrigger ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 136 of file oifalert.c.

References myMessage, and myShi.

int CheckRecordingAge ( void   ) 

Returns:
1 if this alert is raised

Definition at line 573 of file oifalert.c.

References diskmgr_lastWriteTime, gpsd_SystemTime, MAX_FUZZYNESS, and trigger_RecordingMode.

int CheckSageLastData ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 505 of file oifalert.c.

References MAX_LONGINFOS_AGE_TIMEOUT, MAX_SAGEDATA_AGE, and sysd_OsirisModel.

int CheckSageLastEventList ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 539 of file oifalert.c.

References MAX_LONGINFOS_AGE_TIMEOUT, MAX_SAGEDATA_AGE, and sysd_OsirisModel.

int CheckStaLtaBounds ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 31 of file oifalert.c.

References CHECKSTALTA, MAX_CHANNEL, and PrintError.

int CheckStorageDisk ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 457 of file oifalert.c.

References diskmgr_StorageStatus, and myShi.

int CheckStorageError ( void   ) 

alert method

Returns:
1 if this alert is raised

Definition at line 441 of file oifalert.c.

References diskmgr_StorageStatus, and myShi.

int CheckTimeShiftAmplitude ( void   ) 

alert method

Returns:
1 if this alert is raised

this alert is activated for TITAN/NUM3PC based digitizer only

Definition at line 391 of file oifalert.c.

References acquisit_LastShift, and sysd_OsirisModel.


Variable Documentation

struct OsirisAlert AlertTable[]

alert table: should generate an email

Definition at line 667 of file oifalert.c.

Referenced by ProcessOIF().

struct OsirisAlert MykerinosRAlertTable[]

Initial value:

{
        { "LOWPOWER", 0, "Main power level too low", CheckBatteryLevel } ,
        
        { "REBOOT",   0, "Station has booted less than 1 hour ago", CheckBootTime } ,
        { "GENERAL",  0, "The general error flag is raised", CheckGeneralError } ,
        { 0, 0, 0 } 
}
alert table: should generate an email

Definition at line 703 of file oifalert.c.

Referenced by ProcessOIF().

struct OsirisAlert WarningTable[]

Initial value:

{
        { "OLDPULSE", 0, "Last GPS synchronization pulse older than 24 hours", CheckAgeOfLastPulse } ,
        { 0, 0, 0 } 
}
warning table: should be displayed but no mail sent

Definition at line 713 of file oifalert.c.

Referenced by ProcessOIF().


Generated on Tue Jul 22 23:11:57 2008 for Titan2Reader by  doxygen 1.5.6