Nagios 4 (4.10 RC1) Startup (SuSE 13.2)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios 4 (4.10 RC1) Startup (SuSE 13.2)

Post by jdalrymple »

lvlammert wrote:Is there a way to get the nagios init script running on systemd?
Like I said - it works in EL7. I'm not a SUSE expert (or even novice) so I don't know what changes they've made that are breaking it. That said what I can offer is a rudimentary service script that works in EL7:

Code: Select all

[Unit]
Description=Nagios Core Monitoring Daemon
After=network.target

[Service]
User=nagios
Group=nagios
Type=forking
ExecStart=/usr/lib/systemd/scripts/nagios start
ExecStop=/usr/lib/systemd/scripts/nagios stop

[Install]
WantedBy=multi-user.target
You'll need to move your existing init script to the location specified. (copy instead of move otherwise XI will break - it may anyway)

-- edit --
Added the bit about XI
Locked