The Nagios user
The Nagios software requires a separate, non-root user account for its operation. Thisuser account will be used to perform all of the checks and to communicate across thenetwork.
account is automatically created during a Jumpstart installation of anew server. The account’s password should also be set automatically, but if it doesnot work, the password should be set to the value store in Password Safe, usingthe
command.If the user account does not exist, you may add it manually to the system. Add thefollowing line to
Add the following lines to
Add the following line to
First off, let me say that there are three things you should really mind when modifyingthe Nagios configuration files.1.Always work as the user
, or else you'll be screwing up file permissions.2.Always make backup copies of the file you're working in by copying it to a file calledthe same, but with the date appended. For exampled:
.3.After making changes and before restarting Nagios to activate your changes, makesure that you validate the new configuration files. Run
$NAGIOS-BIN/nagios -v /usr/local/nagios/etc/nagios.cfg
.All configuration files are located in
. A number of these filesyou will only edit during the initial setup of the Nagios server, after which you'll mostprobably not touch them again. The remaining files are used for monitoring.