Linux : Install Nagios with Debian 6


This is an older page, please go to this site for more info....

Nagios is a service monitoring system, free and widely used in enterprise it industry. For details about nagios , we can find it here: www.nagios.org


Today , I will install nagios with Debian 6. I will use fresh debian 6 with minimalistic package only. Change your /etc/apt/sources.list into this :

deb http://ftp.tw.debian.org/debian/ squeeze main
deb-src http://ftp.tw.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://ftp.tw.debian.org/debian/ squeeze-updates main
deb-src http://ftp.tw.debian.org/debian/ squeeze-updates main

By default, package nagios is already included in Debian 6 main repository. For  confirmation run this command:

apt-cache search nagios

It will listing all related nagios package.

And then , install all nagios related package:

apt-get install nagios*

*remember to put asterisk

You will be presented with the question that you need to fill in the information required :







and last, I get this:



this is happen because my mysql password did not match, to resolve this I change the mysql password using this:

change your mysqladmin password using this command:

mysqladmin password new-password

test is it ok or not:

mysql -u root -p new-password

if got this prompt mysql> , its working perfect.

softlink your nagios apache config into apache2 config file using this command:

ln -s /etc/nagios3/apache2.conf /etc/apache2/sites-enabled/nagios3.conf

remember to restart apache if you want to activate a new configuration.

and then voila, finish installing right, verify it can be accessable via web browser.

check apache running or not:

/etc/init.d/apache status

check nagios running or not:

/etc/init.d/nagios status

if all running , then access your nagios using the url http://localhost/nagios3/

and give the username and password you set during installation.

*default nagios username is nagiosadmin.

Comments

Post a Comment

Popular posts from this blog

HP-UX : Server Model and Processor Details.

HP-UX : Hardware Path