Describe the bug
On a German Windows Server 2022 21H2 in german, check_connections appears to fail to map localized TCP state names correctly.
The log contains this errors like:
[2026-04-08 13:56:17.441][Error][pid:1096][check_connections_windows:73] unhandled tcp state: HERGESTELLT
HERGESTELLT is the German localized state name for ESTABLISHED.
check_connections exposes perfdata for the documented state counters but the following counters are always returned 0, even though matching connections exist:
established, syn_sent, syn_recv,fin_wait1,fin_wait2,time_wait,close,close_wait,last_ack,listen,closing and new_syn_recv.
total gives valid perfdata.
To Reproduce
Install snclient v0.42 on Windows Server 2022 21H2 x86_64 language Settings German.
check_nsc_web -C certs/nagios.pem -K certs/nagios.key -ca certs/ca.pem -tlsmin tls1.3 -p "xxxxxx" -u "https://192.168.x.x:8443" check_connections
OK - total connections: 731 |'total'=731;1000;2000;0; 'established'=0;;;0; 'syn_sent'=0;;;0; 'syn_recv'=0;;;0; 'fin_wait1'=0;;;0; 'fin_wait2'=0;;;0; 'time_wait'=0;;;0; 'close'=0;;;0; 'close_wait'=0;;;0; 'last_ack'=0;;;0; 'listen'=0;;;0; 'closing'=0;;;0; 'new_syn_recv'=0;;;0;
In the log of the snclient i see errors like:
[2026-04-08 13:56:17.441][Error][pid:1096][check_connections_windows:73] unhandled tcp state: HERGESTELLT
[2026-04-08 13:56:17.441][Error][pid:1096][check_connections_windows:73] unhandled tcp state: WARTEND
[2026-04-08 13:56:17.473][Error][pid:1096][check_connections_windows:73] unhandled tcp state: ABH™REN
with german lables.
Expected behavior
check_connections should normalize localized Windows TCP state names to the internal SNClient state names
the state counters above should contain the real values instead of always being 0
localized Windows installations should behave the same as English Windows installations
What I suspect:
It looks like the Windows implementation expects English TCP state names and does not translate localized names such as HERGESTELLT -> ESTABLISHED.
Software (please complete the following information):
- SNClient version: v0.42
- OS: Windows Server 2022 / Windows with German locale
- Check:
check_connections from linux (Debian 13)
Describe the bug
On a German Windows Server 2022 21H2 in german,
check_connectionsappears to fail to map localized TCP state names correctly.The log contains this errors like:
[2026-04-08 13:56:17.441][Error][pid:1096][check_connections_windows:73] unhandled tcp state: HERGESTELLT
HERGESTELLTis the German localized state name forESTABLISHED.check_connections exposes perfdata for the documented state counters but the following counters are always returned 0, even though matching connections exist:
established, syn_sent, syn_recv,fin_wait1,fin_wait2,time_wait,close,close_wait,last_ack,listen,closing and new_syn_recv.
total gives valid perfdata.
To Reproduce
Install snclient v0.42 on Windows Server 2022 21H2 x86_64 language Settings German.
check_nsc_web -C certs/nagios.pem -K certs/nagios.key -ca certs/ca.pem -tlsmin tls1.3 -p "xxxxxx" -u "https://192.168.x.x:8443" check_connections
OK - total connections: 731 |'total'=731;1000;2000;0; 'established'=0;;;0; 'syn_sent'=0;;;0; 'syn_recv'=0;;;0; 'fin_wait1'=0;;;0; 'fin_wait2'=0;;;0; 'time_wait'=0;;;0; 'close'=0;;;0; 'close_wait'=0;;;0; 'last_ack'=0;;;0; 'listen'=0;;;0; 'closing'=0;;;0; 'new_syn_recv'=0;;;0;
In the log of the snclient i see errors like:
[2026-04-08 13:56:17.441][Error][pid:1096][check_connections_windows:73] unhandled tcp state: HERGESTELLT
[2026-04-08 13:56:17.441][Error][pid:1096][check_connections_windows:73] unhandled tcp state: WARTEND
[2026-04-08 13:56:17.473][Error][pid:1096][check_connections_windows:73] unhandled tcp state: ABH™REN
with german lables.
Expected behavior
check_connections should normalize localized Windows TCP state names to the internal SNClient state names
the state counters above should contain the real values instead of always being
0localized Windows installations should behave the same as English Windows installations
What I suspect:
It looks like the Windows implementation expects English TCP state names and does not translate localized names such as
HERGESTELLT->ESTABLISHED.Software (please complete the following information):
check_connectionsfrom linux (Debian 13)