00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 #ifndef __MonitoringEventSchema_h__
00059 #define __MonitoringEventSchema_h__
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00155 #define ME_UID_STRING "2f737514-1d1b-4edb-9cd4-adffc433d56e"
00156
00157
00166 #define ME_EVENT_TYPE_BASE 500
00167
00168 #define ME_EVENT_CANCELED (ME_EVENT_TYPE_BASE+0)
00169
00170 #define ME_EVENT_VALUE_ABOVE (ME_EVENT_TYPE_BASE+1)
00171
00172 #define ME_EVENT_VALUE_AT_OR_ABOVE (ME_EVENT_TYPE_BASE+2)
00173
00174 #define ME_EVENT_VALUE_AT (ME_EVENT_TYPE_BASE+3)
00175
00176 #define ME_EVENT_VALUE_AT_OR_BELOW (ME_EVENT_TYPE_BASE+4)
00177
00178 #define ME_EVENT_VALUE_BELOW (ME_EVENT_TYPE_BASE+5)
00179
00180 #define ME_EVENT_VALUE_NOT_AT_BELOW (ME_EVENT_TYPE_BASE+6)
00181
00182 #define ME_EVENT_VALUE_NOT_AT_ABOVE (ME_EVENT_TYPE_BASE+7)
00183
00184 #define ME_EVENT_COUNTER_RATE_EXCEEDED (ME_EVENT_TYPE_BASE+8)
00185
00186 #define ME_EVENT_SUBSYSTEM_CONFIGURATION_CHANGE (ME_EVENT_TYPE_BASE+9)
00187
00188 #define ME_EVENT_RESOURCE_CONFIGURATION_CHANGE (ME_EVENT_TYPE_BASE+10)
00189
00199
00200 #define ME_LOG_EMERG 0
00201
00202 #define ME_LOG_ALERT 1
00203
00204 #define ME_LOG_CRIT 2
00205
00206 #define ME_LOG_ERR 3
00207
00208 #define ME_LOG_WARNING 4
00209
00210 #define ME_LOG_NOTICE 5
00211
00212 #define ME_LOG_INFO 6
00213
00214 #define ME_LOG_DEBUG 7
00215
00216
00229 #define ME_ThresholdEventLogMessageFormat "%s\
00230 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00231 |Monitor_ID=%s|Subsystem_ID=%s\
00232 |Resource_ID=%u|Statistic_ID=%u\
00233 |Observed_Value=%u|Threshold_Value=%u|\n"
00234
00235 #define ME_ThresholdEventLogMessageFormatWithNames "%s\
00236 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00237 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00238 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00239 |Observed_Value=%u|Threshold_Value=%u|\n"
00240
00241 #define ME_ThresholdEventLogMessageSignedFormat "%s\
00242 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00243 |Monitor_ID=%s|Subsystem_ID=%s\
00244 |Resource_ID=%u|Statistic_ID=%u\
00245 |Observed_Value=%u|Threshold_Value=%u|\n"
00246
00247 #define ME_ThresholdEventLogMessageSignedFormatWithNames "%s\
00248 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00249 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00250 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00251 |Observed_Value=%d|Threshold_Value=%d|\n"
00252
00253 #define ME_ThresholdEventLogMessageFormat64 "%s\
00254 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00255 |Monitor_ID=%s|Subsystem_ID=%s\
00256 |Resource_ID=%u|Statistic_ID=%u\
00257 |Observed_Value=%llu|Threshold_Value=%llu|\n"
00258
00259 #define ME_ThresholdEventLogMessageFormat64WithNames "%s\
00260 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00261 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00262 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00263 |Observed_Value=%llu|Threshold_Value=%llu|\n"
00264
00265 #define ME_ThresholdEventLogMessageSignedFormat64 "%s\
00266 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00267 |Monitor_ID=%s|Subsystem_ID=%s\
00268 |Resource_ID=%u|Statistic_ID=%u\
00269 |Observed_Value=%lld|Threshold_Value=%lld|\n"
00270
00271 #define ME_ThresholdEventLogMessageSignedFormat64WithNames "%s\
00272 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00273 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00274 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00275 |Observed_Value=%lld|Threshold_Value=%lld|\n"
00276
00277 #define ME_LeakyBuckeEventLogMessageFormat "%s\
00278 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00279 |Monitor_ID=%s|Subsystem_ID=%s\
00280 |Resource_ID=%u|Statistic_ID=%u\
00281 |Bucket_Size=%u|Fill_Value=%u|Fill_Interval=%u seconds\
00282 |Bucket_Level(%u) <= Observed_Value(%u) - Last_Value(%u)|\n"
00283
00284 #define ME_LeakyBucketEventLogMessageFormatWithNames "%s\
00285 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00286 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00287 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00288 |Bucket_Size=%u|Fill_Value=%u|Fill_Interval=%u seconds\
00289 |Bucket_Level(%u) <= Observed_Value(%u) - Last_Value(%u)|\n"
00290
00291 #define ME_LeakyBuckeEventLogMessageSignedFormat "%s\
00292 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00293 |Monitor_ID=%s|Subsystem_ID=%s\
00294 |Resource_ID=%u|Statistic_ID=%u\
00295 |Bucket_Size=%u|Fill_Value=%u|Fill_Interval=%u seconds\
00296 |Bucket_Level(%u) <= Observed_Value(%u) - Last_Value(%u)|\n"
00297
00298 #define ME_LeakyBucketEventLogMessageSignedFormatWithNames "%s\
00299 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00300 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00301 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00302 |Bucket_Size=%d|Fill_Value=%d|Fill_Interval=%u seconds\
00303 |Bucket_Level(%d) <= Observed_Value(%d) - Last_Value(%d)|\n"
00304
00305 #define ME_LeakyBucketEventLogMessageFormat64 "%s\
00306 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00307 |Monitor_ID=%s|Subsystem_ID=%s\
00308 |Resource_ID=%u|Statistic_ID=%u\
00309 |Bucket_Size=%llu|Fill_Value=%llu|Fill_Interval=%u seconds\
00310 |Bucket_Level(%llu) <= Observed_Value(%llu) - Last_Value(%llu)|\n"
00311
00312 #define ME_LeakyBucketEventLogMessageFormat64WithNames "%s\
00313 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00314 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00315 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00316 |Bucket_Size=%llu|Fill_Value=%llu|Fill_Interval=%u seconds\
00317 |Bucket_Level(%llu) <= Observed_Value(%llu) - Last_Value(%llu)|\n"
00318
00319 #define ME_LeakyBucketEventLogMessageSignedFormat64 "%s\
00320 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00321 |Monitor_ID=%s|Subsystem_ID=%s\
00322 |Resource_ID=%u|Statistic_ID=%u\
00323 |Bucket_Size=%lld|Fill_Value=%lld|Fill_Interval=%u seconds\
00324 |Bucket_Level(%lld) <= Observed_Value(%lld) - Last_Value(%lld)|\n"
00325
00326 #define ME_LeakyBucketEventLogMessageSignedFormat64WithNames "%s\
00327 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00328 |Monitor_ID=%s|Subsystem_ID=%s|Subsystem_Name=%s\
00329 |Resource_ID=%u|Resource_Name=%s|Statistic_ID=%u|Statistic_Name=%s\
00330 |Bucket_Size=%lld|Fill_Value=%lld|Fill_Interval=%u seconds\
00331 |Bucket_Level(%lld) <= Observed_Value(%lld) - Last_Value(%lld)|\n"
00332
00333 #define ME_ResourceChangeEventLogMessageFormat "%s\
00334 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00335 |Subsystem_ID=%s|Resource_ID=%u\n"
00336
00337 #define ME_ResourceChangeLogMessageFormatWithNames "%s\
00338 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00339 |Subsystem_ID=%s|Subsystem_Name=%s\
00340 |Resource_ID=%u|Resource_Name=%s\n"
00341
00342 #define ME_RM_CancelEvent "Cancel threshold exception"
00343 #define ME_RM_ThresholdEvent "Threshold exception"
00344 #define ME_RM_LeakyBucketEvent "Leaky Bucket exception"
00345 #define ME_RM_SubsystemAdded "Subsystem Added"
00346 #define ME_RM_ResourceAdded "Resource Added"
00347 #define ME_RM_DataCaptureAdded "Data Capture Library Added"
00348 #define ME_RM_SubsystemRemoved "Subsystem Removed"
00349 #define ME_RM_ResourceRemoved "Resource Removed"
00350 #define ME_RM_DataCaptureRemoved "Data Capture Library Removed"
00351
00366 #define PL_ME_Facility LOG_LOCAL5
00367
00368
00369
00370
00371
00372
00373 #ifdef LOG_KERN
00374 #define ME_LOG_EMERG LOG_EMERG
00375 #define ME_LOG_ALERT LOG_ALERT
00376 #define ME_LOG_CRIT LOG_CRIT
00377 #define ME_LOG_ERR LOG_ERR
00378 #define ME_LOG_WARNING LOG_WARNING
00379 #define ME_LOG_NOTICE LOG_NOTICE
00380 #define ME_LOG_INFO LOG_INFO
00381 #define ME_LOG_DEBUG LOG_DEBUG
00382 #endif
00383
00384
00385
00386
00387
00388 #define CSM_UID_STRING "c581b242-600e-4444-8378-584e7a251f0c"
00389
00390
00391
00392
00393 #define RMGT_EVENT_TYPE_BASE 12500
00394 #define RMGT_SubsystemAdded (RMGT_EVENT_TYPE_BASE+0)
00395 #define RMGT_ResourceAdded (RMGT_EVENT_TYPE_BASE+1)
00396 #define RMGT_SubsystemRemoved (RMGT_EVENT_TYPE_BASE+2)
00397 #define RMGT_ResourceRemoved (RMGT_EVENT_TYPE_BASE+3)
00398
00399
00400
00401
00402
00403 #define CSM_SubsystemAdded "New Subsystem Registered"
00404 #define CSM_ResourceAdded "New Resource Registered"
00405 #define CSM_SubsystemRemoved "Subsystem Removed"
00406 #define CSM_ResourceRemoved "Resource Removed"
00407
00408 #define CSM_SubsystemChangeEventLogMessageFormat "%s\
00409 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00410 |Subsystem_ID=%s\
00411 |Management_Module_ID=c581b242-600e-4444-8378-584e7a251f0c\n"
00412
00413 #define CSM_SubsystemChangeLogMessageFormatWithNames "%s\
00414 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00415 |Subsystem_ID=%s|Subsystem_Name=%s\
00416 |Management_Module_ID=c581b242-600e-4444-8378-584e7a251f0c\
00417 |Management_Module_Name=Common Statistics Management Module\n"
00418
00419 #define CSM_ResourceChangeEventLogMessageFormat "%s\
00420 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00421 |Subsystem_ID=%s|Resource_ID=%s\
00422 |Management_Module_ID=c581b242-600e-4444-8378-584e7a251f0c\n"
00423
00424 #define CSM_ResourceChangeLogMessageFormatWithNames "%s\
00425 |facility_id=2f737514-1d1b-4edb-9cd4-adffc433d56e\
00426 |Subsystem_ID=%s|Subsystem_Name=%s\
00427 |Resource_ID=%s\
00428 |Management_Module_ID=c581b242-600e-4444-8378-584e7a251f0c\
00429 |Management_Module_Name=Common Statistics Management Module\n"
00430
00431
00432 #endif // __MonitoringEventSchema_h__