You know what? The http 500 errors were not the fault of the provider but the Icinga API responses. When you delete a host group that you don't have permission to delete, the status is not 403 as it should be but 404 No objects found. What's the point of deleting a missing object? There is no way to know if you have permission or not. This "security" feature is so annoying. If you create the resource again, you have a 500 error without error message because the object already exists. I'm going to patch my fork to handle those use cases.

#icinga

Even if the project seems dead, I have created the pull requests anyway:

- https://github.com/lrsmith/go-icinga2-api/pull/19
- https://github.com/lrsmith/go-icinga2-api/pull/20

If there is any Icinga maintainer that would like to fork this library to make it official, I would love to contribute to this fork 🙏

#icinga #go

feat: Add zone attribute to hosts by jouir · Pull Request #19 · lrsmith/go-icinga2-api

Contribute to lrsmith/go-icinga2-api development by creating an account on GitHub.

GitHub

It's the other way around. The one from openHPI is not maintained while the official is. But the official misses the "zone" attribute to create hosts. And there is no downtime. So I have created and published a fork https://registry.terraform.io/providers/jouir/icinga2/latest/docs

I knew I needed to create my own version to fix the issues we had in the past but I didn't remember the details.

After a whole day of switching thousands of servers to my new provider, the issues came to life. When the API times out, the plan fails but the host is created. At the second run, Terraform tries to create the host because it doesn't exist in the state but Icinga returns a 500 Internal Server Error because the host already exists. The solution is to remove the host from Icinga then apply again.

I will not do this for the last 52 plans in error with more or less 100 servers. No. I don't know if it's idiomatic to Terraform but I don't care, I will run a GET before creation and create only if it doesn't exist. Same for deletion. This will ease the life of our team having to deal with the flacky API at some point.

I will contribute back to the upstream project of course. If it's refused, no worries, I'll keep my own version.

#icinga #terraform

Terraform Registry

I have finally managed to develop a Terraform provider locally to add a feature we miss for a long time on Icinga.

Unfortunately, the Icinga provider doesn't seem to be maintained so I'll patch the one we use, from openHPI, and hope it'll get merged. If not, we'll probably create another fork.

- https://github.com/Icinga/terraform-provider-icinga2/
- https://github.com/openHPI/terraform-provider-icinga2

#terraform #icinga

GitHub - Icinga/terraform-provider-icinga2: Terraform Icinga2 provider

Terraform Icinga2 provider. Contribute to Icinga/terraform-provider-icinga2 development by creating an account on GitHub.

GitHub
#Nagstamon got two new releases to #fix small #bugs users found in 3.18.0 - so there is the new 3.18.2 out now. 👉️ https://nagstamon.de/download #monitoring #checkmk #centreon #zabbix #icinga #nagios #linux #windows #macos
Download

Nagstamon status monitor for the desktop.

Nagstamon
Hooray - more than 1 year since the last #stable #release the new version 3.18.0 is out now! 🥳 🍻 Coming with web login, #LibreNMS support and more improvements and fixes. 📰 https://nagstamon.de/nagstamon-3-18-0-released Get it at https://nagstamon.de/download #checkmk #centreon #nagios #zabbix #icinga #monitoring #relax

@homelab_de

Dieses Wochenende stand die Einrichtung von Grafana, InfluxDB3 und Telegraf im Homelab an.

Grafana und InfluxDB3 als Container, Telegraf nativ.

Hintergrund ist die Entscheidung von Icinga nur gegen einen Obulus von 5000€ pro Jahr Zugriff auf deren RPM-Pakete für RockyLinux, RHEL, etc zu gewähren.

Bis jetzt habe ich beruflich immer Nagios Monitoring Tools eingesetzt.
Jetzt möchte ich Grafana vom Beiwerk für schöne Visualisierungen in Icinga zum voll ausgebauten Monitoring Tool befördern und später auch die Alarmierung testen.

Demnächst installiere ich noch Elasticsearch, Kibana und die Beats bzw. den Elastic-Agent um Daten zu erfassen und erstelle aus der Datenquelle weitere Panels und Dashboards.

#observability #monitoring #homelab #linux #influxdb #docker #icinga

In @icinga you can use Service Apply rules to automatically deploy multiple Service checks.

In most cases this is done using custom variables. But #Icinga also supports functions in advanced Apply rules.

At Infiniroot we used this for a practical use case to ensure #monitoring of connectivity to Zones (and their endpoints).

https://www.infiniroot.com/blog/1521/using-function-service-apply-rule-monitor-icinga2-zones-connectivity

Using functions in Service Apply rule to monitor Icinga 2 zones connectivity

Infiniroot provides managed dedicated Linux servers, virtual infrastructure solutions and consulting in open source systems

Hey #Openstreetmap people. Is there a simple way to check the correct function of a slippymap e.g. using #python and #selenium with tools like #icinga or #checkmk?

Diese Woche geht's bei @ajfriesen und mir um Monitoring im Smart Home und dem Homelab. Welche Arten von Monitoring gibt es? Wieso ist das wichtig? Welcher Ansatz eignet sich fürs Smart Home? Darüber hinaus berichtet Andrej über seine Migration von Fritz zu UniFi für WLAN, LAN und Router.

Im Podcatcher eurer Wahl oder hier: https://podcast.smarthuette.de/episodes/grune-balken-machen-glucklich-monitoring-im-smart-home

Viel Spaß beim Hören!

#homeassistant #homelab #unifi #monitoring #uptime_kuma #zabbix #prometheus #nagios #icinga #grafana #linux #docker #traefik

SmartHütte | Grüne Balken machen glücklich - Monitoring im Smart Home

Diese Woche im Fokus:Monitoring im Smart Home und dem Homelab. Welche Arten von Monitoring gibt es? Wieso ist das wichtig? Welcher Ansatz eignet sich fürs Smart Home? Darüber hinaus berichtet Andre...

SmartHütte