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

Fetch instance state (e.g. 'running'/'stopped') for EC2 instances. #18

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

pprkut
Copy link
Contributor

@pprkut pprkut commented Mar 19, 2018

This is a similar solution to the one in #12, but a little simpler and more flexible.
By just storing the state name the user has the choice on what to do with that information.
Using the 'Replace' property modifier to replace 'running' with 'false', and then using the
'MakeBoolean' property modifier to turn the values into booleans ('false' -> false and everything else to true),
the same behavior can be achieved as in #12.

@marek-obuchowicz
Copy link

Is there anything preventing this PR from being merged? We find it not good that the "terminated" instances are still fetched and considered "valid", we have to wait until they get deleted by AWS (happens after an hour or more). This makes monitoring of autoscaling groups or another dynamic environments not optimal. With this PR we could filter out instances in "Terminated" state from being imported.

@SMillerDev
Copy link

@Thomas-Gelf could you review this? Or even better... merge it?

@mxhash mxhash self-assigned this Aug 12, 2019
@mxhash mxhash merged commit 51993c5 into Icinga:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants