Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #3529] STATE_TYPE in grid template in other templates #1004

Closed
icinga-migration opened this issue Jan 11, 2013 · 15 comments
Closed

Comments

@icinga-migration
Copy link

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

Created by dmikulski on 2013-01-11 12:40:10 +00:00

Assignee: dmikulski
Status: Resolved (closed on 2013-10-16 14:45:11 +00:00)
Target Version: 1.10
Last Update: 2013-10-16 14:45:30 +00:00 (in Redmine)


I've tried to inherit the Service Type ID to icinga-open-problems-template.site.xml to filter only Hard States. This is how I tried this:

STATE\_TYPE true StateType

60

true false false false

I think I don't get it. When I cutomize the templates for custom external links followed the guide https://wiki.icinga.org/display/Dev/ExternalLinks it works.

Tell me how I can get the STATE_TYPE into the template, please.

Attachments

Changesets

2013-10-13 20:59:10 +00:00 by dmikulski d8b3fac

Added "State type" column to all host/service Cronks

The column provides the information if the given state
is in hard or soft state.

On non-problem Cronks the column is hidden by default.

Filtering should be available everywhere.

Minor additions by Markus Frosch.

refs #3529

Signed-off-by: Markus Frosch <markus@lazyfrosch.de>

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-01-11 13:02:02 +00:00

isn't that a question for the community channels like mailinglist, forum, or likewise?

@icinga-migration
Copy link
Author

Updated by dmikulski on 2013-01-11 13:57:57 +00:00

No problem for me to ask there first. Do you know which mailinglist I should take or which forum? Can you suggest something?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-01-11 14:13:22 +00:00

icinga.org/support

@icinga-migration
Copy link
Author

Updated by dmikulski on 2013-01-25 18:56:43 +00:00

  • File added sample.png
  • File added ColumnRenderer.js
  • File added host.xml
  • File added icinga.css
  • File added icinga-open-problems-operating.xml
  • File added StatusData.js

Hello again,

I think I've solved this issue due the good explaining guide from your development wiki.

First I've modified the view.xml to get my necessary values from the database for duration and the state_type. Then I modified the template for the cronk and added a new renderer and the styles required for it.
There is only the possibility to filter by state_types missing but I'm on this. I think this has to be done in the template to make it available in the "filter" or on the other side with a modification at the view.xml

Would you mind to add this kind of Cronk as feature for future releases?

Currently the cronk looks like this:
sample.png

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-04-08 22:04:36 +00:00

hm, i guess the revamped filtering in #3268 could get state type filtering as well, though i wouldn't change the open problems grid like the example shows - it's highly customized and eats up a lot of space.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-04-09 13:56:40 +00:00

  • Tracker changed from Support to Feature

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-04-12 09:53:57 +00:00

  • Target Version set to 1.10

Possible candidate for 1.10

First feature of this is #3896 - for the open problems

@icinga-migration
Copy link
Author

Updated by dmikulski on 2013-04-12 14:22:24 +00:00

From my point of view this ticket can be closed due to #3896, too.

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-04-12 14:49:41 +00:00

Hey shiftycent,
this ticket is for integrating the state type column in the various other templates :)

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-04-12 14:49:58 +00:00

  • Subject changed from STATE_TYPE in grid template to STATE_TYPE in grid template in other templates

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-09-09 13:20:02 +00:00

  • Category set to Interface Features
  • Status changed from New to Assigned
  • Assigned to set to dmikulski

Hey David,
I guess it would make sense to integrate this column into the unhandled Cronks.

Could you create and test this for 1.10?

Cheers
Markus

@icinga-migration
Copy link
Author

Updated by dmikulski on 2013-10-13 19:33:53 +00:00

  • File added 0090-Added-State-type-column-to-several-cronks-which-prov.patch

Hi,

patch in attach.

BR
David

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-10-13 21:01:19 +00:00

  • Status changed from Assigned to 8
  • Done % changed from 0 to 90

Pushed to next:

Added "State type" column to all host/service Cronks

The column provides the information if the given state
is in hard or soft state.

On non-problem Cronks the column is hidden by default.

Filtering should be available everywhere.

Minor additions by Markus Frosch.

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-10-16 14:45:11 +00:00

  • Status changed from 8 to Resolved

@icinga-migration
Copy link
Author

Updated by mfrosch on 2013-10-16 14:45:30 +00:00

  • Done % changed from 90 to 100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant