Nagios Configuration? #148

Closed
opened 2025-12-29 15:35:21 +01:00 by adam · 1 comment
Owner

Originally created by @elJoeyJojo on GitHub (Jul 5, 2016).

Hello Everyone!

Great work with Netbox! I really like the interface! Now to my question, is there anyway that Nagios can work with Netbox? I already have all our devices monitoring with Nagios Core and all the devices are already defined with IPs and what not. Anything that can work with Nagios? Just a question.

Thanks

Originally created by @elJoeyJojo on GitHub (Jul 5, 2016). Hello Everyone! Great work with Netbox! I really like the interface! Now to my question, is there anyway that Nagios can work with Netbox? I already have all our devices monitoring with Nagios Core and all the devices are already defined with IPs and what not. Anything that can work with Nagios? Just a question. Thanks
adam closed this issue 2025-12-29 15:35:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 5, 2016):

You can define custom export templates in NetBox to generate configuration files for other applications using NetBox data. The documentation provides this example for Nagios:

{% for d in queryset %}{% if d.status and d.primary_ip %}define host{
        use                     generic-switch
        host_name               {{ d.name }}
        address                 {{ d.primary_ip.address.ip }}
}
{% endif %}{% endfor %}
@jeremystretch commented on GitHub (Jul 5, 2016): You can define custom export templates in NetBox to generate configuration files for other applications using NetBox data. The [documentation](https://github.com/digitalocean/netbox/blob/develop/docs/extras.md) provides this example for Nagios: ``` {% for d in queryset %}{% if d.status and d.primary_ip %}define host{ use generic-switch host_name {{ d.name }} address {{ d.primary_ip.address.ip }} } {% endif %}{% endfor %} ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#148