O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required