Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
icinga-migration opened this issue Apr 22, 2013 · 10 comments
Closed
Labels
area/compat Deprecated features from 1.x enhancement New feature or request

Comments

@icinga-migration
Copy link

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) 147cd81

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

refs #3985
refs #2750

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

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
Copy link
Author

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

  • Target Version changed from 107 to Milestone 2

@icinga-migration
Copy link
Author

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

  • Target Version changed from Milestone 2 to Milestone 1.x Compat

@icinga-migration
Copy link
Author

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

  • Status changed from New to Assigned

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

  • HOST ALERT (DOWN, UNREACHABLE, RECOVERY, UP)
  • HOST NOTIFICATION
  • HOST EVENTHANDLER
  • HOST FLAPPING ALERT (STARTED, STOPPED, DISABLED)
  • HOST DOWNTIME ALERT (STARTED, STOPPED, CANCELLED)
  • SERVICE ALERT (CRITICAL, WARNING, UNKNOWN, RECOVERY, OK)
  • SERVICE NOTIFICATION
  • SERVICE EVENTHANDLER
  • SERVICE FLAPPING ALERT (STARTED, STOPPED, DISABLED)
  • SERVICE DOWNTIME ALERT (STARTED, STOPPED, CANCELLED)
  • EXTERNAL COMMAND
  • PASSIVE HOST CHECK
  • PASSIVE SERVICE CHECK
  • INITIAL HOST STATE
  • INITIAL SERVICE STATE
  • LOG ROTATION (/)

@icinga-migration
Copy link
Author

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

  • notification alert

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
Copy link
Author

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

  • Estimated Hours set to 8

@icinga-migration
Copy link
Author

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
Copy link
Author

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

  • Status changed from Assigned to 8

split into seperate issues.

@icinga-migration
Copy link
Author

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

  • Status changed from 8 to Resolved
  • Done % changed from 0 to 100

@icinga-migration
Copy link
Author

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

  • Project changed from Icinga 2 to 35

@icinga-migration
Copy link
Author

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

  • Project changed from 35 to Icinga 2
  • Category set to Compat

@icinga-migration icinga-migration added enhancement New feature or request area/compat Deprecated features from 1.x labels Jan 17, 2017
@icinga-migration icinga-migration added this to the Milestone 1.x Compat milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compat Deprecated features from 1.x enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant