Skip to content

[core] A framework approach to import historical devices that are offline #903

@jokob-sk

Description

@jokob-sk
          @KayJay7 Sorry, forgot to answer your question:

Question: the API offers historical information about devices and IPs that are not online at the moment, but were at one point.

I see no way to make use of this; as far as I understand, if we report offline devices they will appear as online, and the last seen field seems ignored. Is there a way to get that past data in the database?

There is the NEWDEV_dev_PresentLastScan setting in the New Devices plugin that looks related, but I'm not sure.

Currently, all devices passed thru the CurrentScan table will be reported as online. Although possible, I prefer not to write directly to the DB in the plugins to keep the flow and logic clean.

It's something on my radar to improve in future - to figure out the import of "offline" devices, without the need to go thru the CurrentScan table in a more scalable way - to be incorporated into the plugin framework. Happy to hear ideas as well.

Originally posted by @jokob-sk in #901 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions