Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #2473] add modified attributes row to extinfo.cgi showing diffs to original config #921
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2473
Created by mfriedrich on 2012-03-28 16:20:23 +00:00
modified attributes are more prior (set via webgui) than the original config, so the core will use those and override settings from original config.
normally, you don't see that in the gui. you'll only see e.g. that notifications are disabled, then rush into the config, see that they are not, wonder why, look into retention.dat, see modified attributes.
a better way of doing this would be to actually show this within the classic ui itsself in extinfo.cgi
thruk already does that here - http://thruk.org/advanced.html
2012-04-23 17:43:23 +00:00 by mfriedrich 1538f2d
2012-04-24 06:59:49 +00:00 by mfriedrich 47b36d1
2012-04-24 14:55:59 +00:00 by ricardo b37cbf2
2012-04-24 21:56:46 +00:00 by ricardo 68c59b7
Updated by mfriedrich on 2012-03-28 16:52:27 +00:00
problem is that the cgis are not compiled with support to read that. requires a change in the statusdata structs the cgis require (breaks compatibility with other cores).
needs to be added to structs in onclude/statusdata.h
furthermore, xdata/xsddefault.c is required to read that information from status.dat as well. (writing already happens)
given that backend support, it should be easy to get the required information.
Updated by mfriedrich on 2012-04-23 14:37:43 +00:00
the difficult part is to parse the modified_attributes bitmask into a readable string, which is also possible so far. the rest is adaption of the cgi reading as outlined above.