Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after update Naemon and Thruk #68

Closed
pantinanco opened this issue May 12, 2017 · 6 comments
Closed

Error after update Naemon and Thruk #68

pantinanco opened this issue May 12, 2017 · 6 comments

Comments

@pantinanco
Copy link

Hello,
I like to greet you, I write to you since I need your help. I recently did the update of our monitoring platform Naemon, which was done without problems. But when I enter the portal and see the states of the hosts, it shows me the following error:

"No Backend available
None of the backends could be reached, please have a look at the logfile for detailed information and make sure the core is up and running.

Details:
Naemon: ERROR: failed to open socket / var / cache / naemon / live: No such file or directory .. (/ var / cache / naemon / live) "

I have reviewed the error logs but I could not find the solution. As a result, if I check the configuration of objects through the web, it shows me the data of the hosts, such as IP, hostname and the hostgroup to which it belongs.

Information delivered by the systemctl status naemon.service:

"● naemon.service - Naemon Monitoring Daemon
Loaded: loaded (/usr/lib/systemd/system/naemon.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-05-11 10:00:06 CLT; 1h 2min ago
Docs: http://naemon.org/documentation
Process: 20853 ExecStart = / usr / bin / naemon --daemon /etc/naemon/naemon.cfg (code = exited, status = 1 / FAILURE)
Process: 20850 ExecStartPre = / usr / bin / chown -R naemon / var / run / naemon / (code = exited, status = 0 / SUCCESS)
Process: 20846 ExecStartPre = / usr / bin / mkdir / var / run / naemon (code = exited, status = 1 / FAILURE)

May 11 10:00:06 naemon-sion-alicopsa-local systemd [1]: Starting Naemon Monitoring Daemon ...
May 11 10:00:06 naemon-sion-alicopsa-local systemd [1]: naemon.service: control process exited, ... = 1
May 11 10:00:06 naemon-sion-alicopsa-local systemd [1]: Failed to start Naemon Monitoring Daemon.
May 11 10:00:06 naemon-sion-alicopsa-local systemd [1]: Unit naemon.service entered failed state.
May 11 10:00:06 naemon-sion-alicopsa-local systemd [1]: naemon.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[Root @ naemon-sion-alicopsa-local ~] # service naemon restart
Redirecting to / bin / systemctl restart naemon.service
Job for naemon.service failed because the control process exited with error code. See "systemctl status naemon.service" and "journalctl -xe" for details.
[Root @ naemon-sion-alicopsa-local ~] # systemctl status naemon.service
● naemon.service - Naemon Monitoring Daemon
Loaded: loaded (/usr/lib/systemd/system/naemon.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-05-11 11:15:12 CLT; 15s ago
Docs: http://naemon.org/documentation
Process: 22092 ExecStart = / usr / bin / naemon --daemon /etc/naemon/naemon.cfg (code = exited, status = 1 / FAILURE)
Process: 22088 ExecStartPre = / usr / bin / chown -R naemon / var / run / naemon / (code = exited, status = 0 / SUCCESS)
Process: 22083 ExecStartPre = / usr / bin / mkdir / var / run / naemon (code = exited, status = 1 / FAILURE)

May 11 11:15:12 naemon-sion-alicopsa-local systemd [1]: Starting Naemon Monitoring Daemon ...
May 11 11:15:12 pm naemon-sion-alicopsa-local systemd [1]: naemon.service: control process exited, ... = 1
May 11 11:15:12 pm naemon-sion-alicopsa-local systemd [1]: Failed to start Naemon Monitoring Daemon.
May 11 11:15:12 AM naemon-sion-alicopsa-local systemd [1]: Unit naemon.service entered failed state.
May 11 11:15:12 pm naemon-sion-alicopsa-local systemd [1]: naemon.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
"

Waiting for your help and prompt reply, I say goodbye.

Thanks in advance.

Best regards.

Pablo Antiñanco Soto

@sni
Copy link
Contributor

sni commented May 12, 2017

Is naemon-livestatus installed and enabled?

@pantinanco
Copy link
Author

Hi, I think that since the platform was working correctly, after the version update started the problems...

@tvestelind
Copy link

Do you have the directory /var/cache/naemon/? If yes, what are the permissions? If no, try creating it and restart naemon.

@tvestelind
Copy link

Also, check the log file defined by log_file= in /etc/naemon/naemon.cfg and see if you can see any obvious errors.

@pantinanco
Copy link
Author

Yes, the directory /var/cache/naemon/ already exists and its permissions are 775 (Owner (rwx),group(rwx),other (rx))

The log file show me the following error:

[1494512112] Error in configuration file '/etc/naemon/naemon.cfg' - Line 344 (Warning: Failed to open check_result_path '/var/cache/naemon/checkresults': No such file or directory)

I create the path but still not working.

@sni
Copy link
Contributor

sni commented Aug 19, 2019

maybe it is an permission issue. You could try to reinstall naemon. This should create all required folders.

@sni sni closed this as completed Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants