Hostgroups and Services
Sean McAvoy
sean.mcavoy at megawheels.com
Tue Oct 22 19:35:22 CEST 2002
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
>
>
>
--
Sean McAvoy
Network Analyst
Megawheels Technologies Inc.
Phone: 416.360.8211
Fax: 416.360.1403
Cell: 416.616.6599
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021022/01bc8ecf/attachment.sig>
More information about the Users
mailing list