Help starting Nagios


#1

Hi all Nagios gurus…
complied and installed nagios…when i try to run Nagios the following errors occur…kindly help

[root@BlackJack bin]# ./nagios -v /nagios/etc/nagios.cfg

Nagios 2.0b2
Copyright © 1999-2005 Ethan Galstad (www.nagios.org)
Last Modified: 02-09-2005
License: GPL

Reading configuration data…

Running pre-flight check on configuration data…

Checking services…
Checked 38 services.
Checking hosts…
Error: Host ‘linux1’ has no default contact group(s) defined!
Error: Host ‘linux2’ has no default contact group(s) defined!
Error: Host ‘novell1’ has no default contact group(s) defined!
Error: Host ‘novell2’ has no default contact group(s) defined!
Error: Host ‘nt1’ has no default contact group(s) defined!
Error: Host ‘nt2’ has no default contact group(s) defined!
Error: Host ‘printer1’ has no default contact group(s) defined!
Error: Host ‘printer2’ has no default contact group(s) defined!
Error: Host ‘printer3’ has no default contact group(s) defined!
Error: Host ‘router1’ has no default contact group(s) defined!
Error: Host ‘switch1’ has no default contact group(s) defined!
Error: Host ‘switch2’ has no default contact group(s) defined!
Error: Host ‘switch3’ has no default contact group(s) defined!
Error: Host ‘switch4’ has no default contact group(s) defined!
Error: Host ‘switch5’ has no default contact group(s) defined!
Checked 15 hosts.
Checking host groups…
Error: There are no host groups defined!
Checked 0 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Checked 2 contacts.
Checking contact groups…
Checked 6 contact groups.
Checking service escalations…
Checked 2 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 4 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: 0
Total Errors: 16


#2

when you run the -v, it tells you almost verbatim what is wrong.

[quote=“gr8shine”]
Reading configuration data…

Running pre-flight check on configuration data…

Checking services…
Checked 38 services.
Checking hosts…
Error: Host ‘linux1’ has no default contact group(s) defined![/quote]

host linux1 needs to be in the hostsgroup.cfg
define hostgroup{
hostgroup_name hostgroup_name
alias alias
contact_groups contact_groups
members members
}

[quote]
Error: Host ‘linux2’ has no default contact group(s) defined!
Error: Host ‘novell1’ has no default contact group(s) defined!
Error: Host ‘novell2’ has no default contact group(s) defined!
Error: Host ‘nt1’ has no default contact group(s) defined!
Error: Host ‘nt2’ has no default contact group(s) defined!
Error: Host ‘printer1’ has no default contact group(s) defined!
Error: Host ‘printer2’ has no default contact group(s) defined!
Error: Host ‘printer3’ has no default contact group(s) defined!
Error: Host ‘router1’ has no default contact group(s) defined!
Error: Host ‘switch1’ has no default contact group(s) defined!
Error: Host ‘switch2’ has no default contact group(s) defined!
Error: Host ‘switch3’ has no default contact group(s) defined!
Error: Host ‘switch4’ has no default contact group(s) defined!
Error: Host ‘switch5’ has no default contact group(s) defined![/quote]

Same for the rest of those.
Checked 15 hosts.
Checking host groups…
Error: There are no host groups defined!
Checked 0 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Checked 2 contacts.
Checking contact groups…
Checked 6 contact groups.
Checking service escalations…
Checked 2 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 4 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: 0
Total Errors: 16