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

Recreate Server Attributes Checks with Netbox #63

Open
trickeydan opened this issue Feb 7, 2020 · 3 comments
Open

Recreate Server Attributes Checks with Netbox #63

trickeydan opened this issue Feb 7, 2020 · 3 comments
Labels
data management Managing information/configuration about nodes, servers, users, etc. systems administration Administation of servers and the systems running on them

Comments

@trickeydan
Copy link

We should check that the server attributes match that in netbox

@TimStallard
Copy link
Member

Doing this from a netbox report would probably make sense. Random thought I just had - currently this is driven by a cron job that submits a bunch of info to auth2. One option might be to generate an SSH key on netbox, and configure it (via ansible) to run a check script as a forced command on all servers?

That way we could have the report collect data on-demand (using paramiko), without giving netbox any unnecessary access to servers.

@TimStallard TimStallard added data management Managing information/configuration about nodes, servers, users, etc. systems administration Administation of servers and the systems running on them labels Feb 20, 2020
@TimStallard
Copy link
Member

I've started some work on this in the server-attributes branch of the ansible repo.

It uses an SSH forced command to run a little script on each server (all deployed via ansible), netbox side is in /opt/netbox/netbox/reports/attributes.py on netbox.

Seeing as this gives netbox (hopefully very restricted) root access to servers, I'd appreciate a second look over this before deploying it everywhere. Just testing with --limit AUTH2,VMS-B53-1,DATA1,NETBOX,vault-b53-1 for now.

@drn05r
Copy link
Member

drn05r commented Feb 26, 2024

Tim has some code on an old Mac mini that Dan wrote a couple of years ago. He is looking into recovering it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data management Managing information/configuration about nodes, servers, users, etc. systems administration Administation of servers and the systems running on them
Projects
None yet
Development

No branches or pull requests

3 participants