{"id":27,"date":"2022-12-31T07:36:57","date_gmt":"2022-12-31T07:36:57","guid":{"rendered":"https:\/\/cloudtechs.club\/?page_id=27"},"modified":"2023-01-14T11:25:23","modified_gmt":"2023-01-14T11:25:23","slug":"continuous-monitoring-tool-nagios","status":"publish","type":"page","link":"https:\/\/cloudtechs.club\/index.php\/continuous-monitoring-tool-nagios\/","title":{"rendered":"Continuous Monitoring Tool \u2013 Nagios"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Hello Geeks..!!! Thanks for your love and support. I will be starting this series just to provide little bit of background on monitoring tool as its one of the key aspects within infrastructure and modern application deployments failure scenarios.<\/p>\n\n\n\n<p>With this let\u2019s get started\u2026<\/p>\n\n\n\n<p>I will be covering here continuous monitoring tool &#8211; Nagios. Continuous monitoring is a process to detect, report, respond all the attacks which occur in its infrastructure. Once the application is deployed into the server, the role of continuous monitoring comes in to play. The entire process is all about taking care of the company\u2019s infrastructure and respond appropriately. There are many other monitoring tools like Splunk , Prometheus , ELK , Liborto , Sensu etc which I will cover later in this series.<\/p>\n\n\n\n<p>Nagios is an open-source software for continuous monitoring of systems , networks and infrastructure which works on client server architecture. It runs plugins stored on a server which are connected with hosts. In case of any failures, it alerts about the issues and technical team can perform recovery operations immediately and reduce downtime.<\/p>\n\n\n\n<p><strong>History<\/strong><\/p>\n\n\n\n<p>This tool was developed by Ethan galstad in year 1999 as part of Netsaint distribution. In 2002 , it was renamed as Nagios because of trademark issues with the name \u201cNetsaint\u201d. Nagios releases its first commercial version \u201cNagios X1\u201d in year 2009. This project was again renamed as \u201cNagios Core\u201d.<\/p>\n\n\n\n<p><strong>Features of Nagios<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Good logging mechanism and database system.<\/li>\n\n\n\n<li>Informative and attractive web interface.<\/li>\n\n\n\n<li>Automatically sends email alerts if any conditions change within Infrastructure.<\/li>\n\n\n\n<li>It helps in detecting and monitor network services like https , snmp , ftp etc and server crashes.<\/li>\n<\/ul>\n\n\n\n<p><strong>Nagios Architecture<\/strong><\/p>\n\n\n\n<p>Nagios is a client-server architecture. Within network , a nagios server is running on host or virtual machine and plugins are installed on all remote system which are required under monitoring umbrella.<\/p>\n\n\n\n<figure class=\"wp-block-gallery alignleft has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"656\" data-id=\"144\" src=\"https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Nagios1.png\" alt=\"\" class=\"wp-image-144\" srcset=\"https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Nagios1.png 904w, https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Nagios1-300x218.png 300w, https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Nagios1-768x557.png 768w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Let\u2019s discuss how it works in background..<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create configuration files consist of IP\u2019s \/ username\/password and parameters required for host monitoring.<\/li>\n\n\n\n<li>Daemon read those details from the configuration files and look for which data need to be collected.<\/li>\n\n\n\n<li>Daemon uses NRPE plugin i.e Nagios remote plugin executer to collect data from the nodes and stress within database. To help NRPE plugin , each node installed with something called NRPE agents.<\/li>\n\n\n\n<li>It uses port numbers 5666 , 5667 and 5668&nbsp; to monitor it clients.<\/li>\n\n\n\n<li>Finally , shows everything on database.<\/li>\n<\/ul>\n\n\n\n<p><strong>Let\u2019s consider quick example of plugin work<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Picture-5.png\" alt=\"\" class=\"wp-image-199\" width=\"544\" height=\"288\" srcset=\"https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Picture-5.png 736w, https:\/\/cloudtechs.club\/wp-content\/uploads\/2023\/01\/Picture-5-300x159.png 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Check_nt is a plugin to monitor a windows machine which is mostly available in the monitoring server<\/li>\n\n\n\n<li>NSClinet++ should be installed in every Windows machine that you wants to monitor<\/li>\n\n\n\n<li>There is an SSL connection between the server and the host which continuously exchange information with each other<\/li>\n\n\n\n<li>Likewise, NRPE(Nagios Remote plug-in Executor) and NSCA plugins are used to monitor Linux and Mac OS X respectively.<\/li>\n<\/ul>\n\n\n\n<p>That all for now. In next post , I will setup the Nagios and show demo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Geeks..!!! Thanks for your love and support. I will be starting this series just to provide little bit of background on monitoring tool as its one of the key aspects within infrastructure and","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-27","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/pages\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":4,"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/pages\/27\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/pages\/27\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/cloudtechs.club\/index.php\/wp-json\/wp\/v2\/media?parent=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}