Uses vagrant to create a CentOS 6.5 VM and install with Nagios 3.51 core
- Vagrant (http://www.vagrantup.com/downloads.html)
- Virtualbox (https://www.virtualbox.org/wiki/Downloads)
- Start the virtual machine
$ vagrant up
- Wait until the virtual machines starts and completes provisioning
- Open your web browser to
http://localhost:8080/nagios
- Credentials
nagiosadmin:nagios123
. - To login onto the host:
$ vagrant ssh
The nagios unix user password is nagios
.
NOTE: Vagrant performs the port forwarding from 2222 to 22.
ssh -l nagios -p 2222 localhost
Saves the state of the VM on disk so it can be resumed later
vagrant suspend
Restarts VM from its preserved state.
vagrant resume
Completely destroys the VM and it state, but it also frees up all the disk usage associated with the VM instance.
- Stop and destroy the virtual machine
$ vagrant destroy