170 likes | 205 Vues
Welcome to this presentation on Nagios interview questions and answers. Nagios/ Nagios Core is a free open-source computer software application that is used to monitors systems, networks and infrastructure. Nagios was initially released in 2002 and since then has become the go-to solution for monitoring in the DevOps lifecycle. In this presentation, we have compiled the most important Nagios interview questions that you might face in a Nagios or DevOps interview. Now, let us get started with the Nagios Interview Questions and Answers.<br><br>Why learn DevOps? <br>Simplilearnu2019s DevOps training course is designed to help you become a DevOps practitioner and apply the latest in DevOps methodology to automate your software development lifecycle right out of the class. You will master configuration management; continuous integration deployment, delivery and monitoring using DevOps tools such as Git, Docker, Jenkins, Puppet and Nagios in a practical, hands on and interactive approach. The Devops training course focuses heavily on the use of Docker containers, a technology that is revolutionizing the way apps are deployed in the cloud today and is a critical skillset to master in the cloud age.<br><br>After completing the DevOps training course you will achieve hands on expertise in various aspects of the DevOps delivery model. The practical learning outcomes of this Devops training course are:<br>An understanding of DevOps and the modern DevOps toolsets<br>The ability to automate all aspects of a modern code delivery and deployment pipeline using:<br>1. Source code management tools<br>2. Build tools<br>3. Test automation tools<br>4. Containerization through Docker<br>5. Configuration management tools<br>6. Monitoring tools<br><br>Who should take this course?<br>DevOps career opportunities are thriving worldwide. DevOps was featured as one of the 11 best jobs in America for 2017, according to CBS News, and data from Payscale.com shows that DevOps Managers earn as much as $122,234 per year, with DevOps engineers making as much as $151,461. DevOps jobs are the third-highest tech role ranked by employer demand on Indeed.com but have the second-highest talent deficit.<br>1. This DevOps training course will be of benefit the following professional roles:<br>2. Software Developers<br>3. Technical Project Managers<br>4. Architects<br>5. Operations Support<br>6. Deployment engineers<br>7. IT managers<br>8. Development managers<br><br>Learn more at https://www.simplilearn.com/cloud-computing/devops-practitioner-certification-training
E N D
1 How does Nagios help in continuous monitoring of systems, applications and services? Nagios allows you to monitor the servers and check if they are being sufficiently utilized or if there are any task failures that need to be addressed Verifies the status of the servers and services Inspects the health of your infrastructure Checks if applications are working properly and webservers are reachable
1 How does Nagios help in continuous monitoring of systems, applications and services? Nagios Server Nagios Process/Scheduler Nagios executes plugin Plugin sends results to Nagios to process Plugin sends results to Nagios to process Remote Host Plugin Plugin Nagios Web Interface (GUI) Load resource or service Remote Resource or Service Plugin checks the status and sends results Notifies the admin about the status processed by the scheduler Note for the instructor: Please explain the entire architecture of Nagios from this diagram
2 What do you mean by Nagios Remote Plugin Executor (NPRE) of Nagios? Nagios Remote Plugin Executor (NPRE) allows you to execute Nagios plugins on Linux/Unix machines. You can monitor remote machine metrics (disk usage, CPU load, etc.) • NPRE add-ons consists of 2 pieces: • The check_npreplugin that resides on the local monitoring machine • The NPRE daemon that runs on the remote Linux/Unix machine
3 What are the port numbers used by Nagios for monitoring purpose? Usually, Nagios uses the following port numbers for monitoring: 5666 5667 5668
4 What is active and passive checks in Nagios? Nagios is capable of monitoring hosts and services in two ways: • Actively • Passively Active checks are run on a regular scheduled basis Passive checks are initiated and performed by external applications/processes Active checks are initiated by the Nagios process Passive checks results are submitted to Nagios for processing
4 What is active and passive checks in Nagios? • In passive checks, an external application checks the status of a host or service • It writes the results of the check to the external command file • Nagios reads the external command file and places the results of all passive checks into a queue for later processing • Nagios may send out notifications, log alerts, etc. depending on the check result information • Active checks are initiated by the check logic in the Nagios daemon • Nagios will execute a plugin and pass information about what needs to be checked • The plugin will then check the operational state of the host or service and report results back to the Nagios daemon • It will process the results of the host or service check and send notifications Nagios Process Nagios Process Check Logic Check Logic External Command Logic Plugins External command file Hosts and Services External Applications
5 Explain main configuration file and its location in Nagios. Main Configuration file It consists of a number of directives that affect how Nagios operates. This config file is read by both the Nagios process and the CGIs A sample main configuration file will be placed into your settings directory /usr/local/Nagios/etc/resource.cfg Note for the instructor: Please mention what does the main configuration file contains
6 What is Nagios Network Analyzer? Provides an in-depth look at all network traffic sources and security threats Allows system admins to gather high-level information on the health of the network Allow you to be proactive in resolving outages, abnormal behavior and threats before they affect critical business process Provides a central view of your network traffic and bandwidth data
7 What are the benefits of HTTP and SSL certificate monitoring with Nagios? HTTP certificate monitoring SSL certificate monitoring • Increased server, services and application availability • Increased website availability • Fast detection of network outages and protocol failures • Frequent application availability • Allows web transaction and web server performance monitoring • Provides increased security
8 Explain virtualization with Nagios. Nagios can be run on different virtualization platforms like VMware, Microsoft Visual PC, Xen, Amazon EC2, etc. VMware Provides the capabilities to monitor an assortment of metrics on different platforms Ensures quick detection of service and application failures Microsoft Visual PC Xen • Has the ability to monitor the following metrics: • CPU Usage • Memory • Networking • VM status Amazon EC2 Reduced administrative overhead
9 Name the three variables that affect recursion and inheritance in Nagios. Template name that can be referenced in other object definitions so it can inherit the object’s properties/variables define someobjecttype{ object-specific variables …. nametemplate_name usename_of_template register [0/1] } Here, you specify the name of the template object that you want to inherit properties/variables from use name register This variable indicates whether or not the object definition should be registered with Nagios
10 Why is Nagios said to be Object Oriented? Using Object Configuration format, you can create object definitions that inherit properties from other object definitions. Hence Nagios is called as Object Oriented supports Object Configuration format Services Time Periods Commands Hosts 1 2 3 4 Types of Objects: . . .
11 Explain what is state stalking in Nagios. • State stalking • State stalking is used for logging purposes in Nagios • When stalking is enabled for a particular host or service, Nagios will watch that host or service very carefully • It will log any changes it sees in the output of check results • This helps in the analysis of log files