Hostgroups and Services
Russell Scibetti
russell at quadrix.com
Tue Oct 22 20:57:13 CEST 2002
You have no notification_interval in the service definition. Try adding
it and see if it works.
Russell
Sean McAvoy wrote:
>Okay, here it is
>The error:
>Reading configuration data...
>
>Error: Invalid max_attempts, check_interval, retry_interval, or
>notification_interval value for service 'Dealer FTP service' on host
>'drive.wilmits'
>
>Error: Could not register service (config file
>'/etc/nagios/services-dealers.cfg', line 25)
>
>The config:
>
>define service{
> name dealer-service
> active_checks_enabled 1
> passive_checks_enabled 1
> parallelize_check 1
> obsess_over_service 1
> check_freshness 0
> notifications_enabled 1
> event_handler_enabled 1
> flap_detection_enabled 1
> process_perf_data 1
> retain_status_information 1
> retain_nonstatus_information 1
> max_check_attempts 3
> normal_check_interval 3
> retry_check_interval 2
> contact_groups technical-support
> check_period 24x7
> notification_period 24x7
> notification_options c,r,u ; test
> register 0
> }
>
>define service{
> use dealer-service
> hostgroup_name testgroup
> service_description Dealer FTP service
> check_command check_ftp
> }
>
>and the hostgroup.cfg entry:
>define hostgroup{
> hostgroup_name testgroup
> alias This is a test group
> contact_groups technical-support
> members drive.wilmits,drive.jackmac
> }
>
>Is that enough?
>
>On Tue, 2002-10-22 at 13:20, Russell Scibetti wrote:
>
>>Yes, you can use hostgroup_name instead of host_name (one or the other).
>> Email out the entire definition that Nagios is reporting an error on.
>> Maybe there's another error causing the problem.
>>
>>-Russell
>>
>>Sean McAvoy wrote:
>>
>>>Hello,
>>>Should I be able to embed hostgroup_name inside of a service (in place
>>>of host_name)? I seem to be getting an error when I do this (Invalid
>>>max_attempts, check_interval, retry_interval, or
>>>notification_interval value for service 'service description' on
>>>'hostname').
>>>
>>>-Sean
>>>
>>--
>>Russell Scibetti
>>Quadrix Solutions, Inc.
>>http://www.quadrix.com
>>(732) 235-2335, ext. 7038
>>
>>
>>
--
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
More information about the Users
mailing list