Skip to content

CPU and Memory Checks not working if windows ist installed with a non-english version #132

@K0nne

Description

@K0nne

Hello,

it came to our attention that the checks Invoke-IcingaCheckCPU and Invoke-IcingaCheckMemory were not working on a specific system. Upon investigating the issue we found, that the system was installed with a german edition of windows server 2016.

The problem seems to be, that even the performance counters are translated in german language:

Processor

icinga> Show-IcingaPerformanceCounterCategories -Filter '*Processor*'

icinga> Show-IcingaPerformanceCounterCategories -Filter '*Prozessor*'
Prozessor
Logischer Prozessor für Hyper-V-Hypervisor
Virtueller Prozessor des Hyper-V-Hypervisorstamms
Netzwerkschnittstellenkarten-Aktivität pro Prozessor
Netzwerkaktivitätszyklen pro Prozessor
Prozessorinformationen

icinga> Show-IcingaPerformanceCounters -Counter Prozessorinformationen
\Prozessorinformationen(*)\dpc-zeit (%)
\Prozessorinformationen(*)\privilegierte zeit (%)
\Prozessorinformationen(*)\dpcs in warteschlange/s
\Prozessorinformationen(*)\dpc-rate
\Prozessorinformationen(*)\% prozessorleistung
\Prozessorinformationen(*)\leerlaufzeit (%)
\Prozessorinformationen(*)\prozessorstatusflags
\Prozessorinformationen(*)\% c3-zeit
\Prozessorinformationen(*)\c3-übergänge/s
\Prozessorinformationen(*)\prozessorzeit (%)
\Prozessorinformationen(*)\interruptzeit (%)
\Prozessorinformationen(*)\% der maximalen frequenz
\Prozessorinformationen(*)\parkstatus
\Prozessorinformationen(*)\interrupts/s
\Prozessorinformationen(*)\benutzerzeit (%)
\Prozessorinformationen(*)\% c1-zeit
\Prozessorinformationen(*)\zeitinterrupts/s
\Prozessorinformationen(*)\prozessorauslastung
\Prozessorinformationen(*)\privilegierte auslastung
\Prozessorinformationen(*)\c2-übergänge/s
\Prozessorinformationen(*)\kennzeichen für das leistungslimit
\Prozessorinformationen(*)\durchschnittliche leerlaufzeit
\Prozessorinformationen(*)\prozessorfrequenz
\Prozessorinformationen(*)\unterbrechungen des leerlaufs/s
\Prozessorinformationen(*)\% leistungslimit
\Prozessorinformationen(*)\% prioritätszeit
\Prozessorinformationen(*)\% c2-zeit
\Prozessorinformationen(*)\c1-übergänge/s 

Memory

icinga> Show-IcingaPerformanceCounterCategories -Filter '*Arbeitsspeicher*'
Arbeitsspeicher
Arbeitsspeicher für NUMA-Knoten
Hyper-V-Dienst für die Integration des dynamischen Arbeitsspeichers

icinga> Show-IcingaPerformanceCounterCategories -Filter '*Memory*'
.NET Memory Cache 4.0

icinga> Show-IcingaPerformanceCounters -Counter Arbeitsspeicher
\Arbeitsspeicher\seitenlesevorgänge/s
\Arbeitsspeicher\zugesicherte bytes
\Arbeitsspeicher\freie und nullseitenlisten - bytes
\Arbeitsspeicher\nicht-auslagerungsseiten (bytes)
\Arbeitsspeicher\standbycache- bytes mit normaler priorität
\Arbeitsspeicher\cachebytes (max.)

In this case, the following message is thrown:

[UNKNOWN]: Icinga Invalid Configuration Error was thrown: PerfCounterCategoryMissing: Category "xxx" not found   

The specified Performance Counter category was not found on this system. This could either be a configuration error on your local Windows machine or a wrong usage of the plugin. Please check on different Windows machines if this issue persis. In case it only occurs on certain machines it is likely that the counter is simply not present and the plugin can not be processed.

Btw, there's a typo in the error message --> "persis"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions