If you want to install from the RPMs via yum then this worked for me on FC6:-
To install:-
yum install nagios nagios-plugins nagios-plugins-all
If apache is not already running:-
/sbin/chkconfig --levels 345 httpd on
/sbin/service httpd start (or restart if already running)
Create a nagios administrative user:-
htpasswd -c /etc/nagios/passwd nagios-admin (enter password)
(NB nagios-admin is used in localhost.cfg but nagiosadmin is used in cgi.cfg though
commented out. The online documentation uses nagiosadmin)
Check with web browser:-
http://localhost/nagios/ (must have trailing slash)
Make some configuration files from the supplied samples:-
cd /etc/nagios
for f in *-sample; do cp $f `basename $f -sample`; done
cd /etc/nagios/private
for f in *-sample; do cp $f `basename $f -sample`; done
The samples run 5 checks for the localhost.
(Optional: add an email alias for nagios in /etc/aliases
and run /usr/bin/newaliases. See /etc/nagios/nagios.cfg)
Start up nagios:-
/sbin/chkconfig --levels 345 nagios on
/sbin/service nagios start
Have another look at the web browser - click on 'Service Detail' at the
left hand side - it should show the 5 local tests as either 'OK' or 'PENDING'.
They should all eventually turn 'OK' (unless one is actually failing).
You can then configure checks for the hosts you eventually want to monitor.
I hope this is useful to at least one person!