xi 5.8.6 NDO

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: xi 5.8.6 NDO

Post by andyb4u »

The server did not have the file: /usr/lib/systemd/system/nagios.service
Or the link /etc/systemd/system/multi-user.target.wants/nagios.service

I created the /usr/lib/systemd/system/nagios.service file from another server:

Code: Select all

[Unit]
Description=Nagios Core 4.4.6
Documentation=https://www.nagios.org/documentation
After=network.target local-fs.target mariadb.service

[Service]
Type=forking
ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
ExecStop=/bin/kill -s TERM ${MAINPID}
ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd
ExecReload=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecReload=/bin/kill -s HUP ${MAINPID}

[Install]
WantedBy=multi-user.target


I then recreated the link /etc/systemd/system/multi-user.target.wants/nagios.service and rebooted the server and it is now working.

Thank you both for your help.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: xi 5.8.6 NDO

Post by pbroste »

Hello @andyb4u

Thanks for providing the details on what you did to resolve this issue as this will help others with similar issues going forward.

I will go ahead and lock this,
Perry