Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.01k stars 575 forks source link

[dev.icinga.com #3985] Figure out what's missing in the compat log #582

Closed icinga-migration closed 11 years ago

icinga-migration commented 11 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/3985

Created by gbeutner on 2013-04-22 12:43:06 +00:00

Assignee: mfriedrich Status: Resolved (closed on 2013-06-28 13:12:48 +00:00) Target Version: Milestone 1.x Compat Last Update: 2014-09-16 09:16:24 +00:00 (in Redmine)


Changesets

2013-06-28 11:40:01 +00:00 by (unknown) 147cd813285838fd1ae9c5d9aa3d64716005d820

add downtime message (started,stopped,cancelled) and compat logger

refs #3985
refs #2750

2013-06-28 19:31:38 +00:00 by (unknown) 3af0559b4ae26fc12dd32fb0b69ab8c85d1e1ed1

Compat: log notifications (wip)

- we need a way to figure out which last commend id (or, author and
  text) where set when type is CUSTOM or ACKNOWLEDGEMENT
- GetCheckCommandName was required too
- not sure if notifications.cpp is the correct location

refs #4361
refs #3985
refs #2750

Relations:

icinga-migration commented 11 years ago

Updated by gbeutner on 2013-05-14 08:00:23 +00:00

icinga-migration commented 11 years ago

Updated by gbeutner on 2013-05-14 08:08:16 +00:00

icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-06-21 15:55:00 +00:00

cgi/readlogs.c is a good starting point to see what the cgis need to work properly with compat reporting.

icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-06-26 18:12:15 +00:00

there's a bus message required once the notification command was executed in lib/icinga/notification.cpp - binding on that will allow compatlog to actually log the following format

[2013-06-26 19:40:22] SERVICE NOTIFICATION: testconfig-admin;1066localhost;cert[exp]: thomas-1.office.crt;CUSTOM (WARNING);true;sudo: no tty present and no askpass program specified;icingademo;dgdgd        

which is a custom notification format

[$TIMESTAMP] SERVICE NOTIFICATION: $USER;$HOST;$SERVICE;CUSTOM ($STATE);true;$OUTPUT;$AUTHOR;$COMMENT
icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-06-27 15:42:20 +00:00

icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-06-28 08:21:58 +00:00

EXTERNAL COMMAND

[2013-06-28 09:52:52] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;1228localhost-flexible;1228ORACLESTANDBY;1372405954;1372406374;1;0;3600;icingademo;fdsfdsfs

DOWNTIME START

[2013-06-28 09:52:52] SERVICE DOWNTIME ALERT: 1228localhost-flexible;1228ORACLESTANDBY;STARTED; Service has entered a period of scheduled downtime

DOWNTIME STOP

[2013-06-28 09:52:52] SERVICE DOWNTIME ALERT: 1228localhost-flexible;1228ORACLESTANDBY;STOPPED; Service has exited from a period of scheduled downtime

DOWNTIME CANCELLED

[2013-06-28 09:52:52] SERVICE DOWNTIME ALERT: 1228localhost-flexible;1228ORACLESTANDBY;CANCELLED; Scheduled downtime for service has been cancelled.

FLAPPING START

[2013-06-28 09:52:52] SERVICE FLAPPING ALERT: 1228localhost-flexible;1228ORACLESTANDBY;STARTED; Service appears to have started flapping (00.0% change >= 00.0% threshold)

FLAPPING STOP

[2013-06-28 09:52:52] SERVICE FLAPPING ALERT: 1228localhost-flexible;1228ORACLESTANDBY;STOPPED; Service appears to have stopped flapping (00.0% change < 00.1% threshold)

FLAPPING DISABLED

(history.cgi)

[2013-06-28 09:52:52] SERVICE FLAPPING ALERT: 1228localhost-flexible;1228ORACLESTANDBY;DISABLED; Flap detection has been disabled

EVENTHANDLER

(also GLOBAL SERVICE EVENT HANDLER)

[2013-06-28 09:52:52] SERVICE EVENT HANDLER: 1228localhost-flexible;1228ORACLESTANDBY;$STATE;$STATETYPE;$ATTEMPT;$EVENTHANDLERNAME

PASSIVE SERVICE CHECK

[2013-06-28 10:11:38] PASSIVE SERVICE CHECK: 1228localhost-flexible;1228ORACLESTANDBY;0;vsdvsd

SERVICE NOTIFICATION

$NOTIFICATIONTYPE = {CUSTOM, ACKNOWLEDGEMENT, FLAPPINGSTART, FLAPPINGSTOP, FLAPPINGDISABLED, DOWNTIMESTART, DOWNTIMEEND, DOWNTIMECANCELLED, null}

CUSTOM and ACKNOWLEDGEMENT add $AUTHOR and $COMMENT

[2013-06-28 10:14:10] SERVICE NOTIFICATION: $AUTHOR;$HOST;$SERVICE;$NOTIFICATIONTYPE ($STATE);$COMMANDNAME;$CROUTPUT;$AUTHOR;$COMMENT

rest is plain

[2013-06-28 10:14:10] SERVICE NOTIFICATION: $AUTHOR;$HOST;$SERVICE;$NOTIFICATIONTYPE ($STATE);$COMMANDNAME;$CROUTPUT
icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-06-28 13:12:38 +00:00

split into seperate issues.

icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-06-28 13:12:48 +00:00

icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-09-23 14:09:20 +00:00

icinga-migration commented 10 years ago

Updated by mfriedrich on 2014-09-16 09:16:24 +00:00