{"id":350,"date":"2023-03-31T15:38:09","date_gmt":"2023-03-31T13:38:09","guid":{"rendered":"https:\/\/whoami.lausitz-event.info\/?p=350"},"modified":"2023-05-31T08:19:15","modified_gmt":"2023-05-31T06:19:15","slug":"netbox-icinga-plugin","status":"publish","type":"post","link":"https:\/\/whoami.lausitz-event.info\/?p=350","title":{"rendered":"Netbox &#8211; Icinga Plugin"},"content":{"rendered":"\n\n<p>Um in Netbox unter den jeweiligen Devices den aktuellen Icinga Status anzeigen zu lassen muss das Icinga Plugin installiert werden. In den folgenden Schritten beschreibe ich die Installation und Konfiguration des Plugins.<\/p>\n\n\n\n\n\n<p><strong>Upload des <a href=\"https:\/\/whoami.lausitz-event.info\/wp-content\/uploads\/2023\/05\/netbox_icinga-0.0.19b5-py3-none-any.zip\">Plugins<\/a> nach \/opt\/netbox<\/strong><\/p>\n\n\n\n\n\n<p><strong>Installation<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/opt\/netbox\nunzip netbox_icinga-0.0.19b5-py3-none-any.whl.zip\npip3.8 install netbox_icinga-0.0.19b5-py3-none-any.whl <\/code><\/pre>\n\n\n\n\n\n<p><strong>Konfiguration eines Icinga2 Api User mit eingeschr\u00e4nkten Rechten<\/strong> \/etc\/icinga2\/conf.d\/api-users.conf<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>object ApiUser \"netbox\" {\n  password = \"netbox\"\n  #Client IP ist die IP von dem sich der API User zum Icinga2 Server verbinden darf\n  #Idealfall Icinga2 Server = Netbox Server\n  client_cn = \"192.168.XX.XX\"\n\n  permissions = &#91; \"status\/query\", \"objects\/query\/*\" ]\n}<\/code><\/pre>\n\n\n\n\n\n<p><strong>Netbox Konfiguration \/opt\/netbox\/netbox\/netbox\/configuration.py<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>PLUGINS = &#91;\n        \"netbox_icinga\",\n]\n#\n#\nPLUGINS_CONFIG = {\n    \"netbox_icinga\": {\n        \"icinga_base_url\" : \"netbox.domain.de\",\n        \"icinga_username\" : \"netbox\",\n        \"icinga_password\" : \"netbox\",\n    },\n}<\/code><\/pre>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Um in Netbox unter den jeweiligen Devices den aktuellen Icinga Status anzeigen zu lassen muss das Icinga Plugin installiert werden. In den folgenden Schritten beschreibe ich die Installation und Konfiguration des Plugins. Upload des Plugins nach \/opt\/netbox Installation Konfiguration eines Icinga2 Api User mit eingeschr\u00e4nkten Rechten \/etc\/icinga2\/conf.d\/api-users.conf Netbox Konfiguration \/opt\/netbox\/netbox\/netbox\/configuration.py<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[16],"tags":[],"class_list":["post-350","post","type-post","status-publish","format-standard","hentry","category-netbox"],"_links":{"self":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=350"}],"version-history":[{"count":4,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/350\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}