Omd will not autostart after server reboot

I use ubuntu server for check_mk
systemd is configured for omd.service
but it will error as follow after server reboot:

systemd[1]: Starting Check_MK Monitoring…
omd[938]: Doing ‘start’ on site aws_check:
omd[938]: Creating temporary filesystem /omd/sites/aws_check/tmp…Starting mkeventd…OK
omd[938]: Starting rrdcached…OK
omd[938]: Starting npcd…OK
omd[938]: Starting nagios…OK
omd[938]: Starting apache…OK
omd[938]: Initializing Crontab…OK
omd[938]: OK
omd[938]: Doing ‘start’ on site check:
omd[938]: Site check uses version 2.90-labs-edition which is not installed.
omd[938]: Please reinstall that version and retry this command.
systemd[1]: omd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: omd.service: Failed with result ‘exit-code’.
systemd[1]: Failed to start Check_MK Monitoring.

I can however start it manually from omd console- omd start
how can i change the configuration of ‘2.90-labs-edition’ site on boot?
we no longer use this site ‘2.90-labs-edition’

You have to read the messages carfully. You have two sites: aws_check and check. The site check uses the checkmk version 2.90-labs-edition which is no longer installed.

I doubt you can start the site check manually and assume by “I can start it you mean the other site aws_check.

To get a listing of your sites, run omd sites.

If you want to delete the site check then run omd rm check.

thank you for you reply Dirk.
i want to remove old “check” site (2.90-labs-edition)
and autostart on boot: “aws_check”
my question is-
in which file/s can i change the auto site loading, from old site ‘check’ to new site ‘aws_check’(1.6.0p16.cre)?

btw trying to delete old site error with
sudo omd -f rm check
Site check uses version 2.90-labs-edition which is not installed.
Please reinstall that version and retry this command.

I suggest to temporarily install 2.90-labs-edition (never heard of it, though), then remove the site check and then again uninstall the version 2.90-labs-edition.

You can also try to remove the site check manually:
remove the directory /opt/omd/sites/check and the file /opt/omd/apache/check.conf and do a systemctl restart apache2.service. I haven’t tried that but I think it will work.

3 Likes

thanks @Dirk, i’ll try that…

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.