NetBox status and configuration update from external system #9357
chaijunkin
started this conversation in
General
Replies: 1 comment 1 reply
-
Question 0: if you aren't using the data in Netbox to push config why have it populated at all? Source of Truth or Source of Intent means that the data you store in Netbox documents what the configuration should be that other config management tools like Ansible can use to effect configs.
I too have much data in Netbox that isn't a source of truth but is status information which is pulled from managed devices as Netbox can be a good place to aggregate, display and present that information to other systems. In that case having an Ansible cron job that periodically audits and refreshes state into Netbox that Netbox isn't the authoritative source for seems fine, or a custom utility that runs over the API. If having this data out of sync for a short time between when a change is made by and admin and when the Ansible audit cron job runs is a problem, then maybe there is more questions about why, but only then would it make sense to invest time in other more complex systems to update the data faster.
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: chaijunkin ***@***.***>
Sent: Friday, May 13, 2022 6:48 AM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [netbox-community/netbox] NetBox status and configuration update from external system (Discussion #9357)
Can I ask if I have a proxmox cluster (hypervisor) inventory in NetBox, it contains all the virtual machine. If a virtual machine shutdown gracefully or RAM is changed, how to update netbox virtual machine data in real time?
Assuming the hypervisor, device and virtual machine platform has no webhook or the virtual machine is shutdown in the guest. How do you all update the netbox to represent the “Source of Truth”? I attempt to figure out some alternatives but the solution seem didn’t change the root problem.
Solution 1: cron job on ansible to get ALL data from proxmox api and update in netbox (will this be dumb because it consumed ansible resource)
Solution 2: cron job on hypervisor + virtual machine, push event-based value to a webhook system to update netbox
Solution 3: Is this should be done on the monitoring system, what if the monitoring system agent is stopped?
Solution 4: ???
Feel free to discuss ;( Idea is appreciated.
—
Reply to this email directly, view it on GitHub<#9357>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM5W2LDI3TJL3I45R53VJY6QDANCNFSM5V3ERX7Q>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can I ask if I have a proxmox cluster (hypervisor) inventory in NetBox, it contains all the virtual machine. If a virtual machine shutdown gracefully or RAM is changed, how to update netbox virtual machine data in real time?
Assuming the hypervisor, device and virtual machine platform has no webhook or the virtual machine is shutdown in the guest. How do you all update the netbox to represent the “Source of Truth”? I attempt to figure out some alternatives but the solution seem didn’t change the root problem.
Solution 1: cron job on ansible to get ALL data from proxmox api and update in netbox (will this be dumb because it consumed ansible resource)
Solution 2: cron job on hypervisor + virtual machine, push event-based value to a webhook system to update netbox
Solution 3: Is this should be done on the monitoring system, what if the monitoring system agent is stopped?
Solution 4: ???
Feel free to discuss ;( Idea is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions