Nagios installation

From T2B Wiki
Jump to navigation Jump to search

Nagios Installation

Installation by hand of Nagios server

  • When adding the rpms for nagios by hand (eg. on nagios.iihe.ac.be) following commands need to be run.
#rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm #for 32bit machine
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm #for 64bit machine
yum install httpd php gcc glibc glibc-common gd gd-devel #install apache
yum install nagios nagios-plugins nagios-plugins-setuid #install nagios
  • Create the default Nagios web access user and set a password. The password is **** (just kidding:p)
htpasswd -c /etc/nagios/htpasswd.users nagiosadmin 
  • Verify default config files
nagios -v /etc/nagios/nagios.cfg 
  • Start Nagios
/etc/init.d/nagios start 
  • Start Apache
/etc/init.d/httpd start 


Nagios installation on a desktop

  • The ubuntu procedure was tested and is found to work rather well.
  • To check/start/stop/restart (after configuration changes) the nagios deamon:
nagios -v /etc/nagios/nagios.cfg 
/etc/init.d/nagios start
/etc/init.d/nagios reload
/etc/init.d/nagios stop




Template:TracNotice