Add automatic Label depending on Linux Distribution
Add a automatic Label depending on Linux Dsitribution, so plugins like YUM or APT
can be selektiv installed based on Distribution (Agentbakery)
lnxdistribution: ubuntu // lnxdistribution:centos
Comments: 17
-
05 May, '22
gstolzin the meantime HW/SW Inventory and https://github.com/HeinleinSupport/check_mk_extensions/tree/cmk2.0/data2label would be a workaround I guess
-
07 May, '22
FooWhy only Linux?
Make it for all OS if you do it... Think big! -
15 Jun, '22
Christian Wirtz...and add more Labels for everything that can be usable for basic rules
Please create or use a naming scheme!!!!
I suggest to have a look at the Elastic Common Scheme:
https://www.elastic.co/de/blog/introducing-the-elastic-common-schema
https://www.elastic.co/guide/en/ecs/current/index.html
https://github.com/elastic/ecs
Then use these labels to create dashboards, views, default rules, ...
And provide all of this as MKPs. -
28 Sep, '22
Thomas Lippert AdminThis can be done by distribution (aka redhat, suse, debian, ubuntu, ...) or should this go even further towards distribution & version (aka debian9, debian10, ...).
Linux has distributions, while Windows or AIX does not have this. Windows has multiple edition of the server -
04 Oct, '22
Daniel Roettgermann@Thomas so far half of the installations I've seen doing it MINIMUM on Distribution AND Version
AIX also has different versions ;-)
@Christian
oldie but goldie
Would be nice, but I dont think so.
There could be so much stuff directly automated in combination with the inventory to make filtering and daily business so much more efficient... -
12 Nov, '22
Robert SanderThis extension sets labels based on the information from /etc/os-release: https://exchange.checkmk.com/p/lsbrelease
-
16 Dec, '22
Robin Gierse MergedCheckmk already discovers the operating system families as "cmk/os_family:linux" and "cmk/os_family:windows". It should be rather easily possible to discover something like "cmk/os_distribution:ubuntu" and/or "cmk/os_distribution_version:22.04". This could be done to an extent, like Ansible does, e.g.:
"ansible_distribution": "Ubuntu",
"ansible_distribution_file_parsed": true,
"ansible_distribution_file_path": "/etc/os-release",
"ansible_distribution_file_variety": "Debian",
"ansible_distribution_major_version": "22",
"ansible_distribution_release": "jammy",
"ansible_distribution_version": "22.04",
This can probably be done for Windows and other operating systems similarly. -
09 Jan, '23
Robert Sander MergedWe have an extension that does this by reading /etc/os-release on Linux systems: https://exchange.checkmk.com/p/lsbrelease
-
16 Feb, '23
JPH MergedPlease implement the Checkmk Partners! solution in the master.
But please implement it for all OS (Windows, Linux, Unix, BSD, AIX, etc.).
The Agent in the GUI has to be shown the OS and version.
Thanks -
06 Mar, '23
DanielAll Informations are already available if you are using the Inventory
Inventory Tree -> Operating System (software.os)
So shouldn't be such a biggy
@Robert
Thanks for sharing. But adding more and more MKPs where we as Customers need to check on every upgrade if they are still working and for some of us even not possible as third party - not really an option. Much likely works fpr the KMU -
11 Mar, '23
Thomas WittmannThis does the trick pretty well: https://exchange.checkmk.com/p/set-os-label
-
22 May, '23
Thomas Lippert Admin"Discover labels for the operating system (Distribution and/or OS version)" (suggested by Robin Gierse on 2022-12-16), including upvotes (12) and comments (3), was merged into this suggestion.
-
22 May, '23
Thomas Lippert AdminPlanned for Checkmk 2.3
-
01 Jun, '23
Danielis it confirmed its for all and not only for Linux?
-
01 Jun, '23
Niklas Pulina Admin@Daniel: We plan to support all operating systems, not only Linux.
1 -
12 Mar
Niklas Pulina AdminHi everyone, good news: We have implemented the automatic creation of additional labels based on operating system details for all target systems with agent-based monitoring.
1
The functionality is available in the current beta and will be published with Checkmk 2.3.
For details, please see https://checkmk.com/werk/16581
Warm regards,
Your Checkmk team