Translations of this page:

Nagios 3.2.0 inclusive AddOns via Script auf Debian (stable) installieren

Das Install-Script kann von Gitorious heruntergeladen werden.

  • Vorraussetzung für dieses Script sind:
    • frisch installiertes Debian ohne zusätzliche Pakete
    • Internetverbindung für den Download der Sourcen und benötigten Pakete
  • Das bekomme ich nach der Installation:
    • Alle nötigen Debian Pakete werden nachinstalliert
    • Nagios 3.2.0
    • Plugins 1.4.14
    • NDOUtils 1.4b9
    • NRPE 2.12
    • NSCA 2.7.2
    • ndo2fs 0.2
    • Nagios Business Process View 0.9.4
    • PNP4Nagios 0.6.2
    • DokuWiki 2009-12-25
    • NagVis 1.4-nightly
    • NagTrap 0.1.3
    • NConf 1.2.5-0
    • check_mk 1.1.0
    • check_multi
    • check_[mssql|mysql|oracle]_health
    • check_hpasm
    • check_logfiles
    • snmptt 1.3
  • Was noch nicht geht:
    • NConf ist nicht so eingebunden, um Nagios zu konfigurieren

Für die Downloads und die Paketinstallation muß evtl. noch der Proxy für wget und apt-get konfiguriert werden.

  • Für wget in /etc/wgetrc
http_proxy = http://user:pass@proxy:port/
https_proxy = http://user:pass@proxy:port/
ftp_proxy = http://user:pass@proxy:port/
  • für apt-get in /etc/apt/apt.conf
Acquire::http::Proxy "http://user:pass@proxy:port/";
Acquire::ftp::Proxy "http://user:pass@proxy:port/";

Nach der Debian-Installation muß das Script nur noch auf den Rechner kopiert werden. Im Header des Script sollte man noch ein paar Variablen an seine Bedürfnisse anpassen:

# Setting some variables. Change this to fit your Environment
src_dir=/src
prefix=/usr/local/nagios
prod_cfg=nagios.cfg
nagios_user=nagios
nagios_group=nagios
nagios_cmd=nag_cmd
nagios_pwd=nagios
mysql_root_pwd=nagios
ndo_user=ndoutils
ndo_pwd=ndoutils
ndo_db=ndoutils
nagtrap_user=snmptt
nagtrap_pwd=snmptt
nagtrap_db=snmptt
nconf_user=nconf
nconf_pwd=nconf
nconf_db=nconf
nagiosadmin_user=nagiosadmin
nagiosadmin_pwd=nagios
apache_user=www-data

Und dann kann man das Script auch schon mit

./install-nagios.sh install

starten. Mit

./install-nagios.sh uninstall

wird die Installation wieder zurück gerollt.

Das Script lädt dann die Sourcen herunter und legt sie unter /src ab. Die Log-Dateien für die einzelnen Schritte werden in /tmp abgelegt.

Wenn alles gut gelaufen ist sollte der Output des Scripts so aussehen:

nagios:~# ./install_nagios.sh install

=======================================================================
==                                                                   ==
==                 Installing additional packages                    ==
==                                                                   ==
=======================================================================

apt-get update ..................................................... ok
apt-get install .................................................... ok

=======================================================================
==                                                                   ==
==                    Creating User and Groups                       ==
==                                                                   ==
=======================================================================

Creating User nagios ............................................... ok
Creating group nag_cmd ............................................. ok
Adding user to groups .............................................. ok

=======================================================================
==                                                                   ==
==                  Downloading the source code                      ==
==                                                                   ==
=======================================================================

downloading nagios-3.2.0 ........................................... ok
downloading nagios-plugins-1.4.14 .................................. ok
downloading check_multi-SVN317 ..................................... ok
downloading check_mk-1.1.0 ......................................... ok
downloading nrpe-2.12 .............................................. ok
downloading nsca-2.7.2 ............................................. ok
downloading ndoutils-1.4b9 ......................................... ok
downloading pnp4nagios-0.6.2 ....................................... ok
downloading ndo2fs ................................................. ok
downloading nagvis-1.4-nightly ..................................... ok
downloading nagios-business-process-addon-0.9.4 .................... ok
downloading nconf-1.2.6-0 .......................................... ok
downloading dokuwiki-2009-12-25b ................................... ok
downloading template-arctic ........................................ ok
downloading nagtrap-0.1.3 .......................................... ok
downloading snmptt_1.3 ............................................. ok
downloading check_hpasm-4.1 ........................................ ok
downloading check_logfiles-3.1.2 ................................... ok
downloading check_mssql_health-1.5.3 ............................... ok
downloading check_mysql_health-2.1 ................................. ok
downloading check_oracle_health-1.6.3 .............................. ok
downloading check_esx3 ............................................. ok

=======================================================================
==                                                                   ==
==                 Build and install the software                    ==
==                                                                   ==
=======================================================================

configure nagios-3.2.0 ............................................. ok
installing nagios-3.2.0 ............................................ ok
configure nagios-plugins-1.4.14 .................................... ok
installing nagios-plugins-1.4.14 ................................... ok
configure check_multi-SVN317 ....................................... ok
installing check_multi-SVN317 ...................................... ok
configure check_mk-1.1.0 ........................................... ok
installing check_mk-1.1.0 .......................................... ok
configure nrpe-2.12 ................................................ ok
installing nrpe-2.12 ............................................... ok
configure nsca-2.7.2 ............................................... ok
installing nsca-2.7.2 .............................................. ok
configure ndoutils-1.4b9 ........................................... ok
installing ndoutils-1.4b9 .......................................... ok
configure pnp4nagios-0.6.2 ......................................... ok
installing pnp4nagios-0.6.2 ........................................ ok
configure ndo2fs ................................................... ok
installing ndo2fs .................................................. ok
istalling nagvis-1.4-nightly ....................................... ok
configure nagios-business-process-addon-0.9.4 ...................... ok
installing nagios-business-process-addon-0.9.4 ..................... ok
npacking nconf-1.2.6-0 to /var/www/nconf ........................... ok
extracting dokuwiki-2009-12-25b to /usr/local/nagios/share/wiki .... ok
extracting template-arctic to /usr/local/nagios/share/wiki/lib/tpl . ok
extracting nagtrap-0.1.3 to /usr/local/nagios/share/nagtrap ........ ok
installing snmptt_1.3 .............................................. ok
configure check_hpasm-4.1 .......................................... ok
installing check_hpasm-4.1 ......................................... ok
configure check_logfiles-3.1.2 ..................................... ok
installing check_logfiles-3.1.2 .................................... ok
configure check_mssql_health-1.5.3 ................................. ok
installing check_mssql_health-1.5.3 ................................ ok
configure check_mysql_health-2.1 ................................... ok
installing check_mysql_health-2.1 .................................. ok
configure check_oracle_health-1.6.3 ................................ ok
installing check_oracle_health-1.6.3 ............................... ok

=======================================================================
==                                                                   ==
==                    Configuring the software                       ==
==                                                                   ==
=======================================================================

Creating the nagiosadmin-account nagiosadmin for the WUI ......... done
Configuring nagios-3.2.0 for startup at boot time ................ done
Setting up nagios-plugins-1.4.14 ........................ nothing to do
Setting up check_multi-SVN317 ........................... nothing to do
Enabling broker module for check_mk-1.1.0 ........................ done
Configuring nrpe-2.12 for startup at boot time ................... done
Setting Port for nsca-2.7.2 ...................................... done
Enabling nsca-2.7.2 in xinet.d ................................... done
Creating DB-User for ndoutils-1.4b9 .............................. done
Installing DB-Schema for ndoutils-1.4b9 .......................... done
Enabling broker module for ndoutils-1.4b9 ........................ done
Installing the ndo2db daemon ..................................... done
Configuring ndoutils-1.4b9 for startup at boot time .............. done
Configuring pnp4nagios-0.6.2 in bulk mode with NPCD .............. done
Configuring npcd for startup at boot time ........................ done
Enabling MouseOver PopUps for action_url ......................... done
Enabling PopUp for localhost ..................................... done
Enabling Autocomplete for Show Host .............................. done
Enabling mod_rewrite in Apache for pnp4nagios-0.6.2 .............. done
Setting up ndo2fs ................................................ done
Configuring ndo2fs for startup at boot time ...................... done
Setting up nagvis-1.4-nightly .................................... done
Adding Business-Process-View ..................................... done
Creating DB-User for nconf-1.2.6-0 ............................... done
Installing DB-Schema for nconf-1.2.6-0 ........................... done
Creating config-files for nconf-1.2.6-0 .......................... done
Changing permissions for nconf-1.2.6-0 ........................... done
Configure nagios-3.2.0 to use dokuwiki-2009-12-25 for auth. ...... done
Creating config-files for dokuwiki-2009-12-25 .................... done
Changing permissions for dokuwiki-2009-12-25 ..................... done
Creating config-files for nagtrap-0.1.3 .......................... done
Creating DB-User for nagtrap-0.1.3 ............................... done
Installing DB-Schema for nagtrap-0.1.3 ........................... done
Setting up snmptt_1.3 ............................................ done
Configuring snmptt_1.3 for startup at boot time .................. done
Configuring check_hpasm-4.1 ............................. nothing to do
Configuring check_logfiles-3.1.2 ........................ nothing to do
Configuring check_mssql_health-1.5.3 .................... nothing to do
Configuring check_mysql_health-2.1 ...................... nothing to do
Configuring check_oracle_health-1.6.3 ................... nothing to do
Adding AddOn Links ............................................... done

=======================================================================
==                                                                   ==
==                       Starting services                           ==
==                                                                   ==
=======================================================================

Restarting SNMP .................................................. done
Restarting Apache ................................................ done
Starting ndo2db .................................................. done
Starting ndo2fs .................................................. done
Starting snmptt .................................................. done
Starting NPCD .................................................... done
Starting NRPE .................................................... done
Starting Nagios .................................................. done

=======================================================================
==                                                                   ==
==                            Summary                                ==
==                                                                   ==
=======================================================================

Now you can logon to your new Nagios: http://nagios/nagios

User: nagiosadmin
Password: nagios

NConf is accessible under: http://nagios/nconf

User: admin
Password: nconf

Nagvis:   http://nagios/nagios/nagvis/
NagTrap:  http://nagios/nagios/nagtrap/
PNP:      http://nagios/pnp4nagios/
Dokuwiki: http://nagios/nagios/wiki/

To use check_oracle_health additional software has to be installed:
- Perl-Module DBI and DBD::Oracle
- Oracle or Oracle Instant Client
nagios/howtos/nagios3_installation_script.txt · Zuletzt geändert: 2010/03/01 10:05 von little
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0