Comments (12)
thanks for the strace, that's very helpful. Seems like the issue is related to the latest change in naemon to use uuids as problem id. I'll have a look
from omd.
After updating just the packages on Ubuntu 22.04 eg. apt-get upgrade;apt-get autoremove, and then a reboot, OMD doesn't come up again... not sure how to fix it?
root@:~# omd start bgde
/omd/sites/bgde/etc/rc.d/20-influxdb: line 15: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/20-influxdb: line 102: __generic_init: command not found
/omd/sites/bgde/etc/rc.d/80-naemon: line 14: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/80-naemon: line 38: merge-core-config: command not found
naemon configuration file /omd/sites/bgde/tmp/naemon/naemon.cfg not found. Terminating...
/omd/sites/bgde/etc/rc.d/85-apache: line 16: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/85-apache: line 72: __generic_init: command not found
/omd/sites/bgde/etc/rc.d/85-nagflux: line 16: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/85-nagflux: line 32: __generic_init: command not found
/omd/sites/bgde/etc/rc.d/90-grafana: line 15: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/90-grafana: line 38: __generic_init: command not found
/omd/sites/bgde/etc/rc.d/90-xinetd: line 14: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/90-xinetd: line 41: __generic_init: command not found
/omd/sites/bgde/etc/rc.d/99-crontab: line 12: lib/omd/init_profile: No such file or directory
/omd/sites/bgde/etc/rc.d/99-crontab: line 20: __init_hook: command not found
Starting crontab.../omd/sites/bgde/etc/rc.d/99-crontab: line 24: /omd/sites/bgde/bin/merge-crontabs: No such file or directory
OK
Also found this:
root@it57-debec1:/omd/versions# ls -la
total 16
drwxr-xr-x 4 root root 4096 Mar 15 15:37 .
drwxr-xr-x 5 root root 4096 Nov 17 2022 ..
drwxr-xr-x 3 root root 4096 Mar 8 2023 5.00-labs-edition
drwxr-xr-x 7 root root 4096 Mar 15 15:36 5.30-labs-edition
lrwxrwxrwx 1 root root 21 Nov 17 2022 default -> /etc/alternatives/omd
This does not look right to me? On other installations default points to one of the folders above?
from omd.
Hi again, found this:
root@it57-debec1:~# apt-get autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
omd-5.20-labs-edition
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2419 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 221330 files and directories currently installed.)
Removing omd-5.20-labs-edition (1.ubuntu22.04) ...
Site bgde is still using this version, saving skel/ folder for later upgrade
Looks like the autoremove just removes the current version used... which breaks it...
Not sure if you can somehow hold back the autoremove until the OMD is updated?
I fixed it with "omd update bgde" which thankfully updated everything, and I was able to restart everything again...
from omd.
That's exactly how it's supposed to work. If you remove a OMD version which is in use, omd will put the site in a state where you can run "omd update" into any new version you install. That's
the common way for os updates ex. on debian or ubuntu.
Then after the dist-upgrade, you install a new OMD version, su into the site and run omd update once.
from omd.
@kirk444 can you run ldd bin/naemon
. It looks like bin/naemon uses a wrong libnaemon for some reasons.
It should look like this:
OMD[test@ubuntu22-04-64]:~$ ldd bin/naemon
linux-vdso.so.1 (0x00007ffc6f3cc000)
libnaemon.so.0 => /omd/sites/test/lib/libnaemon.so.0 (0x00007f51c2180000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f51c2039000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f51c1e10000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f51c1d9a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f51c1cb3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f51c2268000)
from omd.
That's exactly how it's supposed to work. If you remove a OMD version which is in use, omd will put the site in a state where you can run "omd update" into any new version you install. That's the common way for os updates ex. on debian or ubuntu. Then after the dist-upgrade, you install a new OMD version, su into the site and run omd update once.
I guess you are right. I just had autoremove enabled in my autoupdate scripts, so it just stoped working after an automatic update which isn't ideal :-)
from omd.
@kirk444 can you run
ldd bin/naemon
. It looks like bin/naemon uses a wrong libnaemon for some reasons.
Mine looks a bit different, here's what it looks like on the new, and old, versions. That path is a symlink "version" in the sites root directory.
OMD[sxomd@omdhost]:~$ ldd bin/naemon
linux-vdso.so.1 => (0x00007f106b57a000)
libnaemon.so.0 => /omd/versions/5.30-labs-edition/lib/libnaemon.so.0 (0x00007f106b2ab000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f106af8b000)
libm.so.6 => /lib64/libm.so.6 (0x00007f106ac89000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f106aa85000)
libc.so.6 => /lib64/libc.so.6 (0x00007f106a6b6000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f106a454000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f106a238000)
/lib64/ld-linux-x86-64.so.2 (0x0000564445e50000)
OMD[sxomd@omdhost]:~$ ldd bin/naemon
linux-vdso.so.1 => (0x00007fffa964f000)
libnaemon.so.0 => /omd/versions/5.20-labs-edition/lib/libnaemon.so.0 (0x00007f32738d4000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f32735b4000)
libm.so.6 => /lib64/libm.so.6 (0x00007f32732b2000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f32730ae000)
libc.so.6 => /lib64/libc.so.6 (0x00007f3272cdf000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f3272a7d000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3272861000)
/lib64/ld-linux-x86-64.so.2 (0x0000565125c2e000)
from omd.
does this look similar on your system?
OMD[test@centos7-64]:~$ md5sum lib/libnaemon.so.0
fec9bb8efdff516aabf7fca99e137c6d lib/libnaemon.so.0
OMD[test@centos7-64]:~$ strings lib/libnaemon.so.0 | grep g_uuid_string
g_uuid_string_random
OMD[test@centos7-64]:~$ omd version
OMD - Open Monitoring Distribution Version 5.30-labs-edition, Python version 3.6.8
from omd.
Yes, the md5sum matches exactly, the same string is present, and he omd/python versions are the same.
from omd.
then i am out of ideas tbh, that version runs fine for hours here.
from omd.
I'm a bit out of my element here, but it seems like this is the function: https://docs.gtk.org/glib/func.uuid_string_random.html - and according to that documentation it was added in glib 2.52.
My system is currently running glib2 2.50. I updated glib2 (2.50 --> 2.56) and will wait and see if that resolves the issue.
from omd.
It certainly seems like that was the issue, I will close this as resolved (by updating glib2).
from omd.
Related Issues (20)
- check_jmx4perl 1.11 (bundled with 5.20) shows strange lines and different than 1.10 on connection refused
- check_dns 2.3.3 (bundled with 5.20) misses option -q while RPM version 2.3.3 has it included HOT 3
- check_ping behaves different between EL8 (working) and EL9 (IPv6 broken) HOT 3
- Configure for HTTP isn't working... HOT 5
- 5.30: EL9 RPM has huge dependency tree in difference to EL8 HOT 2
- thruk filter "Plugin Output" is not affecting numbers in "Service Status Totals" HOT 1
- grafana graphs not displaying inline when using CAS Auth. HOT 3
- 5.30 on EL9: livestatus / xinetd hang during start if started by systemd HOT 1
- No data in Reports -> Event log , trends, notifications HOT 13
- Reports > Trends always Indeterminated HOT 1
- I am trying to install omd in SUSE 15 SLES 5
- SNClient gui is not loaded ? HOT 7
- Command omd disable clears crontab for root. HOT 1
- CVE-2024-38474 in Apache and UnsafeAllow3F addition HOT 4
- max_check_attempts is 1 and still goes to SOFT state on frist try HOT 4
- Nagios OMD webpage isNagios OMD site works but appearance is completely destroyed after updating from 5.30 to 5.40 HOT 1
- Worker getting timeout very frequently
- OMD Site Monitoring - Unknown alert
- login page broken with Thruk cookie auth HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omd.