Discussion:
[Check_mk (english)] Difference between "check_mk_agent test" and "telnet client 6556"?
Scharfenberg, Carsten
2018-10-04 12:05:54 UTC
Permalink
Hi all,

I have problems with one of my windows agents. Its output does not include some Windows performance counter based checks any more.
(Since I've tried to increase the WMI handle quota as described here: https://blogs.technet.microsoft.com/askperf/2014/08/12/wmi-how-to-troubleshoot-wmi-high-handle-count/).

During debugging I've figured out that there is a difference between the output of executing "check_mk_agent test" on the client and querying the client using telnet on port 6556.
Could somebody please explain the reason to me?

My setup is:
Server: CheckMk 1.4.0p34 running on Debian 9
Client: CheckMK agent 1.4.0p34 running on Windows Server 2016

Thanks,
Carsten
Marcel Schulte
2018-10-04 12:41:13 UTC
Permalink
Hi Carsten,

telnet'ing port 6556 reaches the agent itself and the output is all
data the agent has access to.
If you start "check_mk_agent test", the agent is executed as your
current user - so the received data is everything the agent has access
to using your user...

Was that clear enough?

BR,
Marcel
Am Do., 4. Okt. 2018 um 14:10 Uhr schrieb Scharfenberg, Carsten
Post by Scharfenberg, Carsten
Hi all,
I have problems with one of my windows agents. Its output does not include some Windows performance counter based checks any more.
(Since I’ve tried to increase the WMI handle quota as described here: https://blogs.technet.microsoft.com/askperf/2014/08/12/wmi-how-to-troubleshoot-wmi-high-handle-count/).
During debugging I’ve figured out that there is a difference between the output of executing “check_mk_agent test” on the client and querying the client using telnet on port 6556.
Could somebody please explain the reason to me?
Server: CheckMk 1.4.0p34 running on Debian 9
Client: CheckMK agent 1.4.0p34 running on Windows Server 2016
Thanks,
Carsten
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Scharfenberg, Carsten
2018-10-04 14:55:13 UTC
Permalink
Thanks for your answer, Marcel.

Your explanation sounds reasonable but I could not confirm it.
The local check_mk_agent service runs as "Local System" which is the ultimate administrational account - having more rights than the usual Windows Administrator.
I managed to login as "Local System" by running "PsExec /s cmd".
The output of "check_mk_agent test" in this terminal contains the sections ' dotnet_clrmemory', ' wmi_cpuload', ' wmi_webservices' and 'systemtime'.
But the telnet output on the CheckMk server does not contain these sections.

Regards,
Carsten

-----Ursprüngliche Nachricht-----
Von: Marcel Schulte [mailto:***@gmail.com]
Gesendet: Donnerstag, 4. Oktober 2018 14:41
An: Scharfenberg, Carsten
Cc: <checkmk-***@lists.mathias-kettner.de>
Betreff: Re: [Check_mk (english)] Difference between "check_mk_agent test" and "telnet client 6556"?

Hi Carsten,

telnet'ing port 6556 reaches the agent itself and the output is all
data the agent has access to.
If you start "check_mk_agent test", the agent is executed as your
current user - so the received data is everything the agent has access
to using your user...

Was that clear enough?

BR,
Marcel
Am Do., 4. Okt. 2018 um 14:10 Uhr schrieb Scharfenberg, Carsten
Post by Scharfenberg, Carsten
Hi all,
I have problems with one of my windows agents. Its output does not include some Windows performance counter based checks any more.
(Since I’ve tried to increase the WMI handle quota as described here: https://blogs.technet.microsoft.com/askperf/2014/08/12/wmi-how-to-troubleshoot-wmi-high-handle-count/).
During debugging I’ve figured out that there is a difference between the output of executing “check_mk_agent test” on the client and querying the client using telnet on port 6556.
Could somebody please explain the reason to me?
Server: CheckMk 1.4.0p34 running on Debian 9
Client: CheckMK agent 1.4.0p34 running on Windows Server 2016
Thanks,
Carsten
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Loading...