{% extends 'generic/_base.html' %} {% load helpers %} {% block title %}Link from Checkmk to NetBox: {{ object }}{% endblock %} {% block content %}
In Checkmk: Setup > General > Global settings > User interface > Custom icons and actions. Open in Checkmk
Add a new element:
| ID | netbox |
|---|---|
| Icon | any icon you like |
| Title | Open in NetBox |
| Action > URL | {{ action_url }} |
| Action > Open in | Load in a new window / tab |
| Show in column | on, if the icon should show directly next to the host |
The address of NetBox comes from netbox_url in the plugin settings, or else from
the address you opened this page with. It must be the address Checkmk users reach NetBox at.
$HOSTNAME_URL_ENCODED$ is filled in by Checkmk.
In Checkmk: Setup > Hosts > Host monitoring rules > Various > Custom icons or actions for hosts in status GUI. Open in Checkmk
| Value | the icon netbox from step 1 |
|---|---|
| Folder | /{{ object.prefix }} (the hosts of this instance) |
/{{ object.prefix }}; leave the folder
condition out or add a rule for their folders:
{% for p in outside_profiles %}{{ p|linkify }} ({{ p.folder_template }}){% if not forloop.last %}, {% endif %}{% endfor %}