Install Nagios On Ubuntu 12.04

1) Install Nagios. Type this command line:

2013-09-14_053520

2) It will go through, and ask you about what mail server you want to use:

2013-09-14_053619

3) Choose your type of email configuration.

2013-09-14_053633

4) It will then ask you about the domain name you want to have email sent from. Again, fill that out based upon your needs.

2013-09-14_053648

5) It will ask you what password you want to use.

2013-09-14_053711

6) Confirm your password.

2013-09-14_053726

7) Installing the application.

2013-09-14_053747

8) We need to edit a few files. Start by opening /etc/nagios3/nagios.cfg.  Use this command:

2013-09-14_053839

9) Search for check_external_commands, and turn the check_external_commands=0 into check_external_commands=1

2013-09-14_053821

10) Now, restart apache by running:

2013-09-14_055058

 

11) We need to edit /etc/group. There should be a line like this in there:  nagios:x:131:

Change to this:

2013-09-14_055151

 

12) Now, we need to edit the /var/lib/nagios3/rw files permission with:

2013-09-14_055212

 

13) Again, restart your nagios3 and apache services.

2013-09-14_055256

 

14) If you want to monitor http and disk space, type this command line:

2013-09-14_055314

 

15) Change to this.

2013-09-14_055411

 

16) Do the same thing for this file:

2013-09-14_055432

 

17) Change to this.

2013-09-14_055517

 

18) Yeah!

2013-09-13_055512

19) And you should be good to go! Happy monitoring!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s