{"id":20053180,"url":"https://github.com/irezaul/nagios","last_synced_at":"2026-02-01T21:02:41.610Z","repository":{"id":140058159,"uuid":"385956528","full_name":"irezaul/Nagios","owner":"irezaul","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-23T17:43:06.000Z","size":291,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T10:42:31.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irezaul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-14T13:48:03.000Z","updated_at":"2021-08-23T17:43:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5a4a54d-df90-4d94-ae15-5b29c84c94e6","html_url":"https://github.com/irezaul/Nagios","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/irezaul/Nagios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irezaul%2FNagios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irezaul%2FNagios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irezaul%2FNagios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irezaul%2FNagios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irezaul","download_url":"https://codeload.github.com/irezaul/Nagios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irezaul%2FNagios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28990695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T20:57:35.821Z","status":"ssl_error","status_checked_at":"2026-02-01T20:57:29.580Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T12:23:20.348Z","updated_at":"2026-02-01T21:02:41.596Z","avatar_url":"https://github.com/irezaul.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nagios - `Monitoring Tool`\n\n### CICD- Countinuous Integration \u0026 Continuous Deployment\n\n`Countinuous Integration`\nCountinuous Integration  |  BY \n| :--- | ---: \nPlanning  |  Jira \nCoding  | git\nBuild   | Maven \nTesting | Selenium\n\n`Continuous Deployment or Continuous Delivery`\nContinuous Deployment  |  BY \n| :--- | ---: \nDeployment is 2 types | 1. Treditional deployment 2. Containerized deployment\nTreditional| puppet or Ansible  | ----\nContainerized deployment | Docker/ Kubernetes\n\n`Countinuous Monitoring`\n\nMonitoring  |  BY \n| :--- | ---: \nMonitoring  | Nagios |\n \n \n #### 1. Update Apt\n ```bash\n apt-get update\n ```\n #### 2. Install Nagios \u0026 dependencies\n ```bash\n apt-get update \u0026\u0026 apt-get install build-essential apache2 php openssl perl make php-gd libgd-dev libapache2-mod-php libperl-dev libssl-dev deamon wget apache2-utlis unzip\n```\n### On VM-Machine use this command\n```bash\napt-get update \u0026\u0026 apt install -y autoconf bc gawk dc build-essential gcc libc6 make wget unzip apache2 php libapache2-mod-php libgd-dev libmcrcd ypt-dev make libssl-dev snmp libnet-snmp-perl gettext\n```\n### `also we can install one by one`\n``` bash\napt-get install build-essential\n\napt-get install apache2\n\napt-get install php\n\napt-get install openssl\n\napt-get install perl\n\napt-get install make\n\napt-get install php-gd\n\napt-get install libgd-dev\n\napt-get install libapache2-mod-php\n\napt-get install libperl-dev\n\napt-get install libssl-dev\n\nsudo apt install librecad\n\nsudo apt-get install daemon\n\napt-get install wget\n\napt-get install  apache2-utils\n\napt-get install  unzip\n\n```\n#### 3. Check if Apache is installed in Nagios Server by pasting public IP or static IP into the web browser -\n\u003e Create nagios user and nagcmd group and add the nagios and apache user to the part of the nagcmd group.\n```bash\nuseradd nagios\ngroupadd nagcmd\nusermod -a -G nagcmd nagios\nusermod -a -G nagcmd www-data\n```\n### 4. Nagios Installation (cont)\n#### Install `Nagios Core`\n```bash\ncd /tmp \nwget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.6.tar.gz\ntar -zxvf /tmp/nagios-4.4.6.tar.gz\ncd /tmp/nagios-4.4.6/\n```\n#### 5. Perform the below steps to compile the Nagios from the source code\n```bash\n./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled/\nmake all\nmake install\nmake install-init\nmake install-config\nmake install-commandmode\n```\n#### 6. Execute the below command in the terminal to install Nagios web interface\n```bash\nmake install-webconf\n```\n#### 7. Create Nagios Login and Password (use “nagios” as password)\n```bash\nhtpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin\n```\n#### 8. Run the following command: \n```bash\na2enmod cgi\n```\n#### 9. Restart Apache Service to make the new settings take effect\n```bash\nsystemctl restart apache2.service\n```\n### Nagios Installation (cont)\n#### 10. In web `browser` type: \u003cserver public-ip/nagios\u003e like- `192.168.x.x/nagios` Click Hosts and you will see an error. This is because Nagios plugins has not been installed yet. Install Nagios plugins:\n```bash\ncd /tmp\nwget https://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz\ntar -zxvf /tmp/nagios-plugins-2.3.3.tar.gz\ncd /tmp/nagios-plugins-2.3.3/\n```\n#### 11. Compile and install the plugins\n```bash\n./configure --with-nagios-user=nagios --with-nagios-group=nagios\nmake\nmake install\n```\n\n#### 12. Verify the sample Nagios configuration files. You should have “0” warnings and errors\n```bash\n/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg\n```\n#### 13. Enable Nagios to start automatically at system startup and start Nagios service\n```bash\nsystemctl enable nagios\nsystemctl start nagios\n```\n\u003e Your localhost on Nagios dashboard should be up and services should come up\n### * Nagios `File System`\n![Screenshot 2021-07-15 at 8 29 12 PM](https://user-images.githubusercontent.com/77927449/125805296-2197a051-6e9f-4cbf-b835-e567fff1d7f5.png)\n#### * Nagios File System (cont)\n\u003e Nagios is installed under directory `/usr/local/nagios/`\n![nagios file system](https://user-images.githubusercontent.com/77927449/125806734-1fccbdc3-f005-4207-8ee7-a613fb5ab3ba.png)\n\n\u003e Under this directory libexec contain all the plugins as binary files. By default there are total 50 plus plugins installed\n![50 File system](https://user-images.githubusercontent.com/77927449/125811711-8af25c1d-89e4-4073-8e06-f0887196c86f.png)\n\n\u003e The etc directory is the main operational directory and contain nagios.cfg file and objects directory `/usr/local/nagios/etc/objects/`\n![object](https://user-images.githubusercontent.com/77927449/125817605-5c4f4af4-824f-4505-80f3-79a8c74869f5.png)\n\n\u003e All the object resources in Nagios are defined inside the nagios.cfg file. This file determines what kind of resource/objects can be declared on the dashboard which can be external servers (linux/windows), log files, printers, routers, switches etc\n![nagios_cfg](https://user-images.githubusercontent.com/77927449/125818409-2ed42844-42b9-4921-8372-898c4d4cc1ab.png)\n\n##### Each element inside the Nagios dashboard is an object and stored inside the objects directory under the extension `“.cfg”`. These are the configuration files. All Nagios objects reside inside these cfg files\n##### Go to directory: `cd /usr/local/nagios/etc/objects` and list all files\n\n\u003e Open the localhost.cfg and you will see the services \n\n![localhost.cfg](https://lh4.googleusercontent.com/-i-d5Gm-4zFbcYN3EbRo2Q6koFSm3ik4SzoZRTeoONcH1loZYke_l4FqWinF_dJWBrtQGu1BBhpO6LWniIKuF9mE1DbAKLat2OVGQEj9gAnZbl7vzZM_JSwJkk8m6fPIe92yKoJ6GFM)\n\n![up](https://lh3.googleusercontent.com/MZc97Fe3zchSu_Io6cuM13wKxPms7WF6nRN1x-WCVlYpedsrg7l2JevzC1gprySTyD3r6Ejk_cX1WhWn5QGwBNge1NOUsyll-tLuNjadDLupbSkHQYwzIgbTLwceM658UhkuiTxq9S0)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firezaul%2Fnagios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firezaul%2Fnagios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firezaul%2Fnagios/lists"}