We are using the free test version of nagiosxi. We followed the steps described in the guide Monitoring VMware (https://assets.nagios.com/downloads/nag ... ios-XI.pdf). After successfully executing these steps the nagios.service failed to restart and the website is not reachable anymore.
when we installed the sdk the openssl-devel package was missing, other than the installation was without any issues.
We are using CentOS Stream 9.
× nagios.service - Nagios Core 4.4.10
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-05-31 03:29:29 CDT; 5s ago
Duration: 11ms
Docs: https://www.nagios.org/documentation
Process: 1522883 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1522884 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1522890 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Main PID: 1522885 (code=exited, status=1/FAILURE)
CPU: 50ms
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Successfully registered manager as @wproc with query handler
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522886;pid=1522886
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522888;pid=1522888
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522889;pid=1522889
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522887;pid=1522887
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Could not load module '/usr/local/nagios/bin/ndo.so' -> libmysqlclient.so.21: cannot open shared object file: No such file or directory
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Failed to load module '/usr/local/nagios/bin/ndo.so'.
May 31 03:29:27 localhost.localdomain systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Module loading failed. Aborting.
May 31 03:29:29 localhost.localdomain systemd[1]: nagios.service: Failed with result 'exit-code'.
nagios.service failed to restart
Re: nagios.service failed to restart
Read the error lines in the posted output and resolve the issues.
You are allowed to copy the messages to the clipboard, then paste them into a search and... search. Then you read... Life is easier than you think
You are allowed to copy the messages to the clipboard, then paste them into a search and... search. Then you read... Life is easier than you think
-
- Posts: 5
- Joined: Thu Dec 29, 2022 3:21 am
Re: nagios.service failed to restart
Take a look at the uploaded output for any lines of error text and fix the problems there.
The messages can be copied to the clipboard and then pasted into a search engine. Then, after reading... You're making life harder than it is. monkey mart
The messages can be copied to the clipboard and then pasted into a search engine. Then, after reading... You're making life harder than it is. monkey mart
Re: nagios.service failed to restart
This indicates that the Nagios Core service is unable to load the "ndo.so" module due to a missing shared object file, specifically "libmysqlclient.so.21". To resolve this issue, you can try the following steps: : Search for the "libmysqlclient.so.21" library package for your Linux distribution and install it. This library is typically provided by the MySQL or MariaDB package. Use your package manager (e.g., yum or apt-get) to search for and install the appropriate package. Then update library paths: After installing the library, you may need to update the library paths so that Nagios can find it. Check the LD_LIBRARY_PATH environment variable and ensure it includes the directory where the "libmysqlclient.so.21" library is installed. You can set it in the shell configuration file or in the Nagios systemd service file.nagiosUser498 wrote: ↑Wed May 31, 2023 4:03 am We are using the free test version of nagiosxi. We followed the steps described in the guide Monitoring VMware (https://assets.nagios.com/downloads/nag ... ios-XI.pdf wordle). After successfully executing these steps the nagios.service failed to restart and the website is not reachable anymore.
when we installed the sdk the openssl-devel package was missing, other than the installation was without any issues.
We are using CentOS Stream 9.
× nagios.service - Nagios Core 4.4.10
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-05-31 03:29:29 CDT; 5s ago
Duration: 11ms
Docs: https://www.nagios.org/documentation
Process: 1522883 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1522884 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1522890 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Main PID: 1522885 (code=exited, status=1/FAILURE)
CPU: 50ms
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Successfully registered manager as @wproc with query handler
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522886;pid=1522886
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522888;pid=1522888
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522889;pid=1522889
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522887;pid=1522887
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Could not load module '/usr/local/nagios/bin/ndo.so' -> libmysqlclient.so.21: cannot open shared object file: No such file or directory
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Failed to load module '/usr/local/nagios/bin/ndo.so'.
May 31 03:29:27 localhost.localdomain systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Module loading failed. Aborting.
May 31 03:29:29 localhost.localdomain systemd[1]: nagios.service: Failed with result 'exit-code'.
-
- Posts: 6
- Joined: Wed Jul 05, 2023 2:46 am
Re: nagios.service failed to restart
Check the supplied output for error lines and fix the problems you find x trench run
You may cut and paste the text from the mails into a search engine. Next, you read... Things are simpler than you may imagine.
You may cut and paste the text from the mails into a search engine. Next, you read... Things are simpler than you may imagine.
Re: nagios.service failed to restart
If the libmysqlclient.so.21 file is present but not in a standard library path, you can try updating the library search path for the system to include the directory containing the file.
Change in the /etc/ld.so.conf file and running the ldconfig command to update the library cache.
EX: if the file is located in /path/to/library, add the line /path/to/library to /etc/ld.so.conf, save the file, and run sudo ldconfig.
may be that help you.
Change in the /etc/ld.so.conf file and running the ldconfig command to update the library cache.
EX: if the file is located in /path/to/library, add the line /path/to/library to /etc/ld.so.conf, save the file, and run sudo ldconfig.
may be that help you.
Re: nagios.service failed to restart
You need to install the libmysqlclient.so.21 library on your system. Since you are using CentOS Stream 9, you can try installing the appropriate package containing this library. In CentOS, the package might be named something like mysql-devel or mysql-libs.nagiosUser498 wrote: ↑Wed May 31, 2023 4:03 am We are using the free test version of nagiosxi. We followed the steps described in the guide Monitoring VMware (https://assets.nagios.com/downloads/nag ... ios-XI.pdf geometry dash). After successfully executing these steps the nagios.service failed to restart and the website is not reachable anymore.
when we installed the sdk the openssl-devel package was missing, other than the installation was without any issues.
We are using CentOS Stream 9.
× nagios.service - Nagios Core 4.4.10
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-05-31 03:29:29 CDT; 5s ago
Duration: 11ms
Docs: https://www.nagios.org/documentation
Process: 1522883 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1522884 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1522890 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Main PID: 1522885 (code=exited, status=1/FAILURE)
CPU: 50ms
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Successfully registered manager as @wproc with query handler
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522886;pid=1522886
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522888;pid=1522888
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522889;pid=1522889
May 31 03:29:27 localhost.localdomain nagios[1522885]: wproc: Registry request: name=Core Worker 1522887;pid=1522887
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Could not load module '/usr/local/nagios/bin/ndo.so' -> libmysqlclient.so.21: cannot open shared object file: No such file or directory
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Failed to load module '/usr/local/nagios/bin/ndo.so'.
May 31 03:29:27 localhost.localdomain systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
May 31 03:29:27 localhost.localdomain nagios[1522885]: Error: Module loading failed. Aborting.
May 31 03:29:29 localhost.localdomain systemd[1]: nagios.service: Failed with result 'exit-code'.