DevOps Classroom Series – 09/Jul/2020

Nagios Installation

  • Nagios is offered as
    • Nagios Core (Free)
    • Nagios Enterprise (Paid)
  • For Nagios Core installation Official Docs and Direct DevOps
  • If we follow the standard installation as mentioned in above links the following folder structure and files are very essential Preview

Configuring Nagios

  • Main nagios configuration file is nagios.cfg, when we start nagios this is the file that gets loaded.
  • Refer Here for official docs Preview
  • Configuration Options
    • log_file: Specifies the logfile to use
    • cfg_file: Specifies the configuration file to read for object definitions.
    • cfg_dir: Specifies the configuration directory where all the files in it should be read for object definitions
    • resource_file: File that stores macro definitions
    • temp_file: Path to a temporary file to store temporary data
    • lock_file: Path to a file used for synchronization
    • status_file: Path to a file that stores the current status of all hosts and services.
    • status_update_interval: Specifies how often in seconds the status file should be updated
    • nagios_user: user to run the nagios daemon
    • nagios_group: Group to run the nagios daemon
    • command_file: It specifies path to external commandline that is used by other process to control the Nagios daemon
    • service_check_timeout: After how many seconds should service check can be assumed to failed. default is 60 seconds
    • host_check_timeout: After how many seconds should host check can be assumed to failed. default is 30 seconds
    • interval_length: specifies the number of seconds for unit interval. It is not recommended to change this option.

Exercise:

  1. Install nagios core on ubuntu 18 and centos 7 machines

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin