Issue in check_MK configuration after upgrade from version 15 to version 16 demo

hi,
i’ve upgraded the check_MK from Version 15 to Version 16 demo
the upgrade succeeded and i can see all of my hosts in configuration but now im facing an issue
when trying to view them i can see this error :

Local site monitoring - Livestatus error
Cannot connect to ‘unix:/omd/sites/monitoring/tmp/run/live’: [Errno 2] No such file or directory

i ran analyze configuration VIA web interface and i can see the error log below ?
what should i do next ?

B.T.W
i don’t mind to delete configuration and revert to default demo version configuration if needed
this version is for POC the ability of this product to monitor dockers
thanks .

monitoring: Traceback:
Traceback (most recent call last):
File “/omd/sites/monitoring/lib/python/cmk/gui/wato/pages/analyze_configuration.py”, line 342, in _perform_tests_for_site
results_data = automation.execute(automation.get_request())
File “/omd/sites/monitoring/lib/python/cmk/gui/watolib/analyze_configuration.py”, line 262, in execute
if not test.is_relevant():
File “/omd/sites/monitoring/lib/python/cmk/gui/plugins/wato/ac_tests.py”, line 681, in is_relevant
return self._uses_microcore()
File “/omd/sites/monitoring/lib/python/cmk/gui/watolib/analyze_configuration.py”, line 215, in _uses_microcore
version = local_connection.query_value(“GET status\nColumns: program_version\n”, deflt="")
File “/omd/sites/monitoring/lib/python/livestatus.py”, line 175, in query_value
result = self.query(query, “ColumnHeaders: off\n”)
File “/omd/sites/monitoring/lib/python/livestatus.py”, line 556, in query
data = self.do_query(query, add_headers)
File “/omd/sites/monitoring/lib/python/livestatus.py”, line 438, in do_query
self.send_query(query, add_headers)
File “/omd/sites/monitoring/lib/python/livestatus.py”, line 449, in send_query
self.connect()
File “/omd/sites/monitoring/lib/python/livestatus.py”, line 383, in connect
raise MKLivestatusSocketError(“Cannot connect to ‘%s’: %s” % (self.socketurl, e))
MKLivestatusSocketError: Cannot connect to ‘unix:/omd/sites/monitoring/tmp/run/live’: [Errno 2] No such file or directory

Hi,

did you change the core to microcore after update? Did you activate the tmpfs and check if ~/tmp/run exists. You can also run cmk -X or check-update-config for errors.

Rg, Christian

1 Like

did you change the core to microcore after update? No. how can i do this ? can you please send commands …
Did you activate the tmpfs and check if ~/tmp/run exsits ? No how do i preform this ? can you please send commands …

cmk -X did not produce any outputs
check-update-config is not a command .

Hi,

omd config show
omd config set CORE cmc
omd config set TMPFS on

Karl

the output of the omd config set CORE cmc :

Sorry, but the Checkmk Enterprise Free Edition can only handle 10 hosts, not 126

this VM was duplicated from other operational check_MK with 126 hosts on it ( Version 15.x.x)
i don’t need these hosts or any other old configuration . how do i delete config and revert to clean one ?

Hi,
create a new site as root user:

omd create testsite

If you don’t need your old site you can stop and delete the site:

omd stop monitoring
omd rm monitoring

Karl

I’ve created new site and deleted monitoring site and started the New_site1 instance all seems running
but when trying to access the UI om getting Apache error : 404 not found
i even tried to reboot the VM with no success

Hi,
what’s the output of

omd sites
omd status

What Linux distribution are you using?
What’s the output of:

systemctl status httpd
systemctl status apache2

?
Karl

1 Like

verint@CMK2:~$ omd sites
SITE VERSION COMMENTS
New_site1 1.6.0p8.cee.demo default version

verint@CMK2:~$ sudo omd status
Doing ‘status’ on site New_site1:
mkeventd: running
liveproxyd: running
mknotifyd: running
rrdcached: running
cmc: running
apache: running
dcd: running
crontab: running

Overall state: running

verint@CMK2:~$ systemctl status httpd
● httpd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

verint@CMK2:~$ systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Thu 2020-01-30 13:46:41 GMT; 3 days ago
Docs: man:systemd-sysv-generator(8)
Process: 1696 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
CGroup: /system.slice/apache2.service
├─1147 /usr/sbin/apache2 -k start
├─1744 /usr/sbin/apache2 -k start
└─1745 /usr/sbin/apache2 -k start

Hi,
what URL do you use to connect to the UI?

Karl

thanks. i noticed my misake . i used the old site name in my url.
i now have access . thanks for your help.
2 more questions :
i have a host with an old agent (v1.5 ) that is running docker in it and i want to monitor the docker containers. that is why i installed this new demo checkmk and site with the newest version .
first question : can i install 2 different agents to allow continues monitoring from 2 different chack mk servers
if not how do i upgrade the agent ?

Upgrade: Install the new agent with the docker plugins.

Karl

thanks for you help :slight_smile: