naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
154 stars 63 forks source link

/etc/systemd/system/naemon.service #448

Open jonhyat opened 9 months ago

jonhyat commented 9 months ago

Hi, I got this error when I run 'sudo systemctl status naemon.service

sudo systemctl status naemon.service × naemon.service - Naemon Monitoring Daemon Loaded: loaded (/etc/systemd/system/naemon.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2024-02-01 04:49:41 EST; 28s ago Docs: http://naemon.org/documentation Process: 1888669 ExecStartPre=/usr/bin/naemon --verify-config /opt/naemon/etc/naemon/naemon.cfg > CPU: 7ms

Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: ***> One or more problems was encountered w> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: Check your configuration file(s) to en> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: directives and data definitions. If y> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: version of Naemon, you should be aware> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: may have been removed or modified in t> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: the HTML documentation regarding the c> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx naemon[1888669]: 'Whats New' section to find out what h> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx systemd[1]: naemon.service: Control process exited, code=exi> Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx systemd[1]: naemon.service: Failed with result 'exit-code'. Feb 01 04:49:41 yat-HP-Laptop-15-dw1xxx systemd[1]: Failed to start Naemon Monitoring Daemon.

sni commented 9 months ago

sounds like a "normal" object configration error to me. Have you tried: naemonctl check

jonhyat commented 9 months ago

I check right now, still the same error It seems that the naemonctl command is not found, which might indicate an issue with the installation or the executable path. The typical command for checking Naemon configuration is naemon --verify-config

sudo /usr/bin/naemon --verify-config /opt/naemon/etc/naemon/naemon.cfg