00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _IDO_PROTOAPI_H
00010 #define _IDO_PROTOAPI_H
00011
00012
00013
00014
00015 #define IDO_API_PROTOVERSION 2
00016
00017
00018
00019
00020 #define IDO_API_NONE ""
00021
00022 #define IDO_API_HELLO "HELLO"
00023 #define IDO_API_GOODBYE "GOODBYE"
00024
00025 #define IDO_API_PROTOCOL "PROTOCOL"
00026 #define IDO_API_AGENT "AGENT"
00027 #define IDO_API_AGENTVERSION "AGENTVERSION"
00028 #define IDO_API_DISPOSITION "DISPOSITION"
00029 #define IDO_API_CONNECTION "CONNECTION"
00030 #define IDO_API_CONNECTTYPE "CONNECTTYPE"
00031
00032 #define IDO_API_DISPOSITION_ARCHIVED "ARCHIVED"
00033 #define IDO_API_DISPOSITION_REALTIME "REALTIME"
00034 #define IDO_API_CONNECTION_FILE "FILE"
00035 #define IDO_API_CONNECTION_UNIXSOCKET "UNIXSOCKET"
00036 #define IDO_API_CONNECTION_TCPSOCKET "TCPSOCKET"
00037 #define IDO_API_CONNECTTYPE_INITIAL "INITIAL"
00038 #define IDO_API_CONNECTTYPE_RECONNECT "RECONNECT"
00039
00040 #define IDO_API_STARTDATADUMP "STARTDATADUMP"
00041 #define IDO_API_STARTTIME "STARTTIME"
00042 #define IDO_API_ENDTIME "ENDTIME"
00043
00044 #define IDO_API_CONFIGDUMP_ORIGINAL "ORIGINAL"
00045 #define IDO_API_CONFIGDUMP_RETAINED "RETAINED"
00046
00047 #define IDO_API_INSTANCENAME "INSTANCENAME"
00048
00049 #define IDO_API_STARTCONFIGDUMP 900
00050 #define IDO_API_ENDCONFIGDUMP 901
00051 #define IDO_API_ENDDATA 999
00052 #define IDO_API_ENDDATADUMP 1000
00053
00054
00055
00056
00057
00058 #define IDO_API_LOGENTRY 100
00059
00060 #define IDO_API_PROCESSDATA 200
00061 #define IDO_API_TIMEDEVENTDATA 201
00062 #define IDO_API_LOGDATA 202
00063 #define IDO_API_SYSTEMCOMMANDDATA 203
00064 #define IDO_API_EVENTHANDLERDATA 204
00065 #define IDO_API_NOTIFICATIONDATA 205
00066 #define IDO_API_SERVICECHECKDATA 206
00067 #define IDO_API_HOSTCHECKDATA 207
00068 #define IDO_API_COMMENTDATA 208
00069 #define IDO_API_DOWNTIMEDATA 209
00070 #define IDO_API_FLAPPINGDATA 210
00071 #define IDO_API_PROGRAMSTATUSDATA 211
00072 #define IDO_API_HOSTSTATUSDATA 212
00073 #define IDO_API_SERVICESTATUSDATA 213
00074 #define IDO_API_ADAPTIVEPROGRAMDATA 214
00075 #define IDO_API_ADAPTIVEHOSTDATA 215
00076 #define IDO_API_ADAPTIVESERVICEDATA 216
00077 #define IDO_API_EXTERNALCOMMANDDATA 217
00078 #define IDO_API_AGGREGATEDSTATUSDATA 218
00079 #define IDO_API_RETENTIONDATA 219
00080 #define IDO_API_CONTACTNOTIFICATIONDATA 220
00081 #define IDO_API_CONTACTNOTIFICATIONMETHODDATA 221
00082 #define IDO_API_ACKNOWLEDGEMENTDATA 222
00083 #define IDO_API_STATECHANGEDATA 223
00084 #define IDO_API_CONTACTSTATUSDATA 224
00085 #define IDO_API_ADAPTIVECONTACTDATA 225
00086
00087 #define IDO_API_MAINCONFIGFILEVARIABLES 300
00088 #define IDO_API_RESOURCECONFIGFILEVARIABLES 301
00089 #define IDO_API_CONFIGVARIABLES 302
00090 #define IDO_API_RUNTIMEVARIABLES 303
00091
00092 #define IDO_API_HOSTDEFINITION 400
00093 #define IDO_API_HOSTGROUPDEFINITION 401
00094 #define IDO_API_SERVICEDEFINITION 402
00095 #define IDO_API_SERVICEGROUPDEFINITION 403
00096 #define IDO_API_HOSTDEPENDENCYDEFINITION 404
00097 #define IDO_API_SERVICEDEPENDENCYDEFINITION 405
00098 #define IDO_API_HOSTESCALATIONDEFINITION 406
00099 #define IDO_API_SERVICEESCALATIONDEFINITION 407
00100 #define IDO_API_COMMANDDEFINITION 408
00101 #define IDO_API_TIMEPERIODDEFINITION 409
00102 #define IDO_API_CONTACTDEFINITION 410
00103 #define IDO_API_CONTACTGROUPDEFINITION 411
00104 #define IDO_API_HOSTEXTINFODEFINITION 412
00105 #define IDO_API_SERVICEEXTINFODEFINITION 413
00106
00107
00108
00109
00110 #define IDO_MAX_DATA_TYPES 267
00111
00112 #define IDO_DATA_NONE 0
00113
00114 #define IDO_DATA_TYPE 1
00115 #define IDO_DATA_FLAGS 2
00116 #define IDO_DATA_ATTRIBUTES 3
00117 #define IDO_DATA_TIMESTAMP 4
00118
00119
00120
00121
00122 #define IDO_DATA_ACKAUTHOR 5
00123 #define IDO_DATA_ACKDATA 6
00124 #define IDO_DATA_ACKNOWLEDGEMENTTYPE 7
00125 #define IDO_DATA_ACTIVEHOSTCHECKSENABLED 8
00126 #define IDO_DATA_ACTIVESERVICECHECKSENABLED 9
00127 #define IDO_DATA_AUTHORNAME 10
00128 #define IDO_DATA_CHECKCOMMAND 11
00129 #define IDO_DATA_CHECKTYPE 12
00130 #define IDO_DATA_COMMANDARGS 13
00131 #define IDO_DATA_COMMANDLINE 14
00132 #define IDO_DATA_COMMANDSTRING 15
00133 #define IDO_DATA_COMMANDTYPE 16
00134 #define IDO_DATA_COMMENT 17
00135 #define IDO_DATA_COMMENTID 18
00136 #define IDO_DATA_COMMENTTIME 19
00137 #define IDO_DATA_COMMENTTYPE 20
00138 #define IDO_DATA_CONFIGFILENAME 21
00139 #define IDO_DATA_CONFIGFILEVARIABLE 22
00140 #define IDO_DATA_CONFIGVARIABLE 23
00141 #define IDO_DATA_CONTACTSNOTIFIED 24
00142 #define IDO_DATA_CURRENTCHECKATTEMPT 25
00143 #define IDO_DATA_CURRENTNOTIFICATIONNUMBER 26
00144 #define IDO_DATA_CURRENTSTATE 27
00145 #define IDO_DATA_DAEMONMODE 28
00146 #define IDO_DATA_DOWNTIMEID 29
00147 #define IDO_DATA_DOWNTIMETYPE 30
00148 #define IDO_DATA_DURATION 31
00149 #define IDO_DATA_EARLYTIMEOUT 32
00150 #define IDO_DATA_ENDTIME 33
00151 #define IDO_DATA_ENTRYTIME 34
00152 #define IDO_DATA_ENTRYTYPE 35
00153 #define IDO_DATA_ESCALATED 36
00154 #define IDO_DATA_EVENTHANDLER 37
00155 #define IDO_DATA_EVENTHANDLERENABLED 38
00156 #define IDO_DATA_EVENTHANDLERSENABLED 39
00157 #define IDO_DATA_EVENTHANDLERTYPE 40
00158 #define IDO_DATA_EVENTTYPE 41
00159 #define IDO_DATA_EXECUTIONTIME 42
00160 #define IDO_DATA_EXPIRATIONTIME 43
00161 #define IDO_DATA_EXPIRES 44
00162 #define IDO_DATA_FAILUREPREDICTIONENABLED 45
00163 #define IDO_DATA_FIXED 46
00164 #define IDO_DATA_FLAPDETECTIONENABLED 47
00165 #define IDO_DATA_FLAPPINGTYPE 48
00166 #define IDO_DATA_GLOBALHOSTEVENTHANDLER 49
00167 #define IDO_DATA_GLOBALSERVICEEVENTHANDLER 50
00168 #define IDO_DATA_HASBEENCHECKED 51
00169 #define IDO_DATA_HIGHTHRESHOLD 52
00170 #define IDO_DATA_HOST 53
00171 #define IDO_DATA_ISFLAPPING 54
00172 #define IDO_DATA_LASTCOMMANDCHECK 55
00173 #define IDO_DATA_LASTHARDSTATE 56
00174 #define IDO_DATA_LASTHARDSTATECHANGE 57
00175 #define IDO_DATA_LASTHOSTCHECK 58
00176 #define IDO_DATA_LASTHOSTNOTIFICATION 59
00177 #define IDO_DATA_LASTLOGROTATION 60
00178 #define IDO_DATA_LASTSERVICECHECK 61
00179 #define IDO_DATA_LASTSERVICENOTIFICATION 62
00180 #define IDO_DATA_LASTSTATECHANGE 63
00181 #define IDO_DATA_LASTTIMECRITICAL 64
00182 #define IDO_DATA_LASTTIMEDOWN 65
00183 #define IDO_DATA_LASTTIMEOK 66
00184 #define IDO_DATA_LASTTIMEUNKNOWN 67
00185 #define IDO_DATA_LASTTIMEUNREACHABLE 68
00186 #define IDO_DATA_LASTTIMEUP 69
00187 #define IDO_DATA_LASTTIMEWARNING 70
00188 #define IDO_DATA_LATENCY 71
00189 #define IDO_DATA_LOGENTRY 72
00190 #define IDO_DATA_LOGENTRYTIME 73
00191 #define IDO_DATA_LOGENTRYTYPE 74
00192 #define IDO_DATA_LOWTHRESHOLD 75
00193 #define IDO_DATA_MAXCHECKATTEMPTS 76
00194 #define IDO_DATA_MODIFIEDHOSTATTRIBUTE 77
00195 #define IDO_DATA_MODIFIEDHOSTATTRIBUTES 78
00196 #define IDO_DATA_MODIFIEDSERVICEATTRIBUTE 79
00197 #define IDO_DATA_MODIFIEDSERVICEATTRIBUTES 80
00198 #define IDO_DATA_NEXTHOSTCHECK 81
00199 #define IDO_DATA_NEXTHOSTNOTIFICATION 82
00200 #define IDO_DATA_NEXTSERVICECHECK 83
00201 #define IDO_DATA_NEXTSERVICENOTIFICATION 84
00202 #define IDO_DATA_NOMORENOTIFICATIONS 85
00203 #define IDO_DATA_NORMALCHECKINTERVAL 86
00204 #define IDO_DATA_NOTIFICATIONREASON 87
00205 #define IDO_DATA_NOTIFICATIONSENABLED 88
00206 #define IDO_DATA_NOTIFICATIONTYPE 89
00207 #define IDO_DATA_NOTIFYCONTACTS 90
00208 #define IDO_DATA_OBSESSOVERHOST 91
00209 #define IDO_DATA_OBSESSOVERHOSTS 92
00210 #define IDO_DATA_OBSESSOVERSERVICE 93
00211 #define IDO_DATA_OBSESSOVERSERVICES 94
00212 #define IDO_DATA_OUTPUT 95
00213 #define IDO_DATA_PASSIVEHOSTCHECKSENABLED 96
00214 #define IDO_DATA_PASSIVESERVICECHECKSENABLED 97
00215 #define IDO_DATA_PERCENTSTATECHANGE 98
00216 #define IDO_DATA_PERFDATA 99
00217 #define IDO_DATA_PERSISTENT 100
00218 #define IDO_DATA_PROBLEMHASBEENACKNOWLEDGED 101
00219 #define IDO_DATA_PROCESSID 102
00220 #define IDO_DATA_PROCESSPERFORMANCEDATA 103
00221 #define IDO_DATA_PROGRAMDATE 104
00222 #define IDO_DATA_PROGRAMNAME 105
00223 #define IDO_DATA_PROGRAMSTARTTIME 106
00224 #define IDO_DATA_PROGRAMVERSION 107
00225 #define IDO_DATA_RECURRING 108
00226 #define IDO_DATA_RETRYCHECKINTERVAL 109
00227 #define IDO_DATA_RETURNCODE 110
00228 #define IDO_DATA_RUNTIME 111
00229 #define IDO_DATA_RUNTIMEVARIABLE 112
00230 #define IDO_DATA_SCHEDULEDDOWNTIMEDEPTH 113
00231 #define IDO_DATA_SERVICE 114
00232 #define IDO_DATA_SHOULDBESCHEDULED 115
00233 #define IDO_DATA_SOURCE 116
00234 #define IDO_DATA_STARTTIME 117
00235 #define IDO_DATA_STATE 118
00236 #define IDO_DATA_STATECHANGE 119
00237 #define IDO_DATA_STATECHANGETYPE 120
00238 #define IDO_DATA_STATETYPE 121
00239 #define IDO_DATA_STICKY 122
00240 #define IDO_DATA_TIMEOUT 123
00241 #define IDO_DATA_TRIGGEREDBY 124
00242 #define IDO_DATA_LONGOUTPUT 125
00243
00244
00245
00246 #define IDO_DATA_ACTIONURL 126
00247 #define IDO_DATA_COMMANDNAME 127
00248 #define IDO_DATA_CONTACTADDRESS 128
00249 #define IDO_DATA_CONTACTALIAS 129
00250 #define IDO_DATA_CONTACTGROUP 130
00251 #define IDO_DATA_CONTACTGROUPALIAS 131
00252 #define IDO_DATA_CONTACTGROUPMEMBER 132
00253 #define IDO_DATA_CONTACTGROUPNAME 133
00254 #define IDO_DATA_CONTACTNAME 134
00255 #define IDO_DATA_DEPENDENCYTYPE 135
00256 #define IDO_DATA_DEPENDENTHOSTNAME 136
00257 #define IDO_DATA_DEPENDENTSERVICEDESCRIPTION 137
00258 #define IDO_DATA_EMAILADDRESS 138
00259 #define IDO_DATA_ESCALATEONCRITICAL 139
00260 #define IDO_DATA_ESCALATEOIDOWN 140
00261 #define IDO_DATA_ESCALATEONRECOVERY 141
00262 #define IDO_DATA_ESCALATEONUNKNOWN 142
00263 #define IDO_DATA_ESCALATEONUNREACHABLE 143
00264 #define IDO_DATA_ESCALATEONWARNING 144
00265 #define IDO_DATA_ESCALATIONPERIOD 145
00266 #define IDO_DATA_FAILONCRITICAL 146
00267 #define IDO_DATA_FAILOIDOWN 147
00268 #define IDO_DATA_FAILONOK 148
00269 #define IDO_DATA_FAILONUNKNOWN 149
00270 #define IDO_DATA_FAILONUNREACHABLE 150
00271 #define IDO_DATA_FAILONUP 151
00272 #define IDO_DATA_FAILONWARNING 152
00273 #define IDO_DATA_FIRSTNOTIFICATION 153
00274 #define IDO_DATA_HAVE2DCOORDS 154
00275 #define IDO_DATA_HAVE3DCOORDS 155
00276 #define IDO_DATA_HIGHHOSTFLAPTHRESHOLD 156
00277 #define IDO_DATA_HIGHSERVICEFLAPTHRESHOLD 157
00278 #define IDO_DATA_HOSTADDRESS 158
00279 #define IDO_DATA_HOSTALIAS 159
00280 #define IDO_DATA_HOSTCHECKCOMMAND 160
00281 #define IDO_DATA_HOSTCHECKINTERVAL 161
00282 #define IDO_DATA_HOSTCHECKPERIOD 162
00283 #define IDO_DATA_HOSTEVENTHANDLER 163
00284 #define IDO_DATA_HOSTEVENTHANDLERENABLED 164
00285 #define IDO_DATA_HOSTFAILUREPREDICTIONENABLED 165
00286 #define IDO_DATA_HOSTFAILUREPREDICTIONOPTIONS 166
00287 #define IDO_DATA_HOSTFLAPDETECTIONENABLED 167
00288 #define IDO_DATA_HOSTFRESHNESSCHECKSENABLED 168
00289 #define IDO_DATA_HOSTFRESHNESSTHRESHOLD 169
00290 #define IDO_DATA_HOSTGROUPALIAS 170
00291 #define IDO_DATA_HOSTGROUPMEMBER 171
00292 #define IDO_DATA_HOSTGROUPNAME 172
00293 #define IDO_DATA_HOSTMAXCHECKATTEMPTS 173
00294 #define IDO_DATA_HOSTNAME 174
00295 #define IDO_DATA_HOSTNOTIFICATIONCOMMAND 175
00296 #define IDO_DATA_HOSTNOTIFICATIONINTERVAL 176
00297 #define IDO_DATA_HOSTNOTIFICATIONPERIOD 177
00298 #define IDO_DATA_HOSTNOTIFICATIONSENABLED 178
00299 #define IDO_DATA_ICONIMAGE 179
00300 #define IDO_DATA_ICONIMAGEALT 180
00301 #define IDO_DATA_INHERITSPARENT 181
00302 #define IDO_DATA_LASTNOTIFICATION 182
00303 #define IDO_DATA_LOWHOSTFLAPTHRESHOLD 183
00304 #define IDO_DATA_LOWSERVICEFLAPTHRESHOLD 184
00305 #define IDO_DATA_MAXSERVICECHECKATTEMPTS 185
00306 #define IDO_DATA_NOTES 186
00307 #define IDO_DATA_NOTESURL 187
00308 #define IDO_DATA_NOTIFICATIONINTERVAL 188
00309 #define IDO_DATA_NOTIFYHOSTDOWN 189
00310 #define IDO_DATA_NOTIFYHOSTFLAPPING 190
00311 #define IDO_DATA_NOTIFYHOSTRECOVERY 191
00312 #define IDO_DATA_NOTIFYHOSTUNREACHABLE 192
00313 #define IDO_DATA_NOTIFYSERVICECRITICAL 193
00314 #define IDO_DATA_NOTIFYSERVICEFLAPPING 194
00315 #define IDO_DATA_NOTIFYSERVICERECOVERY 195
00316 #define IDO_DATA_NOTIFYSERVICEUNKNOWN 196
00317 #define IDO_DATA_NOTIFYSERVICEWARNING 197
00318 #define IDO_DATA_PAGERADDRESS 198
00319 #define IDO_DATA_PARALLELIZESERVICECHECK 199
00320 #define IDO_DATA_PARENTHOST 200
00321 #define IDO_DATA_PROCESSHOSTPERFORMANCEDATA 201
00322 #define IDO_DATA_PROCESSSERVICEPERFORMANCEDATA 202
00323 #define IDO_DATA_RETAINHOSTNONSTATUSINFORMATION 203
00324 #define IDO_DATA_RETAINHOSTSTATUSINFORMATION 204
00325 #define IDO_DATA_RETAINSERVICENONSTATUSINFORMATION 205
00326 #define IDO_DATA_RETAINSERVICESTATUSINFORMATION 206
00327 #define IDO_DATA_SERVICECHECKCOMMAND 207
00328 #define IDO_DATA_SERVICECHECKINTERVAL 208
00329 #define IDO_DATA_SERVICECHECKPERIOD 209
00330 #define IDO_DATA_SERVICEDESCRIPTION 210
00331 #define IDO_DATA_SERVICEEVENTHANDLER 211
00332 #define IDO_DATA_SERVICEEVENTHANDLERENABLED 212
00333 #define IDO_DATA_SERVICEFAILUREPREDICTIONENABLED 213
00334 #define IDO_DATA_SERVICEFAILUREPREDICTIONOPTIONS 214
00335 #define IDO_DATA_SERVICEFLAPDETECTIONENABLED 215
00336 #define IDO_DATA_SERVICEFRESHNESSCHECKSENABLED 216
00337 #define IDO_DATA_SERVICEFRESHNESSTHRESHOLD 217
00338 #define IDO_DATA_SERVICEGROUPALIAS 218
00339 #define IDO_DATA_SERVICEGROUPMEMBER 219
00340 #define IDO_DATA_SERVICEGROUPNAME 220
00341 #define IDO_DATA_SERVICEISVOLATILE 221
00342 #define IDO_DATA_SERVICENOTIFICATIONCOMMAND 222
00343 #define IDO_DATA_SERVICENOTIFICATIONINTERVAL 223
00344 #define IDO_DATA_SERVICENOTIFICATIONPERIOD 224
00345 #define IDO_DATA_SERVICENOTIFICATIONSENABLED 225
00346 #define IDO_DATA_SERVICERETRYINTERVAL 226
00347 #define IDO_DATA_SHOULDBEDRAWN 227
00348 #define IDO_DATA_STALKHOSTOIDOWN 228
00349 #define IDO_DATA_STALKHOSTONUNREACHABLE 229
00350 #define IDO_DATA_STALKHOSTONUP 230
00351 #define IDO_DATA_STALKSERVICEONCRITICAL 231
00352 #define IDO_DATA_STALKSERVICEONOK 232
00353 #define IDO_DATA_STALKSERVICEONUNKNOWN 233
00354 #define IDO_DATA_STALKSERVICEONWARNING 234
00355 #define IDO_DATA_STATUSMAPIMAGE 235
00356 #define IDO_DATA_TIMEPERIODALIAS 236
00357 #define IDO_DATA_TIMEPERIODNAME 237
00358 #define IDO_DATA_TIMERANGE 238
00359 #define IDO_DATA_VRMLIMAGE 239
00360 #define IDO_DATA_X2D 240
00361 #define IDO_DATA_X3D 241
00362 #define IDO_DATA_Y2D 242
00363 #define IDO_DATA_Y3D 243
00364 #define IDO_DATA_Z3D 244
00365
00366 #define IDO_DATA_CONFIGDUMPTYPE 245
00367
00368 #define IDO_DATA_FIRSTNOTIFICATIONDELAY 246
00369 #define IDO_DATA_HOSTRETRYINTERVAL 247
00370 #define IDO_DATA_NOTIFYHOSTDOWNTIME 248
00371 #define IDO_DATA_NOTIFYSERVICEDOWNTIME 249
00372 #define IDO_DATA_CANSUBMITCOMMANDS 250
00373 #define IDO_DATA_FLAPDETECTIONONUP 251
00374 #define IDO_DATA_FLAPDETECTIONOIDOWN 252
00375 #define IDO_DATA_FLAPDETECTIONONUNREACHABLE 253
00376 #define IDO_DATA_FLAPDETECTIONONOK 254
00377 #define IDO_DATA_FLAPDETECTIONONWARNING 255
00378 #define IDO_DATA_FLAPDETECTIONONUNKNOWN 256
00379 #define IDO_DATA_FLAPDETECTIONONCRITICAL 257
00380 #define IDO_DATA_DISPLAYNAME 258
00381 #define IDO_DATA_DEPENDENCYPERIOD 259
00382 #define IDO_DATA_MODIFIEDCONTACTATTRIBUTE 260
00383 #define IDO_DATA_MODIFIEDCONTACTATTRIBUTES 261
00384 #define IDO_DATA_CUSTOMVARIABLE 262
00385 #define IDO_DATA_HASBEENMODIFIED 263
00386 #define IDO_DATA_CONTACT 264
00387 #define IDO_DATA_LASTSTATE 265
00388
00389 #define IDO_DATA_HOSTADDRESS6 266
00390 #endif