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

[feature] Allow to flag devices as inactive #445

Open
nemesifier opened this issue Oct 10, 2022 · 0 comments
Open

[feature] Allow to flag devices as inactive #445

nemesifier opened this issue Oct 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@nemesifier
Copy link
Member

nemesifier commented Oct 10, 2022

Depends on openwisp/openwisp-controller#625.

We need to have a way to disable the monitoring checks on a device which is kept as inventory but not in use anymore.
We could add an admin action which allows to select the devices and flag them as inactive from the monitoring system's perspective.
We'd need a new status for this which would be similar to "unknown", unknown being the first status a device gets, while "inactive" would have to be manually set by admins. If a device gives any life sign it will automatically change status from inactive to ok.

It's almos as if we want to move a device back to "unknown" status, althogh unknown doesn't make sense here and it would be better to call this "inactive", "disabled" or something similar.

When flagging a device is inactive, we shall automatically flag its checks as is_active=False.
The periodic monitoring checks shall not be performed on inactive devices.

If the system detects any activity (collection of monitoring information, config checksum requests) on an inactive device it must enable the checks again (it will be better to perform these actions in a background celery task), this will allow an inactive device to become active again if needed.

This feature will have to be documented in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
OpenWISP Contributor's Board
  
To do (Python & Django)
Development

No branches or pull requests

1 participant