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.