Page 1 of 1

NNA Won't start!

Posted: Tue Nov 02, 2021 2:05 pm
by BanditBBS
So I ran yum update on both my NNA servers and now neither of them will work. To be fair, we aren't really using them, so not sure if they were fully before I ran the yum update. This is what I get when trying to start the service:

Code: Select all

● nagiosna.service - NagiosNA Daemon
   Loaded: loaded (/usr/lib/systemd/system/nagiosna.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2021-11-02 11:57:29 PDT; 1min 7s ago
  Process: 1613 ExecStart=/etc/rc.d/init.d/nagiosna start (code=exited, status=127)

Nov 02 11:57:29 cms-365-nna01.itciss.com systemd[1]: Starting NagiosNA Daemon...
Nov 02 11:57:29 cms-365-nna01.itciss.com nagiosna[1613]: /usr/bin/env: ‘python’: No such file or directory
Nov 02 11:57:29 cms-365-nna01.itciss.com systemd[1]: nagiosna.service: Control process exited, code=exited status=127
Nov 02 11:57:29 cms-365-nna01.itciss.com systemd[1]: nagiosna.service: Failed with result 'exit-code'.
Nov 02 11:57:29 cms-365-nna01.itciss.com systemd[1]: Failed to start NagiosNA Daemon.
I also applied the latest verions of NNA(was 1 behind) yesterday on both servers.

Re: NNA Won't start!

Posted: Tue Nov 02, 2021 3:24 pm
by gsmith
Hey there,

Please run the following and send me the output:

Code: Select all

whereis python

ls -l /usr/bin
Thanks

Re: NNA Won't start!

Posted: Tue Nov 02, 2021 3:30 pm
by BanditBBS

Code: Select all

[root@cms-365-nna01 ~]# whereis python
python: /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python3.6-config /usr/bin/python3.6m-config /usr/bin/python3.6m-x86_64-config /usr/lib/python3.6 /usr/lib64/python3.6 /usr/include/python3.6m /usr/share/man/man1/python.1.gz
The LS is way too long to post here, anything particular you are looking for there?

Re: NNA Won't start!

Posted: Tue Nov 02, 2021 5:01 pm
by gsmith
Hi,

No, that's ok.

Please run the following on the command line:

Code: Select all

sudo ln -s /usr/bin/python3.6 /usr/bin/python
Then try to fire up NNA.

Let me know how things go please.

Thanks

Re: NNA Won't start!

Posted: Tue Nov 02, 2021 5:18 pm
by BanditBBS
That fixed it. Thanks

Re: NNA Won't start!

Posted: Tue Nov 02, 2021 5:53 pm
by gsmith
Fantastic!

Have a good night.