mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
* Added proper sorting for checks, packages and check results by name * Fixed perf data formating to be supported by Icinga 2 * Fixed label naming by removing all invalid characters * Fixed displaying of values by rounding to 2 digits on floats
9 lines
207 B
PowerShell
9 lines
207 B
PowerShell
function Format-IcingaPerfDataLabel()
|
|
{
|
|
param(
|
|
$PerfData
|
|
);
|
|
|
|
# Remove all special characters and spaces on label names
|
|
return ((($PerfData) -Replace ' ', '_') -Replace '[\W]', '');
|
|
}
|