Installation of Nagios on Linux:
→ To start nagios core installation you must have your ec2 instance up and run and have already configured SSH access to the instance.
Step-1: Install pre-requisite softwares on your EC2 machine prior to Nagios installation like apache, php, gcc compiler and gd developement libraries
Step-2: Create account information you need to setup a nagios user run the following commands
Now, it ask to enter new password give ‘12345’ as password
Step-3: Download nagios core and the plugins. create a directory for storing the downloads
Download the source code tarballs of both nagios and the nagios plugins
Step-4: compile and install nagios extract the nagios sourcecode tarball
Run the configuration script with the name of the group which you have created in above step
Compile the nagios source code
install binaries, init script, sample config files and set permissions on the external command directly (to compile init script)
Step-5: configure the web interface
Step-6: create a ‘nagiosadmin’ account for login into the nagios web interface set password as well
Asking for password, set a new pwd
Step-7: compile and install the nagios plugins. Extract the nagios plugins.
source code tarball
compile and install the plugins →
Step-8: start nagion. add nagios to the list of system services and have it automatically start when the system boots.
verify the sample nagios configuration files →
if there are no errors, start nagios
Step-9: copy public ip of ec2 instance and paste in google chrome, in given way
for e.g → 20.1.1.1/nagios/
ask for username and password
ec2-user
sudo su
yum install httpd php