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 #5956] support modified attributes for custom attributes #1431

Closed
icinga-migration opened this issue Apr 7, 2014 · 4 comments
Closed
Labels
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Apr 7, 2014

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

Created by mfriedrich on 2014-04-07 12:11:01 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2014-04-16 15:54:52 +00:00)
Target Version: 0.0.10
Last Update: 2014-04-16 15:54:52 +00:00 (in Redmine)


Changesets

2014-04-15 17:10:26 +00:00 by (unknown) bbcf470

Implement CHANGE_CUSTOM_{}_VAR supporting modified attributes for vars.

Refs #5956

2014-04-16 13:32:45 +00:00 by (unknown) c51da54

Add modified attributes for vars dictionary.

- new external commands
- raw values for 'vars'
- OnVarsChanged() signal for db_ido customvariablestatus updates
- refactor db_ido customvariable config updates

Refs #5956
Refs #5962

2014-04-16 15:22:32 +00:00 by (unknown) cbd0fb5

Update documentation for external commands.

Refs #5956
Refs #5609

2014-04-16 15:48:33 +00:00 by (unknown) 3b40fb7

Fix custom var override.

Refs #5956
Refs #5962

2014-04-16 15:52:12 +00:00 by (unknown) 7c0d93e

Add modified attributes for vars dictionary.

- new external commands
- raw values for 'vars'
- OnVarsChanged() signal for db_ido customvariablestatus updates
- refactor db_ido customvariable config updates

Refs #5956
Refs #5962

2014-04-16 15:52:12 +00:00 by (unknown) 0c3d246

Update documentation for external commands.

Refs #5956
Refs #5609

2014-04-16 15:52:12 +00:00 by (unknown) 8cfce66

Fix custom var override.

Refs #5956
Refs #5962

2014-04-16 15:53:47 +00:00 by (unknown) d930b1e

Merge branch 'feature/cv-mod-attr-5956' into next

Fixes #5956
Fixes #5962
Fixes #5609

Relations:

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 15, 2014

Updated by mfriedrich on 2014-04-15 15:31:21 +00:00

nbmif ~ # echo "[`date +%s`] CHANGE_CUSTOM_HOST_VAR;macro-test;urlpath;override_custom_var_value" >> /var/run/icinga2/cmd/icinga2.cmd

[2014-04-15 17:26:08 +0200]  information/compat: Executing external command: [1397575568] CHANGE_CUSTOM_HOST_VAR;macro-test;urlpath;override_custom_var_value
[2014-04-15 17:26:08 +0200]  information/icinga: Changing custom var 'urlpath' for host 'macro-test' to value 'override_custom_var_value'

GET hosts 
Columns: custom_variable_names custom_variable_values custom_variables
ResponseHeader: fixed16

200         110
bumsti;schaschlik;bumsti|schaschlik
;;
urlpath;override_custom_var_value;urlpath|override_custom_var_value
;;

[2014-04-15 17:30:36 +0200]  information/compat: Executing external command: [1397575836] CHANGE_HOST_MODATTR;macro-test;0
[2014-04-15 17:30:36 +0200]  debug/db_ido: add external command history
[2014-04-15 17:30:36 +0200]  information/icinga: Updating modified attributes for host 'macro-test'

GET hosts 
Columns: custom_variable_names custom_variable_values custom_variables
ResponseHeader: fixed16

200         100
bumsti;schaschlik;bumsti|schaschlik
;;
urlpath;icinga2/notes/bumsti;urlpath|icinga2/notes/bumsti
;;
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 15, 2014

Updated by mfriedrich on 2014-04-15 16:01:40 +00:00

  • Classic UI (status.dat) cannot reflect changed custom variables and their values
  • Livestatus just takes the new Get value
  • DB IDO must receive an update to customvariablestatus tables
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 16, 2014

Updated by Anonymous on 2014-04-16 15:54:52 +00:00

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

Applied in changeset d930b1e.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Jul 2, 2015

Updated by mfriedrich on 2015-07-02 11:19:17 +00:00

  • Relates set to 9547
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.