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

🎨 adding an error state on host #165

Open
lvenier opened this issue Oct 30, 2024 · 0 comments
Open

🎨 adding an error state on host #165

lvenier opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@lvenier
Copy link
Collaborator

lvenier commented Oct 30, 2024

Netbox version Plugin Version Agent version Docker API Version
4.* 2.* 0.39.* *

Actual Behavior

When we add a Host the agent is sending back a "Running" State change to the host as soon as it has been contacted.
If the agent is not funtionnal as per issue SaaShup/netbox-docker-agent#142 this information is not sent back to the host

Desired Behavior

If the agent has no access to the docker unix socket I would return a "Error" state to the host to inform there is a problem.

CHOICES = [
(STATE_CREATED, "Created", "dark"),
(STATE_RUNNING, "Running", "blue"),
(STATE_ERROR, "Error", "red"),
(STATE_DELETED, "Deleted", "blue"),
(STATE_REFRESHING, "Refreshing", "blue"),
]

As a nice to have a journal entry could be added with a message to inform of the issue.

@lvenier lvenier added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 30, 2024
@lvenier lvenier changed the title adding an error state on host 🎨 adding an error state on host Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant