1.3 Starting Nagios Automatically

The command make install-init installs a suitable init script for the system start. Here make automatically tries to detect the correct path, which for most Linux distributions is /etc/init.d. Depending on your system, this may not be correct, which is why you should check it. In order for Nagios to start automatically when the system is booted, symbolic links are created in the /etc/rc?.d directories. With Debian and Ubuntu using System-V-Init, the included system script update-rc.d performs this task:

linux:~ # update-rc.d nagios defaults 99

This command creates symlinks beginning with the prefix S99 to the directories rc2.d to rc5.d, so that Nagios starts automatically when changing to runlevels 2 to 5. In addition ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.