{"id":22748033,"url":"https://github.com/githubfoam/nagios-docker-sandbox","last_synced_at":"2025-03-30T05:42:31.952Z","repository":{"id":113753955,"uuid":"393331627","full_name":"githubfoam/nagios-docker-sandbox","owner":"githubfoam","description":"nagios core docker","archived":false,"fork":false,"pushed_at":"2022-05-18T12:02:39.000Z","size":172,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T07:49:40.935Z","etag":null,"topics":["docker","nagios"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubfoam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-06T09:48:07.000Z","updated_at":"2021-08-06T10:24:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d98d657-6a57-44ce-b2de-3fc2b677f3ba","html_url":"https://github.com/githubfoam/nagios-docker-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fnagios-docker-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fnagios-docker-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fnagios-docker-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fnagios-docker-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubfoam","download_url":"https://codeload.github.com/githubfoam/nagios-docker-sandbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281216,"owners_count":20752207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","nagios"],"created_at":"2024-12-11T03:19:11.931Z","updated_at":"2025-03-30T05:42:31.931Z","avatar_url":"https://github.com/githubfoam.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nagios-docker-sandbox\n\n[![ubuntu nagios core CI workflow](https://github.com/githubfoam/nagios-docker-sandbox/actions/workflows/ubuntu-workflow.yml/badge.svg?branch=main)](https://github.com/githubfoam/nagios-docker-sandbox/actions/workflows/ubuntu-workflow.yml)\n\n~~~~\nbento/ubuntu-20.04\n\ndel Vagrantfile\nvagrant init --template Vagrantfile.erb \nvagrant up vg-compute-12\n\n\u003evagrant port vg-compute-12\nThe forwarded ports for the machine are listed below. Please note that\nthese values may differ from values configured in the Vagrantfile if the\nprovider supports automatic port collision detection and resolution.\n\n    22 (guest) =\u003e 2222 (host)\n    80 (guest) =\u003e 80 (host)\n    \nvagrant ssh vg-compute-12\n\nautomated\n\nservers_list.yml\nshell_provision: \"provisioning/nagios-docker-alpine311.sh\"\n\nBrowse\nhttp://192.168.20.20:80/nagios/\nuser/password nagiosadmin/nagios\n\n\nmanually - optional\n\nvagrant@vg-compute-12:~$ cp -R /vagrant/dockerfiles/ .\n\nvagrant@vg-compute-12:~$ cd dockerfiles/1/\n\nvagrant@vg-compute-12:~/dockerfiles/1$ sudo docker build -t alpine311:nagios446 . --file=Dockerfile.alpine311\n\nvagrant@vg-compute-12:~/dockerfiles/1$ sudo docker image ls\nREPOSITORY    TAG         IMAGE ID       CREATED              SIZE\nalpine311     nagios446   c6df3cce43d3   About a minute ago   193MB\n\u003cnone\u003e        \u003cnone\u003e      e7e493d68cb3   About a minute ago   612MB\nalpine        3.11        e389ae589224   3 months ago         5.62MB\nhello-world   latest      d1165f221234   5 months ago         13.3kB\n\n1st instance\n\nvagrant@vg-compute-12:~/dockerfiles/1$ sudo docker run -d   --name nagioswebp80   -v $(pwd)/nagios/etc/:/opt/nagios/etc/   -v $(pwd)/nagios/var:/opt/nagios/var/   -v $(pwd)/nagios/ssmtp:/etc/ssmtp/   -v $(pwd)/nagios/:/opt/Custom-Nagios-Plugins   -p 80:80   -e \"TZ=Asia/Paris\"   alpine311:nagios446\nbf8275aa5d9db70b320ba867f4d71b076edab613e16df8488ed25c577de3ce60\n\nvagrant@vg-compute-12:~/dockerfiles/1$ sudo docker container ls\nCONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS         PORTS                               NAMES\n6cf245319277   alpine311:nagios446   \"/usr/local/bin/star…\"   2 minutes ago   Up 2 minutes   0.0.0.0:80-\u003e80/tcp, :::80-\u003e80/tcp   nagioswebp80\n\nBrowse\nhttp://192.168.20.20:80/nagios/\nuser/password nagiosadmin/nagios\n\n2nd instance\n\nvagrant@vg-compute-12:~/dockerfiles/1$ sudo docker run -d   --name nagioswebp84   -v $(pwd)/nagios/etc/:/opt/nagios/etc/   -v $(pwd)/nagios/var:/opt/nagios/var/   -v $(pwd)/nagios/ssmtp:/etc/ssmtp/   -v $(pwd)/n\nagios/:/opt/Custom-Nagios-Plugins   -p 84:80   -e \"TZ=Asia/Paris\"   alpine311:nagios446\n\nvagrant@vg-compute-12:~/dockerfiles/1$ sudo docker container ls\nCONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS         PORTS                               NAMES\n040f01caad4c   alpine311:nagios446   \"/usr/local/bin/star…\"   6 seconds ago   Up 6 seconds   0.0.0.0:84-\u003e80/tcp, :::84-\u003e80/tcp   nagioswebp84\n6cf245319277   alpine311:nagios446   \"/usr/local/bin/star…\"   5 minutes ago   Up 5 minutes   0.0.0.0:80-\u003e80/tcp, :::80-\u003e80/tcp   nagioswebp80\n\nBrowse\nhttp://192.168.20.20:84/nagios/\nuser/password nagiosadmin/nagios\n\n\n\n\u003evagrant destroy -f vg-compute-12\n~~~~\n\n~~~~\n\nbento/centos-stream-8\n\ndel Vagrantfile\nvagrant init --template Vagrantfile.erb \nvagrant up vg-compute-13\nvagrant ssh vg-compute-13\n\ntyping \"Dockerfile\" manually on docker instance\n\n[vagrant@vg-compute-13 ~]$ sudo docker run -it -d --name ubuntu2004-backup ubuntu:20.04 /bin/bash\n66b9500c597dd309fa65fde02837dd751571709adc5e24d196b974f3f1bb7e73\n[vagrant@vg-compute-13 ~]$ sudo docker container ls\nCONTAINER ID   IMAGE          COMMAND       CREATED          STATUS          PORTS     NAMES\n66b9500c597d   ubuntu:20.04   \"/bin/bash\"   13 seconds ago   Up 12 seconds             ubuntu2004-backup\n4cedf1ef8534   ubuntu:20.04   \"/bin/bash\"   37 minutes ago   Up 37 minutes             ubuntu2004\n[vagrant@vg-compute-13 ~]$ sudo docker exec -it ubuntu2004-backup /bin/bash\nroot@66b9500c597d:/#\n\nroot@453f4a5becb3:/# apt-get update -yq \u0026\u0026 apt-get upgrade -yq\n\n    4  apt-get install -yqq build-essential apache2 php openssl perl make      php-gd libgd-dev libapache2-mod-php libperl-dev      libssl-dev daemon wget apache2-utils unzip\n    6  useradd nagios\n    7  groupadd nagcmd\n    8  usermod -a -G nagcmd nagios\n    9  usermod -a -G nagcmd www-data\n   10  cd /tmp\n   11  wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.5.tar.gz\n   13  tar -zxvf /tmp/nagios-4.4.5.tar.gz\n   14  cd /tmp/nagios-4.4.5/\n   17  ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled/\n   19  make all\n   20  history\n   21  make install\n   22  make install-init\n   23  make install-config\n   24  make install-commandmode\n   25  make install-webconf\n   26  cd /tmp/nagios-4.4.5\n   27  htpasswd -c /usr/local/nagios/etc/htpasswd.users\n   28  a2enmod cgi\n\nroot@66b9500c597d:/tmp/nagios-4.4.5# systemctl restart apache2\nbash: systemctl: command not found\n\n~~~~\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fnagios-docker-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubfoam%2Fnagios-docker-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fnagios-docker-sandbox/lists"}