Nagios 2.03b
Redhat 7.3
Someone has a solution for this? please
The error has told you the answer. Put the host âgatewayâ in some contact group that you have created. Perhaps âcontactgroup routersâ or whatever you have made.
Be sure to run nagios by hand with the -v option, to make sure you donât have any more errors.
From the 2.0 docs.
define contactgroup{
contactgroup_name contactgroup_name
alias alias
members members
}
nagios.sourceforge.net/docs/2_0/toc.html
Thank you very much for your answer.
ButâŠit must be some other solutions.
my contacts.cfgâŠi think this is right?
CONTACT GROUP DEFINITIONS
SYNTAX:
âserver-admins
Then the host definition is not setup correctly.
nagios.sourceforge.net/docs/2_0/ ⊠.html#host
define host{
host_name host_name
alias alias
address address
contact_groups linux-admins
under contactgroup you define the contacts which get notified.
remember to define the contacts themself (with email and so on)
And for each service you need to define a contactgroup.
Luca
Thank you very much! No error. I miss contact_groups in host.cfg.
But i have a lot of warnings, so if someone has any idea to fix thisâŠ
i would be very greatful.
Nagios 2.0b3
Copyright © 1999-2005 Ethan Galstad (www.nagios.org)
Last Modified: 04-03-2005
License: GPL
Reading configuration dataâŠ
Running pre-flight check on configuration dataâŠ
Checking servicesâŠ
Warning: Service âSMTPâ on host âgatewayâ has no check time period defined!
Warning: Service âSMTPâ on host âgatewayâ has no notification time period defined!
Checked 1 services.
Checking hostsâŠ
Checked 1 hosts.
Checking host groupsâŠ
Checked 1 host groups.
Checking service groupsâŠ
Checked 0 service groups.
Checking contactsâŠ
Warning: Contact âgatewayâ has no service notification time period defined!
Warning: Contact âgatewayâ has no host notification time period defined!
Warning: Contact ânagiosâ has no service notification time period defined!
Warning: Contact ânagiosâ has no host notification time period defined!
Checked 2 contacts.
Checking contact groupsâŠ
Checked 1 contact groups.
Checking service escalationsâŠ
Checked 1 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: 6
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Warning: Service âSMTPâ on host âgatewayâ has no check time period defined!
Warning: Service âSMTPâ on host âgatewayâ has no notification time period defined!
Warning: Contact âgatewayâ has no service notification time period defined!
Warning: Contact âgatewayâ has no host notification time period defined!
Warning: Contact ânagiosâ has no service notification time period defined!
Warning: Contact ânagiosâ has no host notification time period defined!
Well, I have come to the conclusion that you have not read one word in the docs about how to setup the config files.
The errors are telling you in plain english what is wrong, but you want someone to spoon feed you the fix. Well, Iâm sorry, I wonât be a part of it. RTFM at least once.
nagios.sourceforge.net/docs/2_0/toc.html
nagios.sourceforge.net/docs/2_0/ ⊠bject.html
nagios.sourceforge.net/docs/2_0/xodtemplate.html
nagios.sourceforge.net/docs/2_0/ ⊠.html#host