How to install nagios on Debian ?
December 11th, 2011
0 Comments
Nagios is a famous and opensource monitoring script, being widely used by most of the host to monitor their networks and servers.
Installation of nagios on debian is very easy, just a command
apt-get install nagios3
ms1:~# apt-get install nagios3 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: cifs-utils dnsutils fping geoip-database libbind9-60 libdns69 libgeoip1 libisc62 libisccc60 libisccfg62 liblwres60 libnet-snmp-perl libpq5 libradiusclient-ng2 libtalloc2 libwbclient0 nagios-images nagios-plugins nagios-plugins-basic nagios-plugins-standard nagios3-cgi nagios3-common nagios3-core qstat samba-common samba-common-bin smbclient smbfs Suggested packages: rblcheck geoip-bin libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libio-socket-inet6-perl nagios-nrpe-plugin The following NEW packages will be installed: cifs-utils dnsutils fping geoip-database libbind9-60 libdns69 libgeoip1 libisc62 libisccc60 libisccfg62 liblwres60 libnet-snmp-perl libradiusclient-ng2 libtalloc2 nagios-images nagios-plugins nagios-plugins-basic nagios-plugins-standard nagios3 nagios3-cgi nagios3-common nagios3-core qstat samba-common-bin smbclient The following packages will be upgraded: libpq5 libwbclient0 samba-common smbfs 4 upgraded, 25 newly installed, 0 to remove and 79 not upgraded. Need to get 29.7MB of archives. After this operation, 70.9MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://security.debian.org stable/updates/main libisc62 1:9.7.3.dfsg-1~squeeze4 [162kB] Get:2 http://security.debian.org stable/updates/main libdns69 1:9.7.3.dfsg-1~squeeze4 [669kB] Get:3 http://http.us.debian.org stable/main libgeoip1 1.4.7~beta6+dfsg-1 [124kB] Get:4 http://security.debian.org stable/updates/main libisccc60 1:9.7.3.dfsg-1~squeeze4 [31.6kB] Get:5 http://security.debian.org stable/updates/main libisccfg62 1:9.7.3.dfsg-1~squeeze4 [51.1kB] Get:6 http://security.debian.org stable/updates/main libbind9-60 1:9.7.3.dfsg-1~squeeze4 [38.7kB] Get:7 http://security.debian.org stable/updates/main liblwres60 1:9.7.3.dfsg-1~squeeze4 [50.6kB] Get:8 http://security.debian.org stable/updates/main dnsutils 1:9.7.3.dfsg-1~squeeze4 [154kB] Get:9 http://security.debian.org stable/updates/main samba-common 2:3.5.6~dfsg-3squeeze5 [388kB] Get:10 http://security.debian.org stable/updates/main libpq5 8.4.9-0squeeze1 [156kB] Get:11 http://security.debian.org stable/updates/main libwbclient0 2:3.5.6~dfsg-3squeeze5 [113kB] Get:12 http://security.debian.org stable/updates/main samba-common-bin 2:3.5.6~dfsg-3squeeze5 [5845kB] Get:13 http://http.us.debian.org stable/main smbfs 2:4.5-2 [4426B] Get:14 http://http.us.debian.org stable/main libtalloc2 2.0.1-1 [18.4kB] Get:15 http://http.us.debian.org stable/main cifs-utils 2:4.5-2 [37.2kB] Get:16 http://http.us.debian.org stable/main fping 2.4b2-to-ipv6-16.1 [31.1kB] Get:17 http://http.us.debian.org stable/main geoip-database 1.4.7~beta6+dfsg-1 [2846kB] Get:18 http://security.debian.org stable/updates/main smbclient 2:3.5.6~dfsg-3squeeze5 [13.8MB] Get:19 http://http.us.debian.org stable/main libnet-snmp-perl 5.2.0-4 [111kB] Get:20 http://http.us.debian.org stable/main libradiusclient-ng2 0.5.6-1.1 [38.2kB] Get:21 http://http.us.debian.org stable/main nagios-images 0.7 [2104kB] Get:22 http://http.us.debian.org stable/main nagios-plugins-basic 1.4.15-3squeeze1 [687kB] Get:23 http://http.us.debian.org stable/main nagios3-common 3.2.1-2 [78.7kB] Get:24 http://http.us.debian.org stable/main nagios3-core 3.2.1-2 [246kB] Get:25 http://http.us.debian.org stable/main nagios3-cgi 3.2.1-2 [1345kB] Get:26 http://http.us.debian.org stable/main nagios3 3.2.1-2 [1428B] Get:27 http://http.us.debian.org stable/main qstat 2.11-3 [135kB] Get:28 http://http.us.debian.org stable/main nagios-plugins-standard 1.4.15-3squeeze1 [352kB] Get:29 http://http.us.debian.org stable/main nagios-plugins 1.4.15-3squeeze1 [21.3kB] Fetched 29.7MB in 6s (4877kB/s) Preconfiguring packages ... Selecting previously deselected package libgeoip1. (Reading database ... 25693 files and directories currently installed.) Unpacking libgeoip1 (from .../libgeoip1_1.4.7~beta6+dfsg-1_i386.deb) ... Selecting previously deselected package libisc62. Unpacking libisc62 (from .../libisc62_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Selecting previously deselected package libdns69. Unpacking libdns69 (from .../libdns69_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Selecting previously deselected package libisccc60. Unpacking libisccc60 (from .../libisccc60_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Selecting previously deselected package libisccfg62. Unpacking libisccfg62 (from .../libisccfg62_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Selecting previously deselected package libbind9-60. Unpacking libbind9-60 (from .../libbind9-60_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Selecting previously deselected package liblwres60. Unpacking liblwres60 (from .../liblwres60_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Selecting previously deselected package dnsutils. Unpacking dnsutils (from .../dnsutils_1%3a9.7.3.dfsg-1~squeeze4_i386.deb) ... Preparing to replace smbfs 2:3.2.5-4lenny12 (using .../smbfs_2%3a4.5-2_i386.deb) ... Unpacking replacement smbfs ... Preparing to replace samba-common 2:3.2.5-4lenny12 (using .../samba-common_2%3a3.5.6~dfsg-3squeeze5_all.deb) ... Unpacking replacement samba-common ... Selecting previously deselected package libtalloc2. Unpacking libtalloc2 (from .../libtalloc2_2.0.1-1_i386.deb) ... Selecting previously deselected package cifs-utils. Unpacking cifs-utils (from .../cifs-utils_2%3a4.5-2_i386.deb) ... Selecting previously deselected package fping. Unpacking fping (from .../fping_2.4b2-to-ipv6-16.1_i386.deb) ... Selecting previously deselected package geoip-database. Unpacking geoip-database (from .../geoip-database_1.4.7~beta6+dfsg-1_all.deb) ... Selecting previously deselected package libnet-snmp-perl. Unpacking libnet-snmp-perl (from .../libnet-snmp-perl_5.2.0-4_all.deb) ... Preparing to replace libpq5 8.3.11-0lenny1 (using .../libpq5_8.4.9-0squeeze1_i386.deb) ... Unpacking replacement libpq5 ... Selecting previously deselected package libradiusclient-ng2. Unpacking libradiusclient-ng2 (from .../libradiusclient-ng2_0.5.6-1.1_i386.deb) ... Preparing to replace libwbclient0 2:3.2.5-4lenny12 (using .../libwbclient0_2%3a3.5.6~dfsg-3squeeze5_i386.deb) ... Unpacking replacement libwbclient0 ... Selecting previously deselected package nagios-images. Unpacking nagios-images (from .../nagios-images_0.7_all.deb) ... Selecting previously deselected package nagios-plugins-basic. Unpacking nagios-plugins-basic (from .../nagios-plugins-basic_1.4.15-3squeeze1_i386.deb) ... Selecting previously deselected package nagios3-common. Unpacking nagios3-common (from .../nagios3-common_3.2.1-2_all.deb) ... Selecting previously deselected package nagios3-core. Unpacking nagios3-core (from .../nagios3-core_3.2.1-2_i386.deb) ... Selecting previously deselected package nagios3-cgi. Unpacking nagios3-cgi (from .../nagios3-cgi_3.2.1-2_i386.deb) ... Selecting previously deselected package nagios3. Unpacking nagios3 (from .../nagios3_3.2.1-2_i386.deb) ... Selecting previously deselected package qstat. Unpacking qstat (from .../archives/qstat_2.11-3_i386.deb) ... Selecting previously deselected package samba-common-bin. Unpacking samba-common-bin (from .../samba-common-bin_2%3a3.5.6~dfsg-3squeeze5_i386.deb) ... Selecting previously deselected package smbclient. Unpacking smbclient (from .../smbclient_2%3a3.5.6~dfsg-3squeeze5_i386.deb) ... Selecting previously deselected package nagios-plugins-standard. Unpacking nagios-plugins-standard (from .../nagios-plugins-standard_1.4.15-3squeeze1_i386.deb) ... Selecting previously deselected package nagios-plugins. Unpacking nagios-plugins (from .../nagios-plugins_1.4.15-3squeeze1_all.deb) ... Setting up libgeoip1 (1.4.7~beta6+dfsg-1) ... Setting up libisc62 (1:9.7.3.dfsg-1~squeeze4) ... Setting up libdns69 (1:9.7.3.dfsg-1~squeeze4) ... Setting up libisccc60 (1:9.7.3.dfsg-1~squeeze4) ... Setting up libisccfg62 (1:9.7.3.dfsg-1~squeeze4) ... Setting up libbind9-60 (1:9.7.3.dfsg-1~squeeze4) ... Setting up liblwres60 (1:9.7.3.dfsg-1~squeeze4) ... Setting up dnsutils (1:9.7.3.dfsg-1~squeeze4) ... Setting up samba-common (2:3.5.6~dfsg-3squeeze5) ... Installing new version of config file /etc/dhcp3/dhclient-enter-hooks.d/samba ... Installing new version of config file /etc/pam.d/samba ... Replacing config file /etc/samba/smb.conf with new version Setting up libtalloc2 (2.0.1-1) ... Setting up cifs-utils (2:4.5-2) ... Setting up smbfs (2:4.5-2) ... Setting up fping (2.4b2-to-ipv6-16.1) ... Setting up geoip-database (1.4.7~beta6+dfsg-1) ... Setting up libnet-snmp-perl (5.2.0-4) ... Setting up libpq5 (8.4.9-0squeeze1) ... Setting up libradiusclient-ng2 (0.5.6-1.1) ... Setting up libwbclient0 (2:3.5.6~dfsg-3squeeze5) ... Setting up nagios-images (0.7) ... Setting up nagios-plugins-basic (1.4.15-3squeeze1) ... Creating config file /etc/nagios-plugins/config/apt.cfg with new version Creating config file /etc/nagios-plugins/config/dhcp.cfg with new version Creating config file /etc/nagios-plugins/config/disk.cfg with new version Creating config file /etc/nagios-plugins/config/dummy.cfg with new version Creating config file /etc/nagios-plugins/config/ftp.cfg with new version Creating config file /etc/nagios-plugins/config/http.cfg with new version Creating config file /etc/nagios-plugins/config/load.cfg with new version Creating config file /etc/nagios-plugins/config/mail.cfg with new version Creating config file /etc/nagios-plugins/config/news.cfg with new version Creating config file /etc/nagios-plugins/config/ntp.cfg with new version Creating config file /etc/nagios-plugins/config/ping.cfg with new version Creating config file /etc/nagios-plugins/config/procs.cfg with new version Creating config file /etc/nagios-plugins/config/real.cfg with new version Creating config file /etc/nagios-plugins/config/ssh.cfg with new version Creating config file /etc/nagios-plugins/config/tcp_udp.cfg with new version Creating config file /etc/nagios-plugins/config/telnet.cfg with new version Creating config file /etc/nagios-plugins/config/users.cfg with new version Setting up nagios3-common (3.2.1-2) ... Adding system-user for nagios Starting nagios3 monitoring daemon: nagios3. Setting up nagios3-core (3.2.1-2) ... Setting up nagios3-cgi (3.2.1-2) ... Creating config file /etc/nagios3/apache2.conf with new version Reloading web server config: apache2. Adding password for user nagiosadmin Setting up nagios3 (3.2.1-2) ... Setting up qstat (2.11-3) ... Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze5) ... update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode. update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode. update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode. Setting up smbclient (2:3.5.6~dfsg-3squeeze5) ... Setting up nagios-plugins-standard (1.4.15-3squeeze1) ... Creating config file /etc/nagios-plugins/config/breeze.cfg with new version Creating config file /etc/nagios-plugins/config/disk-smb.cfg with new version Creating config file /etc/nagios-plugins/config/dns.cfg with new version Creating config file /etc/nagios-plugins/config/flexlm.cfg with new version Creating config file /etc/nagios-plugins/config/fping.cfg with new version Creating config file /etc/nagios-plugins/config/games.cfg with new version Creating config file /etc/nagios-plugins/config/hppjd.cfg with new version Creating config file /etc/nagios-plugins/config/ifstatus.cfg with new version Creating config file /etc/nagios-plugins/config/ldap.cfg with new version Creating config file /etc/nagios-plugins/config/mailq.cfg with new version Creating config file /etc/nagios-plugins/config/mrtg.cfg with new version Creating config file /etc/nagios-plugins/config/mysql.cfg with new version Creating config file /etc/nagios-plugins/config/netware.cfg with new version Creating config file /etc/nagios-plugins/config/nt.cfg with new version Creating config file /etc/nagios-plugins/config/pgsql.cfg with new version Creating config file /etc/nagios-plugins/config/radius.cfg with new version Creating config file /etc/nagios-plugins/config/rpc-nfs.cfg with new version Creating config file /etc/nagios-plugins/config/snmp.cfg with new version Setting up nagios-plugins (1.4.15-3squeeze1) ...
You will be asked for nagiosadmin password during this process, you should provide it and keep remember.
Restart apache after this
/etc/init.d/apache2 restart
Nagios can be accessible at
http://your_ip_address/nagios3 user: nagiosadmin pass: the one you setup while installation
Related posts:
- Installing & configuring shorewall firewall in Ubuntu/Debian
- How to install ftp server in Linux – CentOS
- Installing and configuring PPTP VPN on XEN VPS (debian/CentOS)
- Iptables firewall on Debian
- nmap – Network Mapper – Linux prospectus
















No Comment to “How to install nagios on Debian ?”