Discussion:
[Check_mk (english)] Downgrade Check_MK Agent
Jason Townsend
2018-03-05 19:05:56 UTC
Permalink
Hi All -
I was unable to use the latest 1.4.0p26 for various reasons.

I have installed version 1.2.8p27 and want to install the associated agent. Windows is easy to uninstall then reinstall the agent. My problem is with any Ubuntu/linux/centOS based systems, when I kick off the check-mk-agent_1.2.8p27-1_all.deb agent installer, it looks like it is downgrading the agent and restarting the xinetd service. However, when I go to add the host to WATO, it can't communicate on port 6556, connection refused.

I putty into the host I'm trying to add, and run the check_mk_agent command, it spit out a ton of output. I do a netstat - a I do not see port 6556 listed.

How do I cleanly remove the 1.4.0p26 agent so that I can install the 1.2.8p27 agent? Until I figure that out I can not add the hosts to WATO.

Thanks in advance.
Andreas Döhler
2018-03-06 13:29:16 UTC
Permalink
Hi Jason,

for the communication issues you have only to look at "/etc/xinetd.d/"
there should be a file for the check_mk_agent.
Before installing the agent i would recommend to uninstall first the old
agent package.
Then install the wanted version and control if xinetd.d file is existing
and that xinetd is listening on 6556.

Best regards
Andreas
Post by Jason Townsend
Hi All -
I was unable to use the latest 1.4.0p26 for various reasons.
I have installed version 1.2.8p27 and want to install the associated
agent. Windows is easy to uninstall then reinstall the agent. My problem
is with any Ubuntu/linux/centOS based systems, when I kick off the
check-mk-agent_1.2.8p27-1_all.deb agent installer, it looks like it is
downgrading the agent and restarting the xinetd service. However, when I
go to add the host to WATO, it can’t communicate on port 6556, connection
refused.
I putty into the host I’m trying to add, and run the check_mk_agent
command, it spit out a ton of output. I do a netstat – a I do not see port
6556 listed.
How do I cleanly remove the 1.4.0p26 agent so that I can install the
1.2.8p27 agent? Until I figure that out I can not add the hosts to WATO.
Thanks in advance.
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Andreas Döhler
2018-03-06 14:00:10 UTC
Permalink
Like i wrote before only check after installation if there is a service
file for check_mk_agent existing inside "/etc/xinetd.d/"
If yes then a "netstat -tulpn | grep 6556" should show one listen process
xinetd.
If not then something is wrong with your xinetd setup. Take a look at your
Log files for more information.

br
Andreas
Werner Flamme
2018-03-06 15:30:30 UTC
Permalink
Post by Andreas Döhler
Like i wrote before only check after installation if there is a service
file for check_mk_agent existing inside "/etc/xinetd.d/"
If yes then a "netstat -tulpn | grep 6556" should show one listen process
xinetd.
Since it is only one port you're looking for:

lsof -i:6556

should work as well here.

However, a file /etc/xinetd.d/check_mk should exist, and inside the file
there should be

server = /usr/bin/check_mk_agent
disable = no

plus some other lines ;)

Instead of /usr/bin/check_mk_agent you can use as an alternative
/usr/bin/check_mk_caching_agent (if present).

Maybe you need a "systemctl restart xinetd.service" oder "service xinetd
reload" or something similar, depending on your installation ;)
Post by Andreas Döhler
If not then something is wrong with your xinetd setup. Take a look at your
Log files for more information.
HTH, Werner

--

Continue reading on narkive:
Search results for '[Check_mk (english)] Downgrade Check_MK Agent' (Questions and Answers)
18
replies
I'm looking to buy a pistol?
started 2010-05-06 10:58:47 UTC
hunting
Loading...