Hello,
I use the checkmk version 2.x. Is there a way to monitor a Squid proxy here? There used to be a plugin. Unfortunately, this no longer works with the current checkmk version. Does anyone know of alternatives?
Greetings
Karsten
Hello,
I use the checkmk version 2.x. Is there a way to monitor a Squid proxy here? There used to be a plugin. Unfortunately, this no longer works with the current checkmk version. Does anyone know of alternatives?
Greetings
Karsten
have a look at
There you will find a rewrite of the squid plugin for CMK 2.
Thanks for the info. The website “https://thl-cmk.hopto.org/gitlab/checkmk/various/squid” is not there, what a pity.
I heard about a monitoring tool that can notify in case of unexpected downtime’s
I know one too. Thanks, I was able to download it now and will test it tomorrow. Have a good evening
Karsten
Good Morning,
I have installed the plugin and created the rules, including the new agent. Unfortunately, I don’t see any new services on the Squid host. Have I forgotten something?
best Karsten
Is it perhaps because I am using checkmk version 2.2?
Hi @kacon,
just a quick question. Did you also enable it after installing it?
I think it is only 2.1 compatible.
Maybe @thl-cmk can say if it is 2.2 compatible?
Regards
Norm
of course I have also enabled it
CMK 2.2 should be ok.
Set levels for Client Requests
Would I need to see these serivces in the host?
just checked with 2.2.x. There seems to be an issue with the bakery, 2.2.x does not copy the squid plugin in the agent package :-(. On 2.1.x its ok. Not sure yet why…
As workaround, you can copy the squid agent plugin from
~/local/share/check_mk/agents/plugins
to your squid server under /usr/lib/check_mk_agent/plugins
.
@kacon the plugin should now work with CMK2.2x as well, at least on my system it does . After updating you need to bake the agent again.
Thank you, I will try it out.
Did anyone try and did it work?
For me (running CheckMK 2.2.0p12 RAW) it doesn´t.
I copied the “squid” file to /usr/lib/check_mk_agent/plugins and changed the rights - but nothing happend.
I am pretty new to this, so maybe I am doing something wrong ?
yes works here
you can try to run the script localy
sudo /usr/lib/check_mk_agent/plugins/squid
<<<squid:sep(0)>>>
Content-Type: text/plain;charset=utf-8
sample_start_time = 1698510032.974436 (Sat, 28 Oct 2023 16:20:32 GMT)
sample_end_time = 1698510332.983231 (Sat, 28 Oct 2023 16:25:32 GMT)
client_http.requests = 0.013333/sec
client_http.hits = 0.000000/sec
client_http.errors = 0.000000/sec
....
if this works, check on the cmk server as site user
OMD[build]:~$ cmk -d your-squid-host-name | grep -A10 "<<<squid:sep(0)>>>"
<<<squid:sep(0)>>>
Content-Type: text/plain;charset=utf-8
sample_start_time = 1698510212.979360 (Sat, 28 Oct 2023 16:23:32 GMT)
sample_end_time = 1698510512.988730 (Sat, 28 Oct 2023 16:28:32 GMT)
client_http.requests = 0.010000/sec
client_http.hits = 0.000000/sec
client_http.errors = 0.000000/sec
client_http.kbytes_in = 0.000000/sec
client_http.kbytes_out = 0.029999/sec
client_http.all_median_svc_time = 0.000000 seconds
client_http.miss_median_svc_time = 0.000000 seconds
Btw. have you installed the squidclient package on the squid server?
Thank you for your reply!
From
I get nothing. No output.sudo /usr/lib/check_mk_agent/plugins/squid
Check if squidclient is available, if not you need to install it. I.e
sudo apt install squidclient
Oh…
>sudo apt install squidclient
That did the trick…
At least for:
sudo /usr/lib/check_mk_agent/plugins/squid
But still no output for:
OMD[mysite]: ~$ cmk -d my-squid-host-name | grep -A10 “<<squid:sep(0)>>”