Skip to content

NetBox: import, write-back and the wiring check

Import the devices NetBox documents, write back what Monitaria finds out about them, and compare NetBox's cables with what your switches show.

5 min read · For admins

Tip: The NetBox connection is part of the Standard edition. It's on during the 30-day evaluation.

NetBox says what should be there; Monitaria sees what is. The connection uses both: NetBox's devices become an import you tick through, Monitaria fills in what it finds out about them, and the wiring check lists every cable that doesn't look the way NetBox says.

  • Import never monitors anything on its own: it's the same checklist as Settings › Import, and nothing changes until you choose Import ticked.
  • Write-back is off until you turn it on, and every change is shown first. Nothing in NetBox is ever deleted.
  • Devices are created in NetBox only if you turn on Create devices NetBox doesn't have, which is off by default.
  • A read-only token is enough for the import and the wiring check.

1. Connect NetBox

  1. In NetBox, create an API token under your user's API Tokens. Leave Write enabled off unless you want write-back.
  2. Open Settings › NetBox. Enter the NetBox address, such as https://netbox.example.local, and paste the token.
  3. If only some devices should come across, enter a tag under Only devices with this tag. Active devices only leaves out planned and decommissioned ones.
  4. Tick Use this connection, choose Save, then Test connection.

2. Read NetBox and import

  1. Choose Read NetBox now. It only reads: sites, devices with their primary address, role, type, platform, serial number and tags, interfaces and cables.
  2. Under Import from NetBox, each device shows what it becomes in Monitaria and the checks its type usually needs: Ping for everything, Uptime for network gear and UPSes, the printer status for printers, CPU and memory for servers.
  3. A device Monitaria already monitors is recognised by serial number, MAC address, address or name, says how, and only gets checks it doesn't have yet. Run the import again whenever NetBox changes.
  4. Untick what you don't want and choose Import ticked.

3. Write back (optional)

  1. Under Write back to NetBox, tick Allow write-back and choose how model, firmware and the interfaces Monitaria sees are written: Journal entries (the default; nothing people typed is touched), Custom fields (create monitaria_model, monitaria_firmware, monitaria_interfaces and monitaria_status in NetBox first) or Comments (a block between [Monitaria] markers).
  2. Fill in empty serial numbers puts the serial into NetBox's own field only when it's empty. A different serial number there is listed and never changed.
  3. Note devices Monitaria can't reach adds one warning journal entry per outage.
  4. Choose Save, then Preview changes. Untick anything you don't want and choose Send the ticked changes. At most the number you set go at once, a few per second.

Written to NetBox lists every change with who sent it and NetBox's answer, and each batch is in the audit log.

4. Check the wiring

After each read, Wiring compares every NetBox cable with the links Monitaria sees from switches' LLDP/CDP neighbour tables and MAC address tables. Each cable is listed as Matches, Different port ("NetBox says Gi1/0/14 → AP-03; core-sw1 sees it on Gi1/0/16"), Documented, not seen, or Seen, not documented, with how Monitaria knows. Devices › Wiring shows the same list to everyone who can see the devices, and a device's details show its own cables.

  1. To check every day, tick Read NetBox and check the wiring every day at, pick the hour and choose Save.
  2. To get a problem when the wiring differs, tick Raise a problem when the wiring differs from NetBox. It adds one check, Wiring matches NetBox, which turns to warning with the first difference.

Security and limits

  • The token is write-only: stored on the collector only, never shown again or logged, and never sent to the hub. Disconnect removes it and changes nothing in NetBox.
  • The collector talks to NetBox directly on your network. Requests never go to link-local or cloud metadata addresses and redirects aren't followed.
  • Only cables between two interfaces are compared; front and rear ports, circuits and power aren't.
  • Ports are compared when Monitaria knows them: an LLDP/CDP neighbour or a switch port where a MAC address is learned.