I have migrated my centos memcached server from centos7 to ubuntu. And from version 1.4.15 to 1.5.22.
Using Check_mk 2.0.0p4 and the mkp of memcached5.3 OR from the treasure directly. Memcached monitoring don’t seem to work with memcached version 1.5.22.
I am not sure I am in the correct place to let people know. But here I am.
I am willing to do test if needed. I was able to do a few client modification so that running the agent return the memcached section correctly. But on the server side it’s as if it’s unable to parse through the info.
# dpkg -l |grep memcached
ii libmemcached-tools 1.0.18-4.2ubuntu2 amd64 Commandline tools for talking to memcached via libmemcached
ii libmemcached11:amd64 1.0.18-4.2ubuntu2 amd64 C and C++ client library to the memcached server
ii libmemcachedutil2:amd64 1.0.18-4.2ubuntu2 amd64 library implementing connection pooling for libmemcached
ii memcached 1.5.22-2ubuntu0.1 amd64 High-performance in-memory object caching system
I took the mk_memcached from : /opt/omd/versions/2.0.0p4.cre/share/doc/check_mk/treasures/memcached/agents/plugins/mk_memcached
I tried both the one in the treasure folder ( which is what I did in my previous post)
I also tried the one from the memcached5.3 mkp.
If I use under my memcached server the file from $OMD_ROOT/local/share/check_mk/agents/plugins/mk_memcached
I get the following
# ./mk_memcached
/usr/bin/env: ‘python’: No such file or directory
Since I only have python3 on that machine I went and changed the first line
from
#!/usr/bin/env python
to
#!/usr/bin/env python3
This gives me
# ./mk_memcached
File "./mk_memcached", line 117
print '<<<memcached>>>'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('<<<memcached>>>')?
And then it goes down into quite a few modification along those line.
For python2 I think it’s just not installed by default under ubuntu20.04 where they favor python3.
I updated to 5.4 and used the included “new” plugin working with python3 named memcached.py
I put it in place on the memcached server. The plugin works. And after a few minute it shows as a new service under WATO.
I added that and now the service is associated to my server. But it’s been over 15 minutes and nothing seems to be received to show for. No data no graph.
When I do a test connection of the host. I see the data being sent by the client. But it’s as if it’s not read correctly by cmk and so does not show or graph under the host.
Well it took 2 hours. But it seems to have decided to move along. And now everything is fine.
So I guess it was all about the memcached5.4 with added support for python3.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.