Newbie: Install help

This is my first nagios install and once I enter /usr/sbin/nagios -v /etc/nagios/nagios.cfg to test the config I get this error mess

Can someone plz tell what causes this error. I understand that the error is telling me that the object name is not defined but where do I define it…

Thx in advance…

[root@localhost sbin]# /usr/sbin/nagios -v /etc/nagios/nagios.cfg

Nagios 2.5
Copyright © 1999-2006 Ethan Galstad (nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data…

Running pre-flight check on configuration data…

Checking services…
Error: Service check command ‘check_ssh’ specified in service ‘Firewall’ for host ‘bham-firewall’ not defined anywhere!
Error: Check period ‘24x7’ specified for service ‘Firewall’ on host ‘bham-firewall’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for service ‘Firewall’ on host ‘bham-firewall’ is not defined anywhere!
Error: Service check command ‘check_mailq’ specified in service ‘Mailq’ for host ‘mail’ not defined anywhere!
Error: Check period ‘24x7’ specified for service ‘Mailq’ on host ‘mail’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for service ‘Mailq’ on host ‘mail’ is not defined anywhere!
Error: Service check command ‘check_dhcp’ specified in service ‘Firewall’ for host ‘ramtool3’ not defined anywhere!
Error: Check period ‘24x7’ specified for service ‘Firewall’ on host ‘ramtool3’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for service ‘Firewall’ on host ‘ramtool3’ is not defined anywhere!
Error: Service check command ‘check_ldap’ specified in service ‘LDAP’ for host ‘win-2000’ not defined anywhere!
Error: Check period ‘24x7’ specified for service ‘LDAP’ on host ‘win-2000’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for service ‘LDAP’ on host ‘win-2000’ is not defined anywhere!
Checked 4 services.
Checking hosts…
Error: Check period ‘24x7’ specified for host ‘bham-firewall’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘bham-firewall’ is not defined anywhere!
Warning: Host ‘bham-router’ has no services associated with it!
Error: Check period ‘24x7’ specified for host ‘bham-router’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘bham-router’ is not defined anywhere!
Warning: Host ‘bham-switch1’ has no services associated with it!
Error: Check period ‘24x7’ specified for host ‘bham-switch1’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘bham-switch1’ is not defined anywhere!
Warning: Host ‘bham-switch2’ has no services associated with it!
Error: Check period ‘24x7’ specified for host ‘bham-switch2’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘bham-switch2’ is not defined anywhere!
Error: Check period ‘24x7’ specified for host ‘mail’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘mail’ is not defined anywhere!
Error: Check period ‘24x7’ specified for host ‘ramtool3’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘ramtool3’ is not defined anywhere!
Warning: Host ‘trend’ has no services associated with it!
Error: Check period ‘24x7’ specified for host ‘trend’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘trend’ is not defined anywhere!
Error: Check period ‘24x7’ specified for host ‘win-2000’ is not defined anywhere!
Error: Notification period ‘24x7’ specified for host ‘win-2000’ is not defined anywhere!
Checked 8 hosts.
Checking host groups…
Checked 2 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Error: Contact ‘it-group’ has no service notification commands defined!
Error: Service notification period ‘24x7’ specified for contact ‘it-group’ is not defined anywhere!
Error: Host notification period ‘24x7’ specified for contact ‘it-group’ is not defined anywhere!
Checked 1 contacts.
Checking contact groups…
Checked 1 contact groups.
Checking service escalations…
Checked 0 service escalations.
Checking service dependencies…
Checked 0 service dependencies.
Checking host escalations…
Checked 0 host escalations.
Checking host dependencies…
Checked 0 host dependencies.
Checking commands…
Checked 22 commands.
Checking time periods…
Checked 1 time periods.
Checking extended host info definitions…
Checked 0 extended host info definitions.
Checking extended service info definitions…
Checked 0 extended service info definitions.
Checking for circular paths between hosts…
Checking for circular host and service dependencies…
Checking global event handlers…
Checking obsessive compulsive processor commands…
Checking misc settings…

Total Warnings: 4
Total Errors: 31

***> One or more problems was encountered while running the pre-flight check…

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.

O.M.G.W.T.F.
J.M.F.C.

It tells you where the problem is
if there are, like 31 errors on that 24x7 notification, does that remind you smtgh?
maybe you did not read any documentation (like the official one)
where it tells you how and where to define timeperiods
no time is a good time
hey!
look what i found!

‘24x7’ timeperiod definition

define timeperiod{
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
whhhoooooooooooooops!
BUT, HEY I’M NOT GONNA TELL YOU WHERE IT IS…
cheers

Error: Service check command ‘check_ssh’ specified in service ‘Firewall’ for host ‘bham-firewall’ not defined anywhere!

Fix each error one by one. The error output tells you exactly what to do.
Define the check command named check_ssh in the checkcommands.cfg file, if you are using that file for all of your command definition locations.