Our Support: During the COVID-19 outbreak, we request learners to CALL US for Special Discounts!

- DevOps Blogs -

Nagios Interview Questions & Answers in Linux for 2020

Introduction

For DevOps professional, Nagios is one of the most imperative software tools that can provide them the facility of continuous monitoring. Nagios can provide relevant feedback and update of new software version release; this is what developers require in this world of software where every day new versions of the software get released.

DevOps need such tools to perform continuous monitoring. Even if someone applies for DevOps profile then he or she can be asked about Nagios. So here, in this blog, we are going to cover all possible Nagios interview questions that can be asked by you in DevOps interview.

Nagios Interview Questions

Nagios Tricky Interview Question Answer

Q1). Explain Nagios or what is Nagios, explain it.

Nagios is a monitoring tool that is used for continuous monitoring of system services, applications, and business processes. Even in case of any failure, Nagios tool can alert the technical staff about the problem. As a result, DevOps professionals or technical team members can begin the required remediation processes before the negative impact of any business processes, customers, and end-users. Here, in such cases, the team does not have to explain anyone that why an unseen infrastructure outage affects the bottom line of the organization.

Now as you know ‘what is Nagios?’ then you can also mention the things that can be achieved by the Nagios DevOps tool:

  • Automatic problem fixing as and when they occur.
  • Infrastructure upgrades planning even before any failure due to an outdated system.
  • Technical team response coordination.
  • To ensure that SLA of your organization will be met.
  • To monitor the business process and the entire infrastructure.
  • To respond to issues even as and when they arise.

Above-mentioned are all major factors that make Nagios a complete tool for continuous monitoring. (Here in such a question you can also add some advantages of Nagios if time permits.)

Q2). Explain the working of Nagios, how does it work?

On a server, Nagios either runs as a service or daemon. Plugins that reside on the same server are being run by the Nagios; basically, they contact the hosts or servers of your network or on the internet. We can check the status by web interface; even notifications can also be received by email or SMS when something happens.

Nagios service runs certain scripts after a fixed time interval, so it acts as a scheduler. It can store the script result and run other scripts when it is changed.

Q3). Explain Nagios plugins.

Plugins are basically scripts of Perl and Shell that can be run through the command line to check the service status of the host. Nagios can also use the result of the plugins that determine the present status of host or services of the network.

Now an answer to the questions that why we need plugins, you can also add here that, plugins is executed by Nagios to check the status of any service or host. A check is performed by the plugin and the result is returned to Nagios. The result is processed by Nagios to take the necessary actions.

Read: What is Git? Git Tutorial Guide for Beginners

Q4). What do you understand by NRPE or Nagios Remote Plugin Executor of Nagios?

NRPE or Nagios remote plugin executor is designed to allow execution of plugins on remote Linux or UNIX based machines. These plugins are executed to monitor the usage of CPU load and memory usage like a local resource of remote machines. It is required as this information is not usually exposed publicly to an external machine and for this purpose, NRPE agent is installed on remote machines.

NRPE add-on or plugin has two components that work together to perform the task:

  • A ‘check_nrpe’ plugin that resides on the local machine and it is used for monitoring
  • The NRPE daemon that can run on remote machines

DevOps Training & Certification Course

  • No cost for a Demo Class
  • Industry Expert as your Trainer
  • Available as per your schedule
  • Customer Support Available

Q5). What are port numbers used by Nagios for monitoring purpose?

Usually, the port number 5666, 5667 and 5668 are used for monitoring in Nagios DevOps tool.

Q6). Explain main configuration file and its location.

Following is the description of the main configuration file:

Resource File: To store sensitive information like user details that may include username and passwords it is used. The information is not made available to CGI.

Object Definition File:  In this file, you can find and enlist the details of resources that you want to monitor and how you want the monitoring to be performed? Host services, host groups, contacts, contact groups, commands, etc. are defined in this file.

CGI Configuration File: Several directives are contained and stored in CGI file that can affect the CGI o. A reference to the main configuration file is also stored in this file, so that CGI can know the details of Nagios configuration as and when required and the location of object definition storage.

Read: Difference Between Eclipse and IntelliJ IDE

Q7). What are state types of Nagios?

Following are the state types of Nagios:

  • Service or host state type
  • Some states like OK, WARNING, UP, or DOWN state host or service
  • Two state types that are SOFT state or HARD state

Q8). What are SOFT and HARD states?

We can define soft and hard states as:

  • In case of the SOFT state, the service or host check results are not OK or not up to the mark, even in case if service check has not been rechecked the number of times that are specified for it moreover the times that is being specified by the max_check_attempts directive. Recovery of the component from such Soft error is called Soft Recovery.
  • When a host or service check result is not ‘OK’ and it has been checked for the number of times, specified by the max_check_attempts directive in the host definition, then this error is known as Hard Error. Recovery of any service from this error is known as Hard Recovery.

Q9). What is state stalking in Nagios?

State stalking is used for logging purpose in Nagios. When stalking is enabled for any service or host then Nagios watch it very carefully and store any changes that if found in the check result of that resource.

Stalking can be helpful in later stages of log file analysis. Here in such scenario, any host or service check can be performed only if it has been updated for the last time.

Q10). Why is it being said that Nagios is object oriented?

Nagios has object configuration format where you can create object definitions, that can inherit the properties from other hostnames or object definitions. In this way, you can specify the component relationships easily. The components are considered as objects by the Nagios.

Q11). Which three Nagios variables can affect recursion and inheritance in Nagios?

The three variables that affect recursion and inheritance are:

  • Name
  • Use
  • Register

Here, Name is just a placeholder that can be used by the other objects. Use variable can be used to define parent object, whose properties are to be used. Registers are also used for storing values that can be either 0 or 1. Register values cannot be inherited.

Q12). How Does Flap detection work in Nagios?

When a service or host changes their state frequently, then it is called flapping that may cause lots of problems and generate too many recovery notifications. Flapping is detected in the following manner:

  • Store the results of last 21 checks and then analyze this historical check result to know the number of transitions that are being taken place by the host or service.
  • Know the percent state change value with the help of state transition
  • Compare the value of this state change against low and high flapping thresholds
  • When this value exceeds then the highest specified threshold then it is called flapping
  • When this percent state value goes down the specified value then it is said that flapping has been stopped.

Q13). Explain main configuration file of Nagios.

Several directives are contained in the main configuration file that can affect Nagios daemon. This file is read by both CGIs and Nagios daemons.

Read: How can Convergence Impact and Accelerate the DevOps Operations?

A Nagios file is usually created in the base Nagios directory, at the time when you run configuration script. The name of this file that is the main configuration file is ‘nagios.cfg’ and is usually placed in etc/subdirectory

Q14). How is distributed monitoring being done in Nagios?

There is a distributed monitoring scheme in Nagios with the help of which you can monitor your complete enterprise that may include local slave instances. In such environment, Nagios submit the result of reports of tasks to a single machine. All configuration, reporting, and notification can be managed at the master machine and here slaves do all the work. Here Nagios uses passive checks that are basically external applications that can send the results back to Nagios.

Q15). Differentiate between active and passive check.

The major difference between active and passive check is that Active checks are initiated by Nagios itself, while Passive checks are performed by external applications.

DevOps Training & Certification Course

  • Personalized Free Consultation
  • Access to Our Learning Management System
  • Access to Our Course Curriculum
  • Be a Part of Our Free Demo Class

Conclusion

Knowing answers to all the questions mentioned above is not enough, but you should join DevOps certification to increase and upgrade your skills. We at Janbask training are here to help you and master Devops concepts practically.  So, what are you waiting for just enroll NOW!!.




    Janbask Training

    A dynamic, highly professional, and a global online training course provider committed to propelling the next generation of technology learners with a whole new way of training experience.


Comments

Trending Courses

AWS

  • AWS & Fundamentals of Linux
  • Amazon Simple Storage Service
  • Elastic Compute Cloud
  • Databases Overview & Amazon Route 53

Upcoming Class

0 day 14 Jul 2020

DevOps

  • Intro to DevOps
  • GIT and Maven
  • Jenkins & Ansible
  • Docker and Cloud Computing

Upcoming Class

17 days 31 Jul 2020

Data Science

  • Data Science Introduction
  • Hadoop and Spark Overview
  • Python & Intro to R Programming
  • Machine Learning

Upcoming Class

2 days 16 Jul 2020

Hadoop

  • Architecture, HDFS & MapReduce
  • Unix Shell & Apache Pig Installation
  • HIVE Installation & User-Defined Functions
  • SQOOP & Hbase Installation

Upcoming Class

3 days 17 Jul 2020

Salesforce

  • Salesforce Configuration Introduction
  • Security & Automation Process
  • Sales & Service Cloud
  • Apex Programming, SOQL & SOSL

Upcoming Class

1 day 15 Jul 2020

QA

  • Introduction and Software Testing
  • Software Test Life Cycle
  • Automation Testing and API Testing
  • Selenium framework development using Testing

Upcoming Class

10 days 24 Jul 2020

Business Analyst

  • BA & Stakeholders Overview
  • BPMN, Requirement Elicitation
  • BA Tools & Design Documents
  • Enterprise Analysis, Agile & Scrum

Upcoming Class

0 day 14 Jul 2020

MS SQL Server

  • Introduction & Database Query
  • Programming, Indexes & System Functions
  • SSIS Package Development Procedures
  • SSRS Report Design

Upcoming Class

1 day 15 Jul 2020

Python

  • Features of Python
  • Python Editors and IDEs
  • Data types and Variables
  • Python File Operation

Upcoming Class

9 days 23 Jul 2020

Artificial Intelligence

  • Components of AI
  • Categories of Machine Learning
  • Recurrent Neural Networks
  • Recurrent Neural Networks

Upcoming Class

0 day 14 Jul 2020

Machine Learning

  • Introduction to Machine Learning & Python
  • Machine Learning: Supervised Learning
  • Machine Learning: Unsupervised Learning

Upcoming Class

3 days 17 Jul 2020

Tableau

  • Introduction to Tableau Desktop
  • Data Transformation Methods
  • Configuring tableau server
  • Integration with R & Hadoop

Upcoming Class

-1 day 13 Jul 2020

Search Posts

Reset

Receive Latest Materials and Offers on DevOps Course

Interviews